@munchi_oy/core 1.9.113 → 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.
@@ -10053,6 +10053,24 @@ export interface MunchiPaySessionDto {
10053
10053
  * @memberof MunchiPaySessionDto
10054
10054
  */
10055
10055
  'metadata'?: object;
10056
+ /**
10057
+ * Total amount refunded against this sale, in cents. Always 0 for non-SALE purpose sessions.
10058
+ * @type {number}
10059
+ * @memberof MunchiPaySessionDto
10060
+ */
10061
+ 'refundedAmount': number;
10062
+ /**
10063
+ * True when refundedAmount >= amount (fully refunded).
10064
+ * @type {boolean}
10065
+ * @memberof MunchiPaySessionDto
10066
+ */
10067
+ 'isFullyRefunded': boolean;
10068
+ /**
10069
+ * True when 0 < refundedAmount < amount (partially refunded).
10070
+ * @type {boolean}
10071
+ * @memberof MunchiPaySessionDto
10072
+ */
10073
+ 'isPartiallyRefunded': boolean;
10056
10074
  /**
10057
10075
  *
10058
10076
  * @type {string}
@@ -12751,6 +12769,12 @@ export interface ParkPosOrderDto {
12751
12769
  * @memberof ParkPosOrderDto
12752
12770
  */
12753
12771
  'order': ParkPosOrderDtoOrder;
12772
+ /**
12773
+ * Line items cancelled by this operation only, never the accumulated history. A line already dispatched is cancelled on the order and revised on every ticket it reached; a line the request does not name is untouched. Absent on an ordinary park.
12774
+ * @type {Array<string>}
12775
+ * @memberof ParkPosOrderDto
12776
+ */
12777
+ 'cancelledLineItemIds'?: Array<string>;
12754
12778
  }
12755
12779
  /**
12756
12780
  * POS order snapshot to park. Server-owned fields (payments, refunds, loyalty, completion and routing outcomes) are ignored, and a line the server has already dispatched keeps its server state.
@@ -14439,6 +14463,111 @@ export declare const PaymentReportingBucket: {
14439
14463
  readonly Other: "other";
14440
14464
  };
14441
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
+ }
14442
14571
  /**
14443
14572
  *
14444
14573
  * @export
@@ -34469,7 +34598,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
34469
34598
  */
34470
34599
  markOrderAsReady: (readyOrderDto: ReadyOrderDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34471
34600
  /**
34472
- * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines the server has already dispatched keep their server state, so retrying the same park creates no second ticket.
34601
+ * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines already dispatched or already on a ticket keep their server state, so retrying the same park creates no second ticket. An order previously ticketed by the legacy path is accepted: its existing tickets are left untouched and count as settled work. A request may also name the lines this operation cancelled, which the same transaction cancels on the order and revises on every ticket that already carried them.
34473
34602
  * @summary Park a POS order on the event-v1 path
34474
34603
  * @param {ParkPosOrderDto} parkPosOrderDto
34475
34604
  * @param {*} [options] Override http request option.
@@ -34617,7 +34746,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
34617
34746
  */
34618
34747
  markOrderAsReady(readyOrderDto: ReadyOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderStatusResponseDto>>;
34619
34748
  /**
34620
- * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines the server has already dispatched keep their server state, so retrying the same park creates no second ticket.
34749
+ * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines already dispatched or already on a ticket keep their server state, so retrying the same park creates no second ticket. An order previously ticketed by the legacy path is accepted: its existing tickets are left untouched and count as settled work. A request may also name the lines this operation cancelled, which the same transaction cancels on the order and revises on every ticket that already carried them.
34621
34750
  * @summary Park a POS order on the event-v1 path
34622
34751
  * @param {ParkPosOrderDto} parkPosOrderDto
34623
34752
  * @param {*} [options] Override http request option.
@@ -34765,7 +34894,7 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
34765
34894
  */
34766
34895
  markOrderAsReady(readyOrderDto: ReadyOrderDto, options?: any): AxiosPromise<OrderStatusResponseDto>;
34767
34896
  /**
34768
- * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines the server has already dispatched keep their server state, so retrying the same park creates no second ticket.
34897
+ * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines already dispatched or already on a ticket keep their server state, so retrying the same park creates no second ticket. An order previously ticketed by the legacy path is accepted: its existing tickets are left untouched and count as settled work. A request may also name the lines this operation cancelled, which the same transaction cancels on the order and revises on every ticket that already carried them.
34769
34898
  * @summary Park a POS order on the event-v1 path
34770
34899
  * @param {ParkPosOrderDto} parkPosOrderDto
34771
34900
  * @param {*} [options] Override http request option.
@@ -34925,7 +35054,7 @@ export interface OrdersApiInterface {
34925
35054
  */
34926
35055
  markOrderAsReady(readyOrderDto: ReadyOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
34927
35056
  /**
34928
- * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines the server has already dispatched keep their server state, so retrying the same park creates no second ticket.
35057
+ * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines already dispatched or already on a ticket keep their server state, so retrying the same park creates no second ticket. An order previously ticketed by the legacy path is accepted: its existing tickets are left untouched and count as settled work. A request may also name the lines this operation cancelled, which the same transaction cancels on the order and revises on every ticket that already carried them.
34929
35058
  * @summary Park a POS order on the event-v1 path
34930
35059
  * @param {ParkPosOrderDto} parkPosOrderDto
34931
35060
  * @param {*} [options] Override http request option.
@@ -35092,7 +35221,7 @@ export declare class OrdersApi extends BaseAPI implements OrdersApiInterface {
35092
35221
  */
35093
35222
  markOrderAsReady(readyOrderDto: ReadyOrderDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderStatusResponseDto, any, {}>>;
35094
35223
  /**
35095
- * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines the server has already dispatched keep their server state, so retrying the same park creates no second ticket.
35224
+ * Persists the order snapshot, resolves the dispatch policy for every line once, and tickets the lines that have not been fired yet. Held lines stay on the order and are neither ticketed, printed nor sent to the kitchen screen. Lines already dispatched or already on a ticket keep their server state, so retrying the same park creates no second ticket. An order previously ticketed by the legacy path is accepted: its existing tickets are left untouched and count as settled work. A request may also name the lines this operation cancelled, which the same transaction cancels on the order and revises on every ticket that already carried them.
35096
35225
  * @summary Park a POS order on the event-v1 path
35097
35226
  * @param {ParkPosOrderDto} parkPosOrderDto
35098
35227
  * @param {*} [options] Override http request option.
@@ -36458,6 +36587,17 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
36458
36587
  * @throws {RequiredError}
36459
36588
  */
36460
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\&#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.
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>;
36461
36601
  /**
36462
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.
36463
36603
  * @summary Initiate a Nets terminal payment session
@@ -36621,6 +36761,17 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
36621
36761
  * @throws {RequiredError}
36622
36762
  */
36623
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\&#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.
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>>;
36624
36775
  /**
36625
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.
36626
36777
  * @summary Initiate a Nets terminal payment session
@@ -36784,6 +36935,17 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
36784
36935
  * @throws {RequiredError}
36785
36936
  */
36786
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\&#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.
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>;
36787
36949
  /**
36788
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.
36789
36951
  * @summary Initiate a Nets terminal payment session
@@ -36951,6 +37113,18 @@ export interface PaymentSessionApiInterface {
36951
37113
  * @memberof PaymentSessionApiInterface
36952
37114
  */
36953
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\&#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.
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>;
36954
37128
  /**
36955
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.
36956
37130
  * @summary Initiate a Nets terminal payment session
@@ -37135,6 +37309,18 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
37135
37309
  * @memberof PaymentSessionApi
37136
37310
  */
37137
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\&#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.
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, {}>>;
37138
37324
  /**
37139
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.
37140
37326
  * @summary Initiate a Nets terminal payment session