@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.
@@ -3483,6 +3483,12 @@ export interface CreateManualSessionDto {
3483
3483
  * @memberof CreateManualSessionDto
3484
3484
  */
3485
3485
  'businessId': number;
3486
+ /**
3487
+ * 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.
3488
+ * @type {string}
3489
+ * @memberof CreateManualSessionDto
3490
+ */
3491
+ 'settlesSessionId'?: string;
3486
3492
  /**
3487
3493
  * The POS order ID this payment session is for.
3488
3494
  * @type {string}
@@ -4668,6 +4674,17 @@ export interface DeliveryDtoLocation {
4668
4674
  */
4669
4675
  'coordinates': LocationDtoCoordinates | null;
4670
4676
  }
4677
+ /**
4678
+ *
4679
+ * @export
4680
+ * @enum {string}
4681
+ */
4682
+ export declare const DeliveryIntentStatus: {
4683
+ readonly Pending: "pending";
4684
+ readonly Dispatched: "dispatched";
4685
+ readonly Failed: "failed";
4686
+ };
4687
+ export type DeliveryIntentStatus = typeof DeliveryIntentStatus[keyof typeof DeliveryIntentStatus];
4671
4688
  /**
4672
4689
  *
4673
4690
  * @export
@@ -13310,6 +13327,7 @@ export interface PaymentErrorDto {
13310
13327
  export declare const PaymentEventType: {
13311
13328
  readonly StatusChanged: "payment:status-changed";
13312
13329
  readonly RefundStatusChanged: "payment:refund-status-changed";
13330
+ readonly Outcome: "payment:outcome";
13313
13331
  };
13314
13332
  export type PaymentEventType = typeof PaymentEventType[keyof typeof PaymentEventType];
13315
13333
  /**
@@ -14203,6 +14221,17 @@ export interface PaymentMethodsResponseDto {
14203
14221
  */
14204
14222
  'minimumCheckoutAmount'?: number;
14205
14223
  }
14224
+ /**
14225
+ *
14226
+ * @export
14227
+ * @enum {string}
14228
+ */
14229
+ export declare const PaymentOutcomeStatus: {
14230
+ readonly Uncertain: "Uncertain";
14231
+ readonly Success: "Success";
14232
+ readonly Failed: "Failed";
14233
+ };
14234
+ export type PaymentOutcomeStatus = typeof PaymentOutcomeStatus[keyof typeof PaymentOutcomeStatus];
14206
14235
  /**
14207
14236
  *
14208
14237
  * @export
@@ -14463,6 +14492,111 @@ export declare const PaymentReportingBucket: {
14463
14492
  readonly Other: "other";
14464
14493
  };
14465
14494
  export type PaymentReportingBucket = typeof PaymentReportingBucket[keyof typeof PaymentReportingBucket];
14495
+ /**
14496
+ *
14497
+ * @export
14498
+ * @interface PaymentSessionAnalyticsMethodBreakdownDto
14499
+ */
14500
+ export interface PaymentSessionAnalyticsMethodBreakdownDto {
14501
+ /**
14502
+ * Paymethod code, e.g. Card / Debit / Credit / Edenred.
14503
+ * @type {string}
14504
+ * @memberof PaymentSessionAnalyticsMethodBreakdownDto
14505
+ */
14506
+ 'paymethod': string;
14507
+ /**
14508
+ *
14509
+ * @type {number}
14510
+ * @memberof PaymentSessionAnalyticsMethodBreakdownDto
14511
+ */
14512
+ 'count': number;
14513
+ /**
14514
+ * Minor units (e.g. cents).
14515
+ * @type {number}
14516
+ * @memberof PaymentSessionAnalyticsMethodBreakdownDto
14517
+ */
14518
+ 'amount': number;
14519
+ }
14520
+ /**
14521
+ *
14522
+ * @export
14523
+ * @interface PaymentSessionAnalyticsResolvedRangeDto
14524
+ */
14525
+ export interface PaymentSessionAnalyticsResolvedRangeDto {
14526
+ /**
14527
+ * Schedule-resolved range start. Not calendar midnight for DAY timeSpan.
14528
+ * @type {string}
14529
+ * @memberof PaymentSessionAnalyticsResolvedRangeDto
14530
+ */
14531
+ 'start': string;
14532
+ /**
14533
+ * Schedule-resolved range end. Not calendar midnight for DAY timeSpan.
14534
+ * @type {string}
14535
+ * @memberof PaymentSessionAnalyticsResolvedRangeDto
14536
+ */
14537
+ 'end': string;
14538
+ }
14539
+ /**
14540
+ *
14541
+ * @export
14542
+ * @interface PaymentSessionAnalyticsResponseDto
14543
+ */
14544
+ export interface PaymentSessionAnalyticsResponseDto {
14545
+ /**
14546
+ *
14547
+ * @type {number}
14548
+ * @memberof PaymentSessionAnalyticsResponseDto
14549
+ */
14550
+ 'orderCount': number;
14551
+ /**
14552
+ * Minor units (e.g. cents).
14553
+ * @type {number}
14554
+ * @memberof PaymentSessionAnalyticsResponseDto
14555
+ */
14556
+ 'grossSales': number;
14557
+ /**
14558
+ * Minor units (e.g. cents).
14559
+ * @type {number}
14560
+ * @memberof PaymentSessionAnalyticsResponseDto
14561
+ */
14562
+ 'tips': number;
14563
+ /**
14564
+ * Minor units (e.g. cents).
14565
+ * @type {number}
14566
+ * @memberof PaymentSessionAnalyticsResponseDto
14567
+ */
14568
+ 'surcharges': number;
14569
+ /**
14570
+ *
14571
+ * @type {number}
14572
+ * @memberof PaymentSessionAnalyticsResponseDto
14573
+ */
14574
+ 'refundCount': number;
14575
+ /**
14576
+ * Minor units (e.g. cents).
14577
+ * @type {number}
14578
+ * @memberof PaymentSessionAnalyticsResponseDto
14579
+ */
14580
+ 'refundAmount': number;
14581
+ /**
14582
+ * grossSales - refundAmount, computed server-side.
14583
+ * @type {number}
14584
+ * @memberof PaymentSessionAnalyticsResponseDto
14585
+ */
14586
+ 'netSales': number;
14587
+ /**
14588
+ *
14589
+ * @type {Array<PaymentSessionAnalyticsMethodBreakdownDto>}
14590
+ * @memberof PaymentSessionAnalyticsResponseDto
14591
+ */
14592
+ 'byPaymentMethod': Array<PaymentSessionAnalyticsMethodBreakdownDto>;
14593
+ /**
14594
+ *
14595
+ * @type {PaymentSessionAnalyticsResolvedRangeDto}
14596
+ * @memberof PaymentSessionAnalyticsResponseDto
14597
+ */
14598
+ 'resolvedRange': PaymentSessionAnalyticsResolvedRangeDto;
14599
+ }
14466
14600
  /**
14467
14601
  *
14468
14602
  * @export
@@ -14657,6 +14791,12 @@ export interface PaymentStatusDtoTransaction {
14657
14791
  * @memberof PaymentStatusDtoTransaction
14658
14792
  */
14659
14793
  'type': PaymentMethod;
14794
+ /**
14795
+ *
14796
+ * @type {PaymentOutcomeStatus}
14797
+ * @memberof PaymentStatusDtoTransaction
14798
+ */
14799
+ 'paymentOutcomeStatus'?: PaymentOutcomeStatus;
14660
14800
  /**
14661
14801
  * Amount paid in cents
14662
14802
  * @type {number}
@@ -22424,6 +22564,12 @@ export interface TransactionDto {
22424
22564
  * @memberof TransactionDto
22425
22565
  */
22426
22566
  'type': PaymentMethod;
22567
+ /**
22568
+ *
22569
+ * @type {PaymentOutcomeStatus}
22570
+ * @memberof TransactionDto
22571
+ */
22572
+ 'paymentOutcomeStatus'?: PaymentOutcomeStatus;
22427
22573
  /**
22428
22574
  * Amount paid in cents
22429
22575
  * @type {number}
@@ -24134,6 +24280,37 @@ export interface UpdateChannelInventoryDto {
24134
24280
  */
24135
24281
  'channels': Array<ChannelInventoryUpdateDto>;
24136
24282
  }
24283
+ /**
24284
+ *
24285
+ * @export
24286
+ * @interface UpdateDeliveryIntentDto
24287
+ */
24288
+ export interface UpdateDeliveryIntentDto {
24289
+ /**
24290
+ *
24291
+ * @type {DeliveryIntentStatus}
24292
+ * @memberof UpdateDeliveryIntentDto
24293
+ */
24294
+ 'status': DeliveryIntentStatus;
24295
+ /**
24296
+ *
24297
+ * @type {string}
24298
+ * @memberof UpdateDeliveryIntentDto
24299
+ */
24300
+ 'providerDeliveryId'?: string;
24301
+ /**
24302
+ *
24303
+ * @type {string}
24304
+ * @memberof UpdateDeliveryIntentDto
24305
+ */
24306
+ 'trackingUrl'?: string;
24307
+ /**
24308
+ *
24309
+ * @type {string}
24310
+ * @memberof UpdateDeliveryIntentDto
24311
+ */
24312
+ 'failureReason'?: string;
24313
+ }
24137
24314
  /**
24138
24315
  *
24139
24316
  * @export
@@ -27150,10 +27327,10 @@ export interface WalletItemDto {
27150
27327
  'id': number;
27151
27328
  /**
27152
27329
  *
27153
- * @type {string}
27330
+ * @type {WalletItemStatus}
27154
27331
  * @memberof WalletItemDto
27155
27332
  */
27156
- 'status': StatusEnum;
27333
+ 'status': WalletItemStatus;
27157
27334
  /**
27158
27335
  *
27159
27336
  * @type {object}
@@ -27167,11 +27344,16 @@ export interface WalletItemDto {
27167
27344
  */
27168
27345
  'catalog': WalletCatalogDto;
27169
27346
  }
27170
- export declare const StatusEnum: {
27347
+ /**
27348
+ *
27349
+ * @export
27350
+ * @enum {string}
27351
+ */
27352
+ export declare const WalletItemStatus: {
27171
27353
  readonly Claimed: "Claimed";
27172
27354
  readonly Redeemed: "Redeemed";
27173
27355
  };
27174
- export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum];
27356
+ export type WalletItemStatus = typeof WalletItemStatus[keyof typeof WalletItemStatus];
27175
27357
  /**
27176
27358
  *
27177
27359
  * @export
@@ -30612,6 +30794,128 @@ export declare class CoursesApi extends BaseAPI implements CoursesApiInterface {
30612
30794
  */
30613
30795
  getCourses(businessId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CourseDto[], any, {}>>;
30614
30796
  }
30797
+ /**
30798
+ * DeliveryIntentApi - axios parameter creator
30799
+ * @export
30800
+ */
30801
+ export declare const DeliveryIntentApiAxiosParamCreator: (configuration?: Configuration) => {
30802
+ /**
30803
+ * Internal service-to-service call, requires the `x-internal-token` header.
30804
+ * @summary Fetch a delivery intent for courier execution
30805
+ * @param {string} intentId
30806
+ * @param {*} [options] Override http request option.
30807
+ * @throws {RequiredError}
30808
+ */
30809
+ findIntent: (intentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30810
+ /**
30811
+ * Internal service-to-service call, requires the `x-internal-token` header.
30812
+ * @summary Report the courier execution outcome of a delivery intent
30813
+ * @param {string} intentId
30814
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
30815
+ * @param {*} [options] Override http request option.
30816
+ * @throws {RequiredError}
30817
+ */
30818
+ updateIntent: (intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30819
+ };
30820
+ /**
30821
+ * DeliveryIntentApi - functional programming interface
30822
+ * @export
30823
+ */
30824
+ export declare const DeliveryIntentApiFp: (configuration?: Configuration) => {
30825
+ /**
30826
+ * Internal service-to-service call, requires the `x-internal-token` header.
30827
+ * @summary Fetch a delivery intent for courier execution
30828
+ * @param {string} intentId
30829
+ * @param {*} [options] Override http request option.
30830
+ * @throws {RequiredError}
30831
+ */
30832
+ findIntent(intentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
30833
+ /**
30834
+ * Internal service-to-service call, requires the `x-internal-token` header.
30835
+ * @summary Report the courier execution outcome of a delivery intent
30836
+ * @param {string} intentId
30837
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
30838
+ * @param {*} [options] Override http request option.
30839
+ * @throws {RequiredError}
30840
+ */
30841
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
30842
+ };
30843
+ /**
30844
+ * DeliveryIntentApi - factory interface
30845
+ * @export
30846
+ */
30847
+ export declare const DeliveryIntentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
30848
+ /**
30849
+ * Internal service-to-service call, requires the `x-internal-token` header.
30850
+ * @summary Fetch a delivery intent for courier execution
30851
+ * @param {string} intentId
30852
+ * @param {*} [options] Override http request option.
30853
+ * @throws {RequiredError}
30854
+ */
30855
+ findIntent(intentId: string, options?: any): AxiosPromise<void>;
30856
+ /**
30857
+ * Internal service-to-service call, requires the `x-internal-token` header.
30858
+ * @summary Report the courier execution outcome of a delivery intent
30859
+ * @param {string} intentId
30860
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
30861
+ * @param {*} [options] Override http request option.
30862
+ * @throws {RequiredError}
30863
+ */
30864
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: any): AxiosPromise<void>;
30865
+ };
30866
+ /**
30867
+ * DeliveryIntentApi - interface
30868
+ * @export
30869
+ * @interface DeliveryIntentApi
30870
+ */
30871
+ export interface DeliveryIntentApiInterface {
30872
+ /**
30873
+ * Internal service-to-service call, requires the `x-internal-token` header.
30874
+ * @summary Fetch a delivery intent for courier execution
30875
+ * @param {string} intentId
30876
+ * @param {*} [options] Override http request option.
30877
+ * @throws {RequiredError}
30878
+ * @memberof DeliveryIntentApiInterface
30879
+ */
30880
+ findIntent(intentId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
30881
+ /**
30882
+ * Internal service-to-service call, requires the `x-internal-token` header.
30883
+ * @summary Report the courier execution outcome of a delivery intent
30884
+ * @param {string} intentId
30885
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
30886
+ * @param {*} [options] Override http request option.
30887
+ * @throws {RequiredError}
30888
+ * @memberof DeliveryIntentApiInterface
30889
+ */
30890
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): AxiosPromise<void>;
30891
+ }
30892
+ /**
30893
+ * DeliveryIntentApi - object-oriented interface
30894
+ * @export
30895
+ * @class DeliveryIntentApi
30896
+ * @extends {BaseAPI}
30897
+ */
30898
+ export declare class DeliveryIntentApi extends BaseAPI implements DeliveryIntentApiInterface {
30899
+ /**
30900
+ * Internal service-to-service call, requires the `x-internal-token` header.
30901
+ * @summary Fetch a delivery intent for courier execution
30902
+ * @param {string} intentId
30903
+ * @param {*} [options] Override http request option.
30904
+ * @throws {RequiredError}
30905
+ * @memberof DeliveryIntentApi
30906
+ */
30907
+ findIntent(intentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
30908
+ /**
30909
+ * Internal service-to-service call, requires the `x-internal-token` header.
30910
+ * @summary Report the courier execution outcome of a delivery intent
30911
+ * @param {string} intentId
30912
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
30913
+ * @param {*} [options] Override http request option.
30914
+ * @throws {RequiredError}
30915
+ * @memberof DeliveryIntentApi
30916
+ */
30917
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
30918
+ }
30615
30919
  /**
30616
30920
  * DisplayApi - axios parameter creator
30617
30921
  * @export
@@ -36482,6 +36786,17 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
36482
36786
  * @throws {RequiredError}
36483
36787
  */
36484
36788
  getPaymentSession: (clientToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36789
+ /**
36790
+ * 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.
36791
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
36792
+ * @param {number} businessId The internal business ID.
36793
+ * @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.
36794
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
36795
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
36796
+ * @param {*} [options] Override http request option.
36797
+ * @throws {RequiredError}
36798
+ */
36799
+ getPaymentSessionAnalytics: (businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36485
36800
  /**
36486
36801
  * 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
36802
  * @summary Initiate a Nets terminal payment session
@@ -36645,6 +36960,17 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
36645
36960
  * @throws {RequiredError}
36646
36961
  */
36647
36962
  getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
36963
+ /**
36964
+ * 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.
36965
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
36966
+ * @param {number} businessId The internal business ID.
36967
+ * @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.
36968
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
36969
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
36970
+ * @param {*} [options] Override http request option.
36971
+ * @throws {RequiredError}
36972
+ */
36973
+ getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionAnalyticsResponseDto>>;
36648
36974
  /**
36649
36975
  * 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
36976
  * @summary Initiate a Nets terminal payment session
@@ -36808,6 +37134,17 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
36808
37134
  * @throws {RequiredError}
36809
37135
  */
36810
37136
  getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto>;
37137
+ /**
37138
+ * 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.
37139
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
37140
+ * @param {number} businessId The internal business ID.
37141
+ * @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.
37142
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
37143
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
37144
+ * @param {*} [options] Override http request option.
37145
+ * @throws {RequiredError}
37146
+ */
37147
+ getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<PaymentSessionAnalyticsResponseDto>;
36811
37148
  /**
36812
37149
  * 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
37150
  * @summary Initiate a Nets terminal payment session
@@ -36975,6 +37312,18 @@ export interface PaymentSessionApiInterface {
36975
37312
  * @memberof PaymentSessionApiInterface
36976
37313
  */
36977
37314
  getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
37315
+ /**
37316
+ * 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.
37317
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
37318
+ * @param {number} businessId The internal business ID.
37319
+ * @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.
37320
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
37321
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
37322
+ * @param {*} [options] Override http request option.
37323
+ * @throws {RequiredError}
37324
+ * @memberof PaymentSessionApiInterface
37325
+ */
37326
+ getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionAnalyticsResponseDto>;
36978
37327
  /**
36979
37328
  * 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
37329
  * @summary Initiate a Nets terminal payment session
@@ -37159,6 +37508,18 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
37159
37508
  * @memberof PaymentSessionApi
37160
37509
  */
37161
37510
  getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
37511
+ /**
37512
+ * 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.
37513
+ * @summary Sales/tips/surcharges/refunds summary, scoped to the calling app channel
37514
+ * @param {number} businessId The internal business ID.
37515
+ * @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.
37516
+ * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
37517
+ * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
37518
+ * @param {*} [options] Override http request option.
37519
+ * @throws {RequiredError}
37520
+ * @memberof PaymentSessionApi
37521
+ */
37522
+ getPaymentSessionAnalytics(businessId: number, timeSpan: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionAnalyticsResponseDto, any, {}>>;
37162
37523
  /**
37163
37524
  * 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
37525
  * @summary Initiate a Nets terminal payment session
@@ -41042,7 +41403,8 @@ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration
41042
41403
  */
41043
41404
  handleVivaSessionEvents: (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41044
41405
  /**
41045
- *
41406
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
41407
+ * @summary Handle Shipday delivery webhook events
41046
41408
  * @param {*} [options] Override http request option.
41047
41409
  * @throws {RequiredError}
41048
41410
  */
@@ -41188,7 +41550,8 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
41188
41550
  */
41189
41551
  handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
41190
41552
  /**
41191
- *
41553
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
41554
+ * @summary Handle Shipday delivery webhook events
41192
41555
  * @param {*} [options] Override http request option.
41193
41556
  * @throws {RequiredError}
41194
41557
  */
@@ -41334,7 +41697,8 @@ export declare const WebhookApiFactory: (configuration?: Configuration, basePath
41334
41697
  */
41335
41698
  handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void>;
41336
41699
  /**
41337
- *
41700
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
41701
+ * @summary Handle Shipday delivery webhook events
41338
41702
  * @param {*} [options] Override http request option.
41339
41703
  * @throws {RequiredError}
41340
41704
  */
@@ -41493,7 +41857,8 @@ export interface WebhookApiInterface {
41493
41857
  */
41494
41858
  handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
41495
41859
  /**
41496
- *
41860
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
41861
+ * @summary Handle Shipday delivery webhook events
41497
41862
  * @param {*} [options] Override http request option.
41498
41863
  * @throws {RequiredError}
41499
41864
  * @memberof WebhookApiInterface
@@ -41662,7 +42027,8 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
41662
42027
  */
41663
42028
  handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
41664
42029
  /**
41665
- *
42030
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
42031
+ * @summary Handle Shipday delivery webhook events
41666
42032
  * @param {*} [options] Override http request option.
41667
42033
  * @throws {RequiredError}
41668
42034
  * @memberof WebhookApi