@munchi_oy/core 1.9.114 → 1.9.117

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
@@ -3605,6 +3605,12 @@ export interface CreateManualSessionDto {
3605
3605
  * @memberof CreateManualSessionDto
3606
3606
  */
3607
3607
  'businessId': number;
3608
+ /**
3609
+ * The gateway session this payment stands in for, when the till settles a card charge it could not confirm. Honoured only for a manual card entry.
3610
+ * @type {string}
3611
+ * @memberof CreateManualSessionDto
3612
+ */
3613
+ 'settlesSessionId'?: string;
3608
3614
  /**
3609
3615
  * The POS order ID this payment session is for.
3610
3616
  * @type {string}
@@ -4826,6 +4832,21 @@ export interface DeliveryDtoLocation {
4826
4832
  */
4827
4833
  'coordinates': LocationDtoCoordinates | null;
4828
4834
  }
4835
+ /**
4836
+ *
4837
+ * @export
4838
+ * @enum {string}
4839
+ */
4840
+
4841
+ export const DeliveryIntentStatus = {
4842
+ Pending: 'pending',
4843
+ Dispatched: 'dispatched',
4844
+ Failed: 'failed'
4845
+ } as const;
4846
+
4847
+ export type DeliveryIntentStatus = typeof DeliveryIntentStatus[keyof typeof DeliveryIntentStatus];
4848
+
4849
+
4829
4850
  /**
4830
4851
  *
4831
4852
  * @export
@@ -13664,7 +13685,8 @@ export interface PaymentErrorDto {
13664
13685
 
13665
13686
  export const PaymentEventType = {
13666
13687
  StatusChanged: 'payment:status-changed',
13667
- RefundStatusChanged: 'payment:refund-status-changed'
13688
+ RefundStatusChanged: 'payment:refund-status-changed',
13689
+ Outcome: 'payment:outcome'
13668
13690
  } as const;
13669
13691
 
13670
13692
  export type PaymentEventType = typeof PaymentEventType[keyof typeof PaymentEventType];
@@ -14577,6 +14599,21 @@ export interface PaymentMethodsResponseDto {
14577
14599
  }
14578
14600
 
14579
14601
 
14602
+ /**
14603
+ *
14604
+ * @export
14605
+ * @enum {string}
14606
+ */
14607
+
14608
+ export const PaymentOutcomeStatus = {
14609
+ Uncertain: 'Uncertain',
14610
+ Success: 'Success',
14611
+ Failed: 'Failed'
14612
+ } as const;
14613
+
14614
+ export type PaymentOutcomeStatus = typeof PaymentOutcomeStatus[keyof typeof PaymentOutcomeStatus];
14615
+
14616
+
14580
14617
  /**
14581
14618
  *
14582
14619
  * @export
@@ -14853,6 +14890,111 @@ export const PaymentReportingBucket = {
14853
14890
  export type PaymentReportingBucket = typeof PaymentReportingBucket[keyof typeof PaymentReportingBucket];
14854
14891
 
14855
14892
 
14893
+ /**
14894
+ *
14895
+ * @export
14896
+ * @interface PaymentSessionAnalyticsMethodBreakdownDto
14897
+ */
14898
+ export interface PaymentSessionAnalyticsMethodBreakdownDto {
14899
+ /**
14900
+ * Paymethod code, e.g. Card / Debit / Credit / Edenred.
14901
+ * @type {string}
14902
+ * @memberof PaymentSessionAnalyticsMethodBreakdownDto
14903
+ */
14904
+ 'paymethod': string;
14905
+ /**
14906
+ *
14907
+ * @type {number}
14908
+ * @memberof PaymentSessionAnalyticsMethodBreakdownDto
14909
+ */
14910
+ 'count': number;
14911
+ /**
14912
+ * Minor units (e.g. cents).
14913
+ * @type {number}
14914
+ * @memberof PaymentSessionAnalyticsMethodBreakdownDto
14915
+ */
14916
+ 'amount': number;
14917
+ }
14918
+ /**
14919
+ *
14920
+ * @export
14921
+ * @interface PaymentSessionAnalyticsResolvedRangeDto
14922
+ */
14923
+ export interface PaymentSessionAnalyticsResolvedRangeDto {
14924
+ /**
14925
+ * Schedule-resolved range start. Not calendar midnight for DAY timeSpan.
14926
+ * @type {string}
14927
+ * @memberof PaymentSessionAnalyticsResolvedRangeDto
14928
+ */
14929
+ 'start': string;
14930
+ /**
14931
+ * Schedule-resolved range end. Not calendar midnight for DAY timeSpan.
14932
+ * @type {string}
14933
+ * @memberof PaymentSessionAnalyticsResolvedRangeDto
14934
+ */
14935
+ 'end': string;
14936
+ }
14937
+ /**
14938
+ *
14939
+ * @export
14940
+ * @interface PaymentSessionAnalyticsResponseDto
14941
+ */
14942
+ export interface PaymentSessionAnalyticsResponseDto {
14943
+ /**
14944
+ *
14945
+ * @type {number}
14946
+ * @memberof PaymentSessionAnalyticsResponseDto
14947
+ */
14948
+ 'orderCount': number;
14949
+ /**
14950
+ * Minor units (e.g. cents).
14951
+ * @type {number}
14952
+ * @memberof PaymentSessionAnalyticsResponseDto
14953
+ */
14954
+ 'grossSales': number;
14955
+ /**
14956
+ * Minor units (e.g. cents).
14957
+ * @type {number}
14958
+ * @memberof PaymentSessionAnalyticsResponseDto
14959
+ */
14960
+ 'tips': number;
14961
+ /**
14962
+ * Minor units (e.g. cents).
14963
+ * @type {number}
14964
+ * @memberof PaymentSessionAnalyticsResponseDto
14965
+ */
14966
+ 'surcharges': number;
14967
+ /**
14968
+ *
14969
+ * @type {number}
14970
+ * @memberof PaymentSessionAnalyticsResponseDto
14971
+ */
14972
+ 'refundCount': number;
14973
+ /**
14974
+ * Minor units (e.g. cents).
14975
+ * @type {number}
14976
+ * @memberof PaymentSessionAnalyticsResponseDto
14977
+ */
14978
+ 'refundAmount': number;
14979
+ /**
14980
+ * grossSales - refundAmount, computed server-side.
14981
+ * @type {number}
14982
+ * @memberof PaymentSessionAnalyticsResponseDto
14983
+ */
14984
+ 'netSales': number;
14985
+ /**
14986
+ *
14987
+ * @type {Array<PaymentSessionAnalyticsMethodBreakdownDto>}
14988
+ * @memberof PaymentSessionAnalyticsResponseDto
14989
+ */
14990
+ 'byPaymentMethod': Array<PaymentSessionAnalyticsMethodBreakdownDto>;
14991
+ /**
14992
+ *
14993
+ * @type {PaymentSessionAnalyticsResolvedRangeDto}
14994
+ * @memberof PaymentSessionAnalyticsResponseDto
14995
+ */
14996
+ 'resolvedRange': PaymentSessionAnalyticsResolvedRangeDto;
14997
+ }
14856
14998
  /**
14857
14999
  *
14858
15000
  * @export
@@ -15063,6 +15205,12 @@ export interface PaymentStatusDtoTransaction {
15063
15205
  * @memberof PaymentStatusDtoTransaction
15064
15206
  */
15065
15207
  'type': PaymentMethod;
15208
+ /**
15209
+ *
15210
+ * @type {PaymentOutcomeStatus}
15211
+ * @memberof PaymentStatusDtoTransaction
15212
+ */
15213
+ 'paymentOutcomeStatus'?: PaymentOutcomeStatus;
15066
15214
  /**
15067
15215
  * Amount paid in cents
15068
15216
  * @type {number}
@@ -23077,6 +23225,12 @@ export interface TransactionDto {
23077
23225
  * @memberof TransactionDto
23078
23226
  */
23079
23227
  'type': PaymentMethod;
23228
+ /**
23229
+ *
23230
+ * @type {PaymentOutcomeStatus}
23231
+ * @memberof TransactionDto
23232
+ */
23233
+ 'paymentOutcomeStatus'?: PaymentOutcomeStatus;
23080
23234
  /**
23081
23235
  * Amount paid in cents
23082
23236
  * @type {number}
@@ -24823,6 +24977,39 @@ export interface UpdateChannelInventoryDto {
24823
24977
  */
24824
24978
  'channels': Array<ChannelInventoryUpdateDto>;
24825
24979
  }
24980
+ /**
24981
+ *
24982
+ * @export
24983
+ * @interface UpdateDeliveryIntentDto
24984
+ */
24985
+ export interface UpdateDeliveryIntentDto {
24986
+ /**
24987
+ *
24988
+ * @type {DeliveryIntentStatus}
24989
+ * @memberof UpdateDeliveryIntentDto
24990
+ */
24991
+ 'status': DeliveryIntentStatus;
24992
+ /**
24993
+ *
24994
+ * @type {string}
24995
+ * @memberof UpdateDeliveryIntentDto
24996
+ */
24997
+ 'providerDeliveryId'?: string;
24998
+ /**
24999
+ *
25000
+ * @type {string}
25001
+ * @memberof UpdateDeliveryIntentDto
25002
+ */
25003
+ 'trackingUrl'?: string;
25004
+ /**
25005
+ *
25006
+ * @type {string}
25007
+ * @memberof UpdateDeliveryIntentDto
25008
+ */
25009
+ 'failureReason'?: string;
25010
+ }
25011
+
25012
+
24826
25013
  /**
24827
25014
  *
24828
25015
  * @export
@@ -27900,10 +28087,10 @@ export interface WalletItemDto {
27900
28087
  'id': number;
27901
28088
  /**
27902
28089
  *
27903
- * @type {string}
28090
+ * @type {WalletItemStatus}
27904
28091
  * @memberof WalletItemDto
27905
28092
  */
27906
- 'status': StatusEnum;
28093
+ 'status': WalletItemStatus;
27907
28094
  /**
27908
28095
  *
27909
28096
  * @type {object}
@@ -27918,12 +28105,20 @@ export interface WalletItemDto {
27918
28105
  'catalog': WalletCatalogDto;
27919
28106
  }
27920
28107
 
27921
- export const StatusEnum = {
28108
+
28109
+ /**
28110
+ *
28111
+ * @export
28112
+ * @enum {string}
28113
+ */
28114
+
28115
+ export const WalletItemStatus = {
27922
28116
  Claimed: 'Claimed',
27923
28117
  Redeemed: 'Redeemed'
27924
28118
  } as const;
27925
28119
 
27926
- export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum];
28120
+ export type WalletItemStatus = typeof WalletItemStatus[keyof typeof WalletItemStatus];
28121
+
27927
28122
 
27928
28123
  /**
27929
28124
  *
@@ -34104,6 +34299,216 @@ export class CoursesApi extends BaseAPI implements CoursesApiInterface {
34104
34299
  }
34105
34300
 
34106
34301
 
34302
+ /**
34303
+ * DeliveryIntentApi - axios parameter creator
34304
+ * @export
34305
+ */
34306
+ export const DeliveryIntentApiAxiosParamCreator = function (configuration?: Configuration) {
34307
+ return {
34308
+ /**
34309
+ * Internal service-to-service call, requires the `x-internal-token` header.
34310
+ * @summary Fetch a delivery intent for courier execution
34311
+ * @param {string} intentId
34312
+ * @param {*} [options] Override http request option.
34313
+ * @throws {RequiredError}
34314
+ */
34315
+ findIntent: async (intentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34316
+ // verify required parameter 'intentId' is not null or undefined
34317
+ assertParamExists('findIntent', 'intentId', intentId)
34318
+ const localVarPath = `/api/webhook/delivery-intent/{intentId}`
34319
+ .replace(`{${"intentId"}}`, encodeURIComponent(String(intentId)));
34320
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34321
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34322
+ let baseOptions;
34323
+ if (configuration) {
34324
+ baseOptions = configuration.baseOptions;
34325
+ }
34326
+
34327
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34328
+ const localVarHeaderParameter = {} as any;
34329
+ const localVarQueryParameter = {} as any;
34330
+
34331
+
34332
+
34333
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34335
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34336
+
34337
+ return {
34338
+ url: toPathString(localVarUrlObj),
34339
+ options: localVarRequestOptions,
34340
+ };
34341
+ },
34342
+ /**
34343
+ * Internal service-to-service call, requires the `x-internal-token` header.
34344
+ * @summary Report the courier execution outcome of a delivery intent
34345
+ * @param {string} intentId
34346
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34347
+ * @param {*} [options] Override http request option.
34348
+ * @throws {RequiredError}
34349
+ */
34350
+ updateIntent: async (intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34351
+ // verify required parameter 'intentId' is not null or undefined
34352
+ assertParamExists('updateIntent', 'intentId', intentId)
34353
+ // verify required parameter 'updateDeliveryIntentDto' is not null or undefined
34354
+ assertParamExists('updateIntent', 'updateDeliveryIntentDto', updateDeliveryIntentDto)
34355
+ const localVarPath = `/api/webhook/delivery-intent/{intentId}`
34356
+ .replace(`{${"intentId"}}`, encodeURIComponent(String(intentId)));
34357
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34358
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34359
+ let baseOptions;
34360
+ if (configuration) {
34361
+ baseOptions = configuration.baseOptions;
34362
+ }
34363
+
34364
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
34365
+ const localVarHeaderParameter = {} as any;
34366
+ const localVarQueryParameter = {} as any;
34367
+
34368
+
34369
+
34370
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34371
+
34372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34374
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34375
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDeliveryIntentDto, localVarRequestOptions, configuration)
34376
+
34377
+ return {
34378
+ url: toPathString(localVarUrlObj),
34379
+ options: localVarRequestOptions,
34380
+ };
34381
+ },
34382
+ }
34383
+ };
34384
+
34385
+ /**
34386
+ * DeliveryIntentApi - functional programming interface
34387
+ * @export
34388
+ */
34389
+ export const DeliveryIntentApiFp = function(configuration?: Configuration) {
34390
+ const localVarAxiosParamCreator = DeliveryIntentApiAxiosParamCreator(configuration)
34391
+ return {
34392
+ /**
34393
+ * Internal service-to-service call, requires the `x-internal-token` header.
34394
+ * @summary Fetch a delivery intent for courier execution
34395
+ * @param {string} intentId
34396
+ * @param {*} [options] Override http request option.
34397
+ * @throws {RequiredError}
34398
+ */
34399
+ async findIntent(intentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34400
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findIntent(intentId, options);
34401
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34402
+ },
34403
+ /**
34404
+ * Internal service-to-service call, requires the `x-internal-token` header.
34405
+ * @summary Report the courier execution outcome of a delivery intent
34406
+ * @param {string} intentId
34407
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34408
+ * @param {*} [options] Override http request option.
34409
+ * @throws {RequiredError}
34410
+ */
34411
+ async updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34412
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateIntent(intentId, updateDeliveryIntentDto, options);
34413
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34414
+ },
34415
+ }
34416
+ };
34417
+
34418
+ /**
34419
+ * DeliveryIntentApi - factory interface
34420
+ * @export
34421
+ */
34422
+ export const DeliveryIntentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34423
+ const localVarFp = DeliveryIntentApiFp(configuration)
34424
+ return {
34425
+ /**
34426
+ * Internal service-to-service call, requires the `x-internal-token` header.
34427
+ * @summary Fetch a delivery intent for courier execution
34428
+ * @param {string} intentId
34429
+ * @param {*} [options] Override http request option.
34430
+ * @throws {RequiredError}
34431
+ */
34432
+ findIntent(intentId: string, options?: any): AxiosPromise<void> {
34433
+ return localVarFp.findIntent(intentId, options).then((request) => request(axios, basePath));
34434
+ },
34435
+ /**
34436
+ * Internal service-to-service call, requires the `x-internal-token` header.
34437
+ * @summary Report the courier execution outcome of a delivery intent
34438
+ * @param {string} intentId
34439
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34440
+ * @param {*} [options] Override http request option.
34441
+ * @throws {RequiredError}
34442
+ */
34443
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: any): AxiosPromise<void> {
34444
+ return localVarFp.updateIntent(intentId, updateDeliveryIntentDto, options).then((request) => request(axios, basePath));
34445
+ },
34446
+ };
34447
+ };
34448
+
34449
+ /**
34450
+ * DeliveryIntentApi - interface
34451
+ * @export
34452
+ * @interface DeliveryIntentApi
34453
+ */
34454
+ export interface DeliveryIntentApiInterface {
34455
+ /**
34456
+ * Internal service-to-service call, requires the `x-internal-token` header.
34457
+ * @summary Fetch a delivery intent for courier execution
34458
+ * @param {string} intentId
34459
+ * @param {*} [options] Override http request option.
34460
+ * @throws {RequiredError}
34461
+ * @memberof DeliveryIntentApiInterface
34462
+ */
34463
+ findIntent(intentId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
34464
+
34465
+ /**
34466
+ * Internal service-to-service call, requires the `x-internal-token` header.
34467
+ * @summary Report the courier execution outcome of a delivery intent
34468
+ * @param {string} intentId
34469
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34470
+ * @param {*} [options] Override http request option.
34471
+ * @throws {RequiredError}
34472
+ * @memberof DeliveryIntentApiInterface
34473
+ */
34474
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): AxiosPromise<void>;
34475
+
34476
+ }
34477
+
34478
+ /**
34479
+ * DeliveryIntentApi - object-oriented interface
34480
+ * @export
34481
+ * @class DeliveryIntentApi
34482
+ * @extends {BaseAPI}
34483
+ */
34484
+ export class DeliveryIntentApi extends BaseAPI implements DeliveryIntentApiInterface {
34485
+ /**
34486
+ * Internal service-to-service call, requires the `x-internal-token` header.
34487
+ * @summary Fetch a delivery intent for courier execution
34488
+ * @param {string} intentId
34489
+ * @param {*} [options] Override http request option.
34490
+ * @throws {RequiredError}
34491
+ * @memberof DeliveryIntentApi
34492
+ */
34493
+ public findIntent(intentId: string, options?: AxiosRequestConfig) {
34494
+ return DeliveryIntentApiFp(this.configuration).findIntent(intentId, options).then((request) => request(this.axios, this.basePath));
34495
+ }
34496
+
34497
+ /**
34498
+ * Internal service-to-service call, requires the `x-internal-token` header.
34499
+ * @summary Report the courier execution outcome of a delivery intent
34500
+ * @param {string} intentId
34501
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34502
+ * @param {*} [options] Override http request option.
34503
+ * @throws {RequiredError}
34504
+ * @memberof DeliveryIntentApi
34505
+ */
34506
+ public updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig) {
34507
+ return DeliveryIntentApiFp(this.configuration).updateIntent(intentId, updateDeliveryIntentDto, options).then((request) => request(this.axios, this.basePath));
34508
+ }
34509
+ }
34510
+
34511
+
34107
34512
  /**
34108
34513
  * DisplayApi - axios parameter creator
34109
34514
  * @export
@@ -45029,6 +45434,60 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
45029
45434
 
45030
45435
 
45031
45436
 
45437
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45438
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45439
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45440
+
45441
+ return {
45442
+ url: toPathString(localVarUrlObj),
45443
+ options: localVarRequestOptions,
45444
+ };
45445
+ },
45446
+ /**
45447
+ * Scoped to whatever channel the caller authenticates as (e.g. a paired Munchi Pay terminal only ever sees its own channel=MunchiPay charges — the same population as its Transactions tab). DAY timeSpan is resolved against the business\'s real opening-hours schedule, not calendar midnight; resolvedRange in the response reflects the actual window used, so the UI and any printed reconciliation can display/print the same period the query ran against.
45448
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
45449
+ * @param {number} businessId The internal business ID.
45450
+ * @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\&#39;s actual opening-hours schedule (e.g. 08:00–08:00 next day), not calendar midnight — omitting it would silently fall back to a naive UTC-midnight range.
45451
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
45452
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
45453
+ * @param {*} [options] Override http request option.
45454
+ * @throws {RequiredError}
45455
+ */
45456
+ getPaymentSessionAnalytics: async (businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45457
+ // verify required parameter 'businessId' is not null or undefined
45458
+ assertParamExists('getPaymentSessionAnalytics', 'businessId', businessId)
45459
+ // verify required parameter 'timeSpan' is not null or undefined
45460
+ assertParamExists('getPaymentSessionAnalytics', 'timeSpan', timeSpan)
45461
+ const localVarPath = `/api/v1/payment-session/analytics`;
45462
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45463
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45464
+ let baseOptions;
45465
+ if (configuration) {
45466
+ baseOptions = configuration.baseOptions;
45467
+ }
45468
+
45469
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
45470
+ const localVarHeaderParameter = {} as any;
45471
+ const localVarQueryParameter = {} as any;
45472
+
45473
+ if (businessId !== undefined) {
45474
+ localVarQueryParameter['businessId'] = businessId;
45475
+ }
45476
+
45477
+ if (timeSpan !== undefined) {
45478
+ localVarQueryParameter['timeSpan'] = timeSpan;
45479
+ }
45480
+
45481
+ if (start !== undefined) {
45482
+ localVarQueryParameter['start'] = start;
45483
+ }
45484
+
45485
+ if (end !== undefined) {
45486
+ localVarQueryParameter['end'] = end;
45487
+ }
45488
+
45489
+
45490
+
45032
45491
  setSearchParams(localVarUrlObj, localVarQueryParameter);
45033
45492
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45034
45493
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -45672,6 +46131,20 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
45672
46131
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentSession(clientToken, options);
45673
46132
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
45674
46133
  },
46134
+ /**
46135
+ * Scoped to whatever channel the caller authenticates as (e.g. a paired Munchi Pay terminal only ever sees its own channel=MunchiPay charges — the same population as its Transactions tab). DAY timeSpan is resolved against the business\'s real opening-hours schedule, not calendar midnight; resolvedRange in the response reflects the actual window used, so the UI and any printed reconciliation can display/print the same period the query ran against.
46136
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
46137
+ * @param {number} businessId The internal business ID.
46138
+ * @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\&#39;s actual opening-hours schedule (e.g. 08:00–08:00 next day), not calendar midnight — omitting it would silently fall back to a naive UTC-midnight range.
46139
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
46140
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
46141
+ * @param {*} [options] Override http request option.
46142
+ * @throws {RequiredError}
46143
+ */
46144
+ async getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionAnalyticsResponseDto>> {
46145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentSessionAnalytics(businessId, timeSpan, start, end, options);
46146
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46147
+ },
45675
46148
  /**
45676
46149
  * Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
45677
46150
  * @summary Initiate a Nets terminal payment session
@@ -45893,6 +46366,19 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
45893
46366
  getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
45894
46367
  return localVarFp.getPaymentSession(clientToken, options).then((request) => request(axios, basePath));
45895
46368
  },
46369
+ /**
46370
+ * Scoped to whatever channel the caller authenticates as (e.g. a paired Munchi Pay terminal only ever sees its own channel=MunchiPay charges — the same population as its Transactions tab). DAY timeSpan is resolved against the business\'s real opening-hours schedule, not calendar midnight; resolvedRange in the response reflects the actual window used, so the UI and any printed reconciliation can display/print the same period the query ran against.
46371
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
46372
+ * @param {number} businessId The internal business ID.
46373
+ * @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\&#39;s actual opening-hours schedule (e.g. 08:00–08:00 next day), not calendar midnight — omitting it would silently fall back to a naive UTC-midnight range.
46374
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
46375
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
46376
+ * @param {*} [options] Override http request option.
46377
+ * @throws {RequiredError}
46378
+ */
46379
+ getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<PaymentSessionAnalyticsResponseDto> {
46380
+ return localVarFp.getPaymentSessionAnalytics(businessId, timeSpan, start, end, options).then((request) => request(axios, basePath));
46381
+ },
45896
46382
  /**
45897
46383
  * Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
45898
46384
  * @summary Initiate a Nets terminal payment session
@@ -46097,6 +46583,19 @@ export interface PaymentSessionApiInterface {
46097
46583
  */
46098
46584
  getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
46099
46585
 
46586
+ /**
46587
+ * Scoped to whatever channel the caller authenticates as (e.g. a paired Munchi Pay terminal only ever sees its own channel=MunchiPay charges — the same population as its Transactions tab). DAY timeSpan is resolved against the business\'s real opening-hours schedule, not calendar midnight; resolvedRange in the response reflects the actual window used, so the UI and any printed reconciliation can display/print the same period the query ran against.
46588
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
46589
+ * @param {number} businessId The internal business ID.
46590
+ * @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\&#39;s actual opening-hours schedule (e.g. 08:00–08:00 next day), not calendar midnight — omitting it would silently fall back to a naive UTC-midnight range.
46591
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
46592
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
46593
+ * @param {*} [options] Override http request option.
46594
+ * @throws {RequiredError}
46595
+ * @memberof PaymentSessionApiInterface
46596
+ */
46597
+ getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionAnalyticsResponseDto>;
46598
+
46100
46599
  /**
46101
46600
  * Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
46102
46601
  * @summary Initiate a Nets terminal payment session
@@ -46307,6 +46806,21 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
46307
46806
  return PaymentSessionApiFp(this.configuration).getPaymentSession(clientToken, options).then((request) => request(this.axios, this.basePath));
46308
46807
  }
46309
46808
 
46809
+ /**
46810
+ * Scoped to whatever channel the caller authenticates as (e.g. a paired Munchi Pay terminal only ever sees its own channel=MunchiPay charges — the same population as its Transactions tab). DAY timeSpan is resolved against the business\'s real opening-hours schedule, not calendar midnight; resolvedRange in the response reflects the actual window used, so the UI and any printed reconciliation can display/print the same period the query ran against.
46811
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
46812
+ * @param {number} businessId The internal business ID.
46813
+ * @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\&#39;s actual opening-hours schedule (e.g. 08:00–08:00 next day), not calendar midnight — omitting it would silently fall back to a naive UTC-midnight range.
46814
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
46815
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
46816
+ * @param {*} [options] Override http request option.
46817
+ * @throws {RequiredError}
46818
+ * @memberof PaymentSessionApi
46819
+ */
46820
+ public getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
46821
+ return PaymentSessionApiFp(this.configuration).getPaymentSessionAnalytics(businessId, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
46822
+ }
46823
+
46310
46824
  /**
46311
46825
  * Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
46312
46826
  * @summary Initiate a Nets terminal payment session
@@ -53680,7 +54194,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
53680
54194
  };
53681
54195
  },
53682
54196
  /**
53683
- *
54197
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
54198
+ * @summary Handle Shipday delivery webhook events
53684
54199
  * @param {*} [options] Override http request option.
53685
54200
  * @throws {RequiredError}
53686
54201
  */
@@ -54081,7 +54596,8 @@ export const WebhookApiFp = function(configuration?: Configuration) {
54081
54596
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
54082
54597
  },
54083
54598
  /**
54084
- *
54599
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
54600
+ * @summary Handle Shipday delivery webhook events
54085
54601
  * @param {*} [options] Override http request option.
54086
54602
  * @throws {RequiredError}
54087
54603
  */
@@ -54282,7 +54798,8 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
54282
54798
  return localVarFp.handleVivaSessionEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
54283
54799
  },
54284
54800
  /**
54285
- *
54801
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
54802
+ * @summary Handle Shipday delivery webhook events
54286
54803
  * @param {*} [options] Override http request option.
54287
54804
  * @throws {RequiredError}
54288
54805
  */
@@ -54473,7 +54990,8 @@ export interface WebhookApiInterface {
54473
54990
  handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
54474
54991
 
54475
54992
  /**
54476
- *
54993
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
54994
+ * @summary Handle Shipday delivery webhook events
54477
54995
  * @param {*} [options] Override http request option.
54478
54996
  * @throws {RequiredError}
54479
54997
  * @memberof WebhookApiInterface
@@ -54688,7 +55206,8 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
54688
55206
  }
54689
55207
 
54690
55208
  /**
54691
- *
55209
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
55210
+ * @summary Handle Shipday delivery webhook events
54692
55211
  * @param {*} [options] Override http request option.
54693
55212
  * @throws {RequiredError}
54694
55213
  * @memberof WebhookApi