@munchi_oy/core 1.9.117 → 1.9.118

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
@@ -3599,6 +3599,12 @@ export interface CreateLoyaltyProgramUserResponseDto {
3599
3599
  * @interface CreateManualSessionDto
3600
3600
  */
3601
3601
  export interface CreateManualSessionDto {
3602
+ /**
3603
+ *
3604
+ * @type {CreateManualSessionDtoDevice}
3605
+ * @memberof CreateManualSessionDto
3606
+ */
3607
+ 'device'?: CreateManualSessionDtoDevice | null;
3602
3608
  /**
3603
3609
  * The internal business ID.
3604
3610
  * @type {number}
@@ -3668,6 +3674,33 @@ export interface CreateManualSessionDto {
3668
3674
  }
3669
3675
 
3670
3676
 
3677
+ /**
3678
+ * The device taking this payment. Optional so an app build that predates the field still records payments.
3679
+ * @export
3680
+ * @interface CreateManualSessionDtoDevice
3681
+ */
3682
+ export interface CreateManualSessionDtoDevice {
3683
+ /**
3684
+ * Station hardware id of the device.
3685
+ * @type {string}
3686
+ * @memberof CreateManualSessionDtoDevice
3687
+ */
3688
+ 'id': string;
3689
+ /**
3690
+ * The device\'s name at the time of payment. Empty when the venue never set one.
3691
+ * @type {string}
3692
+ * @memberof CreateManualSessionDtoDevice
3693
+ */
3694
+ 'name'?: string | null;
3695
+ /**
3696
+ *
3697
+ * @type {PaymentApp}
3698
+ * @memberof CreateManualSessionDtoDevice
3699
+ */
3700
+ 'app': PaymentApp;
3701
+ }
3702
+
3703
+
3671
3704
  /**
3672
3705
  * The full POS order (cart) this payment is for. Sent by the client instead of a separate Firestore upsert so the backend writes the order, records the payment and returns the computed order in one round-trip.
3673
3706
  * @export
@@ -13583,6 +13616,21 @@ export interface PayTerminalSessionTokenResponseDto {
13583
13616
  */
13584
13617
  'terminalName'?: string | null;
13585
13618
  }
13619
+ /**
13620
+ *
13621
+ * @export
13622
+ * @enum {string}
13623
+ */
13624
+
13625
+ export const PaymentApp = {
13626
+ Pos: 'munchi_pos',
13627
+ Handheld: 'munchi_handheld',
13628
+ Pay: 'munchi_pay'
13629
+ } as const;
13630
+
13631
+ export type PaymentApp = typeof PaymentApp[keyof typeof PaymentApp];
13632
+
13633
+
13586
13634
  /**
13587
13635
  *
13588
13636
  * @export
@@ -13638,6 +13686,33 @@ export interface PaymentDetailsDto {
13638
13686
  */
13639
13687
  'difference': number;
13640
13688
  }
13689
+ /**
13690
+ *
13691
+ * @export
13692
+ * @interface PaymentDeviceDto
13693
+ */
13694
+ export interface PaymentDeviceDto {
13695
+ /**
13696
+ * Station hardware id of the device.
13697
+ * @type {string}
13698
+ * @memberof PaymentDeviceDto
13699
+ */
13700
+ 'id': string;
13701
+ /**
13702
+ * The device\'s name at the time of payment. Empty when the venue never set one.
13703
+ * @type {string}
13704
+ * @memberof PaymentDeviceDto
13705
+ */
13706
+ 'name'?: string | null;
13707
+ /**
13708
+ *
13709
+ * @type {PaymentApp}
13710
+ * @memberof PaymentDeviceDto
13711
+ */
13712
+ 'app': PaymentApp;
13713
+ }
13714
+
13715
+
13641
13716
  /**
13642
13717
  *
13643
13718
  * @export
@@ -15265,6 +15340,18 @@ export interface PaymentStatusDtoTransaction {
15265
15340
  * @memberof PaymentStatusDtoTransaction
15266
15341
  */
15267
15342
  'itemAllocations'?: Array<TransactionItemAllocationDto> | null;
15343
+ /**
15344
+ *
15345
+ * @type {TransactionDtoDevice}
15346
+ * @memberof PaymentStatusDtoTransaction
15347
+ */
15348
+ 'device'?: TransactionDtoDevice | null;
15349
+ /**
15350
+ *
15351
+ * @type {TransactionDtoCapturedBy}
15352
+ * @memberof PaymentStatusDtoTransaction
15353
+ */
15354
+ 'capturedBy'?: TransactionDtoCapturedBy | null;
15268
15355
  /**
15269
15356
  * Indicates whether this transaction was processed as a pre-authorization.
15270
15357
  * @type {string}
@@ -18427,6 +18514,25 @@ export const PrinterTypeEnum = {
18427
18514
  export type PrinterTypeEnum = typeof PrinterTypeEnum[keyof typeof PrinterTypeEnum];
18428
18515
 
18429
18516
 
18517
+ /**
18518
+ *
18519
+ * @export
18520
+ * @interface ProcessDispatchTaskDto
18521
+ */
18522
+ export interface ProcessDispatchTaskDto {
18523
+ /**
18524
+ * Business the order belongs to.
18525
+ * @type {number}
18526
+ * @memberof ProcessDispatchTaskDto
18527
+ */
18528
+ 'businessId': number;
18529
+ /**
18530
+ * Order to dispatch. Everything else is re-read from the order.
18531
+ * @type {string}
18532
+ * @memberof ProcessDispatchTaskDto
18533
+ */
18534
+ 'orderId': string;
18535
+ }
18430
18536
  /**
18431
18537
  *
18432
18538
  * @export
@@ -21082,6 +21188,19 @@ export const ScopeEnum = {
21082
21188
 
21083
21189
  export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
21084
21190
 
21191
+ /**
21192
+ *
21193
+ * @export
21194
+ * @interface RetryWorldlineReversalDto
21195
+ */
21196
+ export interface RetryWorldlineReversalDto {
21197
+ /**
21198
+ * Session id of the SALE whose reversal was refused and is being asked for again.
21199
+ * @type {string}
21200
+ * @memberof RetryWorldlineReversalDto
21201
+ */
21202
+ 'parentSessionId': string;
21203
+ }
21085
21204
  /**
21086
21205
  *
21087
21206
  * @export
@@ -23285,6 +23404,18 @@ export interface TransactionDto {
23285
23404
  * @memberof TransactionDto
23286
23405
  */
23287
23406
  'itemAllocations'?: Array<TransactionItemAllocationDto> | null;
23407
+ /**
23408
+ *
23409
+ * @type {TransactionDtoDevice}
23410
+ * @memberof TransactionDto
23411
+ */
23412
+ 'device'?: TransactionDtoDevice | null;
23413
+ /**
23414
+ *
23415
+ * @type {TransactionDtoCapturedBy}
23416
+ * @memberof TransactionDto
23417
+ */
23418
+ 'capturedBy'?: TransactionDtoCapturedBy | null;
23288
23419
  /**
23289
23420
  * Indicates whether this transaction was processed as a pre-authorization.
23290
23421
  * @type {string}
@@ -23300,6 +23431,33 @@ export interface TransactionDto {
23300
23431
  }
23301
23432
 
23302
23433
 
23434
+ /**
23435
+ * The device that physically ran the card, when that is not the device holding the order — a POS paired to a MunchiPay terminal. Absent otherwise, so its presence is what marks a paired charge.
23436
+ * @export
23437
+ * @interface TransactionDtoCapturedBy
23438
+ */
23439
+ export interface TransactionDtoCapturedBy {
23440
+ /**
23441
+ * Station hardware id of the device.
23442
+ * @type {string}
23443
+ * @memberof TransactionDtoCapturedBy
23444
+ */
23445
+ 'id': string;
23446
+ /**
23447
+ * The device\'s name at the time of payment. Empty when the venue never set one.
23448
+ * @type {string}
23449
+ * @memberof TransactionDtoCapturedBy
23450
+ */
23451
+ 'name'?: string | null;
23452
+ /**
23453
+ *
23454
+ * @type {PaymentApp}
23455
+ * @memberof TransactionDtoCapturedBy
23456
+ */
23457
+ 'app': PaymentApp;
23458
+ }
23459
+
23460
+
23303
23461
  /**
23304
23462
  * Details about the cart, optional
23305
23463
  * @export
@@ -23355,6 +23513,33 @@ export interface TransactionDtoCardDetail {
23355
23513
  */
23356
23514
  'issuer': string | null;
23357
23515
  }
23516
+ /**
23517
+ * The device that owns the order this payment settles. Absent on payments taken by an app build that predates the field.
23518
+ * @export
23519
+ * @interface TransactionDtoDevice
23520
+ */
23521
+ export interface TransactionDtoDevice {
23522
+ /**
23523
+ * Station hardware id of the device.
23524
+ * @type {string}
23525
+ * @memberof TransactionDtoDevice
23526
+ */
23527
+ 'id': string;
23528
+ /**
23529
+ * The device\'s name at the time of payment. Empty when the venue never set one.
23530
+ * @type {string}
23531
+ * @memberof TransactionDtoDevice
23532
+ */
23533
+ 'name'?: string | null;
23534
+ /**
23535
+ *
23536
+ * @type {PaymentApp}
23537
+ * @memberof TransactionDtoDevice
23538
+ */
23539
+ 'app': PaymentApp;
23540
+ }
23541
+
23542
+
23358
23543
  /**
23359
23544
  * Fees for this payment
23360
23545
  * @export
@@ -41676,7 +41861,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
41676
41861
  };
41677
41862
  },
41678
41863
  /**
41679
- * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
41864
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, and a dispatch already running for the same order short-circuits, so calling this twice is safe.
41680
41865
  * @summary Ready & Send a POS order to the kitchen
41681
41866
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
41682
41867
  * @param {*} [options] Override http request option.
@@ -42230,7 +42415,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
42230
42415
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
42231
42416
  },
42232
42417
  /**
42233
- * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
42418
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, and a dispatch already running for the same order short-circuits, so calling this twice is safe.
42234
42419
  * @summary Ready & Send a POS order to the kitchen
42235
42420
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
42236
42421
  * @param {*} [options] Override http request option.
@@ -42429,7 +42614,7 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
42429
42614
  return localVarFp.deliverOrder(deliveredOrderDto, options).then((request) => request(axios, basePath));
42430
42615
  },
42431
42616
  /**
42432
- * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
42617
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, and a dispatch already running for the same order short-circuits, so calling this twice is safe.
42433
42618
  * @summary Ready & Send a POS order to the kitchen
42434
42619
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
42435
42620
  * @param {*} [options] Override http request option.
@@ -42614,7 +42799,7 @@ export interface OrdersApiInterface {
42614
42799
  deliverOrder(deliveredOrderDto: DeliveredOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
42615
42800
 
42616
42801
  /**
42617
- * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
42802
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, and a dispatch already running for the same order short-circuits, so calling this twice is safe.
42618
42803
  * @summary Ready & Send a POS order to the kitchen
42619
42804
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
42620
42805
  * @param {*} [options] Override http request option.
@@ -42807,7 +42992,7 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
42807
42992
  }
42808
42993
 
42809
42994
  /**
42810
- * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
42995
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, and a dispatch already running for the same order short-circuits, so calling this twice is safe.
42811
42996
  * @summary Ready & Send a POS order to the kitchen
42812
42997
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
42813
42998
  * @param {*} [options] Override http request option.
@@ -45942,6 +46127,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
45942
46127
  options: localVarRequestOptions,
45943
46128
  };
45944
46129
  },
46130
+ /**
46131
+ * Called by a Cloud Task (not the client). Re-checks a charge whose reversal the terminal refused: stops if the charge was resolved another way, stops if an earlier attempt completed at the gateway, otherwise asks once more. After twelve hours, or on a refusal that can never clear, the charge is written to the till for a waiter to refund.
46132
+ * @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
46133
+ * @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
46134
+ * @param {*} [options] Override http request option.
46135
+ * @throws {RequiredError}
46136
+ */
46137
+ retryWorldlineReversal: async (retryWorldlineReversalDto: RetryWorldlineReversalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46138
+ // verify required parameter 'retryWorldlineReversalDto' is not null or undefined
46139
+ assertParamExists('retryWorldlineReversal', 'retryWorldlineReversalDto', retryWorldlineReversalDto)
46140
+ const localVarPath = `/api/v1/payment-session/worldline/reversal-retry`;
46141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46142
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46143
+ let baseOptions;
46144
+ if (configuration) {
46145
+ baseOptions = configuration.baseOptions;
46146
+ }
46147
+
46148
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
46149
+ const localVarHeaderParameter = {} as any;
46150
+ const localVarQueryParameter = {} as any;
46151
+
46152
+
46153
+
46154
+ localVarHeaderParameter['Content-Type'] = 'application/json';
46155
+
46156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46159
+ localVarRequestOptions.data = serializeDataIfNeeded(retryWorldlineReversalDto, localVarRequestOptions, configuration)
46160
+
46161
+ return {
46162
+ url: toPathString(localVarUrlObj),
46163
+ options: localVarRequestOptions,
46164
+ };
46165
+ },
45945
46166
  /**
45946
46167
  * Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
45947
46168
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -46280,6 +46501,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
46280
46501
  const localVarAxiosArgs = await localVarAxiosParamCreator.refundWorldlineSession(reverseSessionDto, options);
46281
46502
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46282
46503
  },
46504
+ /**
46505
+ * Called by a Cloud Task (not the client). Re-checks a charge whose reversal the terminal refused: stops if the charge was resolved another way, stops if an earlier attempt completed at the gateway, otherwise asks once more. After twelve hours, or on a refusal that can never clear, the charge is written to the till for a waiter to refund.
46506
+ * @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
46507
+ * @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
46508
+ * @param {*} [options] Override http request option.
46509
+ * @throws {RequiredError}
46510
+ */
46511
+ async retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
46512
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryWorldlineReversal(retryWorldlineReversalDto, options);
46513
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46514
+ },
46283
46515
  /**
46284
46516
  * Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
46285
46517
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -46502,6 +46734,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
46502
46734
  refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
46503
46735
  return localVarFp.refundWorldlineSession(reverseSessionDto, options).then((request) => request(axios, basePath));
46504
46736
  },
46737
+ /**
46738
+ * Called by a Cloud Task (not the client). Re-checks a charge whose reversal the terminal refused: stops if the charge was resolved another way, stops if an earlier attempt completed at the gateway, otherwise asks once more. After twelve hours, or on a refusal that can never clear, the charge is written to the till for a waiter to refund.
46739
+ * @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
46740
+ * @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
46741
+ * @param {*} [options] Override http request option.
46742
+ * @throws {RequiredError}
46743
+ */
46744
+ retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: any): AxiosPromise<void> {
46745
+ return localVarFp.retryWorldlineReversal(retryWorldlineReversalDto, options).then((request) => request(axios, basePath));
46746
+ },
46505
46747
  /**
46506
46748
  * Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
46507
46749
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -46719,6 +46961,16 @@ export interface PaymentSessionApiInterface {
46719
46961
  */
46720
46962
  refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
46721
46963
 
46964
+ /**
46965
+ * Called by a Cloud Task (not the client). Re-checks a charge whose reversal the terminal refused: stops if the charge was resolved another way, stops if an earlier attempt completed at the gateway, otherwise asks once more. After twelve hours, or on a refusal that can never clear, the charge is written to the till for a waiter to refund.
46966
+ * @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
46967
+ * @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
46968
+ * @param {*} [options] Override http request option.
46969
+ * @throws {RequiredError}
46970
+ * @memberof PaymentSessionApiInterface
46971
+ */
46972
+ retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: AxiosRequestConfig): AxiosPromise<void>;
46973
+
46722
46974
  /**
46723
46975
  * Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
46724
46976
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -46968,6 +47220,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
46968
47220
  return PaymentSessionApiFp(this.configuration).refundWorldlineSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
46969
47221
  }
46970
47222
 
47223
+ /**
47224
+ * Called by a Cloud Task (not the client). Re-checks a charge whose reversal the terminal refused: stops if the charge was resolved another way, stops if an earlier attempt completed at the gateway, otherwise asks once more. After twelve hours, or on a refusal that can never clear, the charge is written to the till for a waiter to refund.
47225
+ * @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
47226
+ * @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
47227
+ * @param {*} [options] Override http request option.
47228
+ * @throws {RequiredError}
47229
+ * @memberof PaymentSessionApi
47230
+ */
47231
+ public retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: AxiosRequestConfig) {
47232
+ return PaymentSessionApiFp(this.configuration).retryWorldlineReversal(retryWorldlineReversalDto, options).then((request) => request(this.axios, this.basePath));
47233
+ }
47234
+
46971
47235
  /**
46972
47236
  * Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
46973
47237
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -54344,6 +54608,49 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
54344
54608
  options: localVarRequestOptions,
54345
54609
  };
54346
54610
  },
54611
+ /**
54612
+ * Runs the same dispatch the Ready button runs. Safe to deliver more than once: the order is re-read, already-ticketed lines are subtracted, and a dispatch already in flight for the order short-circuits.
54613
+ * @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
54614
+ * @param {string} xCloudtasksTaskretrycount
54615
+ * @param {ProcessDispatchTaskDto} processDispatchTaskDto
54616
+ * @param {*} [options] Override http request option.
54617
+ * @throws {RequiredError}
54618
+ */
54619
+ processDispatchTask: async (xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54620
+ // verify required parameter 'xCloudtasksTaskretrycount' is not null or undefined
54621
+ assertParamExists('processDispatchTask', 'xCloudtasksTaskretrycount', xCloudtasksTaskretrycount)
54622
+ // verify required parameter 'processDispatchTaskDto' is not null or undefined
54623
+ assertParamExists('processDispatchTask', 'processDispatchTaskDto', processDispatchTaskDto)
54624
+ const localVarPath = `/api/webhook/pos/order-dispatch/process`;
54625
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54626
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54627
+ let baseOptions;
54628
+ if (configuration) {
54629
+ baseOptions = configuration.baseOptions;
54630
+ }
54631
+
54632
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
54633
+ const localVarHeaderParameter = {} as any;
54634
+ const localVarQueryParameter = {} as any;
54635
+
54636
+ if (xCloudtasksTaskretrycount != null) {
54637
+ localVarHeaderParameter['x-cloudtasks-taskretrycount'] = String(xCloudtasksTaskretrycount);
54638
+ }
54639
+
54640
+
54641
+
54642
+ localVarHeaderParameter['Content-Type'] = 'application/json';
54643
+
54644
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
54645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54646
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54647
+ localVarRequestOptions.data = serializeDataIfNeeded(processDispatchTaskDto, localVarRequestOptions, configuration)
54648
+
54649
+ return {
54650
+ url: toPathString(localVarUrlObj),
54651
+ options: localVarRequestOptions,
54652
+ };
54653
+ },
54347
54654
  /**
54348
54655
  *
54349
54656
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -54643,6 +54950,18 @@ export const WebhookApiFp = function(configuration?: Configuration) {
54643
54950
  const localVarAxiosArgs = await localVarAxiosParamCreator.handleWorldlineSessionEvents(options);
54644
54951
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
54645
54952
  },
54953
+ /**
54954
+ * Runs the same dispatch the Ready button runs. Safe to deliver more than once: the order is re-read, already-ticketed lines are subtracted, and a dispatch already in flight for the order short-circuits.
54955
+ * @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
54956
+ * @param {string} xCloudtasksTaskretrycount
54957
+ * @param {ProcessDispatchTaskDto} processDispatchTaskDto
54958
+ * @param {*} [options] Override http request option.
54959
+ * @throws {RequiredError}
54960
+ */
54961
+ async processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
54962
+ const localVarAxiosArgs = await localVarAxiosParamCreator.processDispatchTask(xCloudtasksTaskretrycount, processDispatchTaskDto, options);
54963
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
54964
+ },
54646
54965
  /**
54647
54966
  *
54648
54967
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -54840,6 +55159,17 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
54840
55159
  handleWorldlineSessionEvents(options?: any): AxiosPromise<void> {
54841
55160
  return localVarFp.handleWorldlineSessionEvents(options).then((request) => request(axios, basePath));
54842
55161
  },
55162
+ /**
55163
+ * Runs the same dispatch the Ready button runs. Safe to deliver more than once: the order is re-read, already-ticketed lines are subtracted, and a dispatch already in flight for the order short-circuits.
55164
+ * @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
55165
+ * @param {string} xCloudtasksTaskretrycount
55166
+ * @param {ProcessDispatchTaskDto} processDispatchTaskDto
55167
+ * @param {*} [options] Override http request option.
55168
+ * @throws {RequiredError}
55169
+ */
55170
+ processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: any): AxiosPromise<void> {
55171
+ return localVarFp.processDispatchTask(xCloudtasksTaskretrycount, processDispatchTaskDto, options).then((request) => request(axios, basePath));
55172
+ },
54843
55173
  /**
54844
55174
  *
54845
55175
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -55032,6 +55362,17 @@ export interface WebhookApiInterface {
55032
55362
  */
55033
55363
  handleWorldlineSessionEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
55034
55364
 
55365
+ /**
55366
+ * Runs the same dispatch the Ready button runs. Safe to deliver more than once: the order is re-read, already-ticketed lines are subtracted, and a dispatch already in flight for the order short-circuits.
55367
+ * @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
55368
+ * @param {string} xCloudtasksTaskretrycount
55369
+ * @param {ProcessDispatchTaskDto} processDispatchTaskDto
55370
+ * @param {*} [options] Override http request option.
55371
+ * @throws {RequiredError}
55372
+ * @memberof WebhookApiInterface
55373
+ */
55374
+ processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: AxiosRequestConfig): AxiosPromise<void>;
55375
+
55035
55376
  /**
55036
55377
  *
55037
55378
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -55258,6 +55599,19 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
55258
55599
  return WebhookApiFp(this.configuration).handleWorldlineSessionEvents(options).then((request) => request(this.axios, this.basePath));
55259
55600
  }
55260
55601
 
55602
+ /**
55603
+ * Runs the same dispatch the Ready button runs. Safe to deliver more than once: the order is re-read, already-ticketed lines are subtracted, and a dispatch already in flight for the order short-circuits.
55604
+ * @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
55605
+ * @param {string} xCloudtasksTaskretrycount
55606
+ * @param {ProcessDispatchTaskDto} processDispatchTaskDto
55607
+ * @param {*} [options] Override http request option.
55608
+ * @throws {RequiredError}
55609
+ * @memberof WebhookApi
55610
+ */
55611
+ public processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: AxiosRequestConfig) {
55612
+ return WebhookApiFp(this.configuration).processDispatchTask(xCloudtasksTaskretrycount, processDispatchTaskDto, options).then((request) => request(this.axios, this.basePath));
55613
+ }
55614
+
55261
55615
  /**
55262
55616
  *
55263
55617
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munchi_oy/core",
3
- "version": "1.9.117",
3
+ "version": "1.9.118",
4
4
  "description": "Munchi Core SDK - Core utilities and types",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
2
  // Run 'pnpm version:sync' to update this file.
3
- export const VERSION = "1.9.117";
3
+ export const VERSION = "1.9.118";