@munchi_oy/core 1.9.114 → 1.9.116
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 +162 -0
- 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 +214 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -14463,6 +14463,111 @@ export declare const PaymentReportingBucket: {
|
|
|
14463
14463
|
readonly Other: "other";
|
|
14464
14464
|
};
|
|
14465
14465
|
export type PaymentReportingBucket = typeof PaymentReportingBucket[keyof typeof PaymentReportingBucket];
|
|
14466
|
+
/**
|
|
14467
|
+
*
|
|
14468
|
+
* @export
|
|
14469
|
+
* @interface PaymentSessionAnalyticsMethodBreakdownDto
|
|
14470
|
+
*/
|
|
14471
|
+
export interface PaymentSessionAnalyticsMethodBreakdownDto {
|
|
14472
|
+
/**
|
|
14473
|
+
* Paymethod code, e.g. Card / Debit / Credit / Edenred.
|
|
14474
|
+
* @type {string}
|
|
14475
|
+
* @memberof PaymentSessionAnalyticsMethodBreakdownDto
|
|
14476
|
+
*/
|
|
14477
|
+
'paymethod': string;
|
|
14478
|
+
/**
|
|
14479
|
+
*
|
|
14480
|
+
* @type {number}
|
|
14481
|
+
* @memberof PaymentSessionAnalyticsMethodBreakdownDto
|
|
14482
|
+
*/
|
|
14483
|
+
'count': number;
|
|
14484
|
+
/**
|
|
14485
|
+
* Minor units (e.g. cents).
|
|
14486
|
+
* @type {number}
|
|
14487
|
+
* @memberof PaymentSessionAnalyticsMethodBreakdownDto
|
|
14488
|
+
*/
|
|
14489
|
+
'amount': number;
|
|
14490
|
+
}
|
|
14491
|
+
/**
|
|
14492
|
+
*
|
|
14493
|
+
* @export
|
|
14494
|
+
* @interface PaymentSessionAnalyticsResolvedRangeDto
|
|
14495
|
+
*/
|
|
14496
|
+
export interface PaymentSessionAnalyticsResolvedRangeDto {
|
|
14497
|
+
/**
|
|
14498
|
+
* Schedule-resolved range start. Not calendar midnight for DAY timeSpan.
|
|
14499
|
+
* @type {string}
|
|
14500
|
+
* @memberof PaymentSessionAnalyticsResolvedRangeDto
|
|
14501
|
+
*/
|
|
14502
|
+
'start': string;
|
|
14503
|
+
/**
|
|
14504
|
+
* Schedule-resolved range end. Not calendar midnight for DAY timeSpan.
|
|
14505
|
+
* @type {string}
|
|
14506
|
+
* @memberof PaymentSessionAnalyticsResolvedRangeDto
|
|
14507
|
+
*/
|
|
14508
|
+
'end': string;
|
|
14509
|
+
}
|
|
14510
|
+
/**
|
|
14511
|
+
*
|
|
14512
|
+
* @export
|
|
14513
|
+
* @interface PaymentSessionAnalyticsResponseDto
|
|
14514
|
+
*/
|
|
14515
|
+
export interface PaymentSessionAnalyticsResponseDto {
|
|
14516
|
+
/**
|
|
14517
|
+
*
|
|
14518
|
+
* @type {number}
|
|
14519
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14520
|
+
*/
|
|
14521
|
+
'orderCount': number;
|
|
14522
|
+
/**
|
|
14523
|
+
* Minor units (e.g. cents).
|
|
14524
|
+
* @type {number}
|
|
14525
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14526
|
+
*/
|
|
14527
|
+
'grossSales': number;
|
|
14528
|
+
/**
|
|
14529
|
+
* Minor units (e.g. cents).
|
|
14530
|
+
* @type {number}
|
|
14531
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14532
|
+
*/
|
|
14533
|
+
'tips': number;
|
|
14534
|
+
/**
|
|
14535
|
+
* Minor units (e.g. cents).
|
|
14536
|
+
* @type {number}
|
|
14537
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14538
|
+
*/
|
|
14539
|
+
'surcharges': number;
|
|
14540
|
+
/**
|
|
14541
|
+
*
|
|
14542
|
+
* @type {number}
|
|
14543
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14544
|
+
*/
|
|
14545
|
+
'refundCount': number;
|
|
14546
|
+
/**
|
|
14547
|
+
* Minor units (e.g. cents).
|
|
14548
|
+
* @type {number}
|
|
14549
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14550
|
+
*/
|
|
14551
|
+
'refundAmount': number;
|
|
14552
|
+
/**
|
|
14553
|
+
* grossSales - refundAmount, computed server-side.
|
|
14554
|
+
* @type {number}
|
|
14555
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14556
|
+
*/
|
|
14557
|
+
'netSales': number;
|
|
14558
|
+
/**
|
|
14559
|
+
*
|
|
14560
|
+
* @type {Array<PaymentSessionAnalyticsMethodBreakdownDto>}
|
|
14561
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14562
|
+
*/
|
|
14563
|
+
'byPaymentMethod': Array<PaymentSessionAnalyticsMethodBreakdownDto>;
|
|
14564
|
+
/**
|
|
14565
|
+
*
|
|
14566
|
+
* @type {PaymentSessionAnalyticsResolvedRangeDto}
|
|
14567
|
+
* @memberof PaymentSessionAnalyticsResponseDto
|
|
14568
|
+
*/
|
|
14569
|
+
'resolvedRange': PaymentSessionAnalyticsResolvedRangeDto;
|
|
14570
|
+
}
|
|
14466
14571
|
/**
|
|
14467
14572
|
*
|
|
14468
14573
|
* @export
|
|
@@ -36482,6 +36587,17 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
36482
36587
|
* @throws {RequiredError}
|
|
36483
36588
|
*/
|
|
36484
36589
|
getPaymentSession: (clientToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36590
|
+
/**
|
|
36591
|
+
* 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.
|
|
36592
|
+
* @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
|
|
36593
|
+
* @param {number} businessId The internal business ID.
|
|
36594
|
+
* @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\'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.
|
|
36595
|
+
* @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
36596
|
+
* @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
36597
|
+
* @param {*} [options] Override http request option.
|
|
36598
|
+
* @throws {RequiredError}
|
|
36599
|
+
*/
|
|
36600
|
+
getPaymentSessionAnalytics: (businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36485
36601
|
/**
|
|
36486
36602
|
* 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.
|
|
36487
36603
|
* @summary Initiate a Nets terminal payment session
|
|
@@ -36645,6 +36761,17 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
36645
36761
|
* @throws {RequiredError}
|
|
36646
36762
|
*/
|
|
36647
36763
|
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
36764
|
+
/**
|
|
36765
|
+
* 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.
|
|
36766
|
+
* @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
|
|
36767
|
+
* @param {number} businessId The internal business ID.
|
|
36768
|
+
* @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\'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.
|
|
36769
|
+
* @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
36770
|
+
* @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
36771
|
+
* @param {*} [options] Override http request option.
|
|
36772
|
+
* @throws {RequiredError}
|
|
36773
|
+
*/
|
|
36774
|
+
getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionAnalyticsResponseDto>>;
|
|
36648
36775
|
/**
|
|
36649
36776
|
* 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.
|
|
36650
36777
|
* @summary Initiate a Nets terminal payment session
|
|
@@ -36808,6 +36935,17 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
36808
36935
|
* @throws {RequiredError}
|
|
36809
36936
|
*/
|
|
36810
36937
|
getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
36938
|
+
/**
|
|
36939
|
+
* 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.
|
|
36940
|
+
* @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
|
|
36941
|
+
* @param {number} businessId The internal business ID.
|
|
36942
|
+
* @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\'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.
|
|
36943
|
+
* @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
36944
|
+
* @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
36945
|
+
* @param {*} [options] Override http request option.
|
|
36946
|
+
* @throws {RequiredError}
|
|
36947
|
+
*/
|
|
36948
|
+
getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<PaymentSessionAnalyticsResponseDto>;
|
|
36811
36949
|
/**
|
|
36812
36950
|
* 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.
|
|
36813
36951
|
* @summary Initiate a Nets terminal payment session
|
|
@@ -36975,6 +37113,18 @@ export interface PaymentSessionApiInterface {
|
|
|
36975
37113
|
* @memberof PaymentSessionApiInterface
|
|
36976
37114
|
*/
|
|
36977
37115
|
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
37116
|
+
/**
|
|
37117
|
+
* 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.
|
|
37118
|
+
* @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
|
|
37119
|
+
* @param {number} businessId The internal business ID.
|
|
37120
|
+
* @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\'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.
|
|
37121
|
+
* @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
37122
|
+
* @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
37123
|
+
* @param {*} [options] Override http request option.
|
|
37124
|
+
* @throws {RequiredError}
|
|
37125
|
+
* @memberof PaymentSessionApiInterface
|
|
37126
|
+
*/
|
|
37127
|
+
getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionAnalyticsResponseDto>;
|
|
36978
37128
|
/**
|
|
36979
37129
|
* 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.
|
|
36980
37130
|
* @summary Initiate a Nets terminal payment session
|
|
@@ -37159,6 +37309,18 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
37159
37309
|
* @memberof PaymentSessionApi
|
|
37160
37310
|
*/
|
|
37161
37311
|
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
37312
|
+
/**
|
|
37313
|
+
* 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.
|
|
37314
|
+
* @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
|
|
37315
|
+
* @param {number} businessId The internal business ID.
|
|
37316
|
+
* @param {TimeSpan} timeSpan Time span, required. DAY is resolved against the business\'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.
|
|
37317
|
+
* @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
37318
|
+
* @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
|
|
37319
|
+
* @param {*} [options] Override http request option.
|
|
37320
|
+
* @throws {RequiredError}
|
|
37321
|
+
* @memberof PaymentSessionApi
|
|
37322
|
+
*/
|
|
37323
|
+
getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionAnalyticsResponseDto, any, {}>>;
|
|
37162
37324
|
/**
|
|
37163
37325
|
* 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.
|
|
37164
37326
|
* @summary Initiate a Nets terminal payment session
|