@munchi_oy/core 1.9.116 → 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,12 +3599,24 @@ 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}
3605
3611
  * @memberof CreateManualSessionDto
3606
3612
  */
3607
3613
  'businessId': number;
3614
+ /**
3615
+ * 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.
3616
+ * @type {string}
3617
+ * @memberof CreateManualSessionDto
3618
+ */
3619
+ 'settlesSessionId'?: string;
3608
3620
  /**
3609
3621
  * The POS order ID this payment session is for.
3610
3622
  * @type {string}
@@ -3662,6 +3674,33 @@ export interface CreateManualSessionDto {
3662
3674
  }
3663
3675
 
3664
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
+
3665
3704
  /**
3666
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.
3667
3706
  * @export
@@ -4826,6 +4865,21 @@ export interface DeliveryDtoLocation {
4826
4865
  */
4827
4866
  'coordinates': LocationDtoCoordinates | null;
4828
4867
  }
4868
+ /**
4869
+ *
4870
+ * @export
4871
+ * @enum {string}
4872
+ */
4873
+
4874
+ export const DeliveryIntentStatus = {
4875
+ Pending: 'pending',
4876
+ Dispatched: 'dispatched',
4877
+ Failed: 'failed'
4878
+ } as const;
4879
+
4880
+ export type DeliveryIntentStatus = typeof DeliveryIntentStatus[keyof typeof DeliveryIntentStatus];
4881
+
4882
+
4829
4883
  /**
4830
4884
  *
4831
4885
  * @export
@@ -13562,6 +13616,21 @@ export interface PayTerminalSessionTokenResponseDto {
13562
13616
  */
13563
13617
  'terminalName'?: string | null;
13564
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
+
13565
13634
  /**
13566
13635
  *
13567
13636
  * @export
@@ -13617,6 +13686,33 @@ export interface PaymentDetailsDto {
13617
13686
  */
13618
13687
  'difference': number;
13619
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
+
13620
13716
  /**
13621
13717
  *
13622
13718
  * @export
@@ -13664,7 +13760,8 @@ export interface PaymentErrorDto {
13664
13760
 
13665
13761
  export const PaymentEventType = {
13666
13762
  StatusChanged: 'payment:status-changed',
13667
- RefundStatusChanged: 'payment:refund-status-changed'
13763
+ RefundStatusChanged: 'payment:refund-status-changed',
13764
+ Outcome: 'payment:outcome'
13668
13765
  } as const;
13669
13766
 
13670
13767
  export type PaymentEventType = typeof PaymentEventType[keyof typeof PaymentEventType];
@@ -14577,6 +14674,21 @@ export interface PaymentMethodsResponseDto {
14577
14674
  }
14578
14675
 
14579
14676
 
14677
+ /**
14678
+ *
14679
+ * @export
14680
+ * @enum {string}
14681
+ */
14682
+
14683
+ export const PaymentOutcomeStatus = {
14684
+ Uncertain: 'Uncertain',
14685
+ Success: 'Success',
14686
+ Failed: 'Failed'
14687
+ } as const;
14688
+
14689
+ export type PaymentOutcomeStatus = typeof PaymentOutcomeStatus[keyof typeof PaymentOutcomeStatus];
14690
+
14691
+
14580
14692
  /**
14581
14693
  *
14582
14694
  * @export
@@ -15168,6 +15280,12 @@ export interface PaymentStatusDtoTransaction {
15168
15280
  * @memberof PaymentStatusDtoTransaction
15169
15281
  */
15170
15282
  'type': PaymentMethod;
15283
+ /**
15284
+ *
15285
+ * @type {PaymentOutcomeStatus}
15286
+ * @memberof PaymentStatusDtoTransaction
15287
+ */
15288
+ 'paymentOutcomeStatus'?: PaymentOutcomeStatus;
15171
15289
  /**
15172
15290
  * Amount paid in cents
15173
15291
  * @type {number}
@@ -15222,6 +15340,18 @@ export interface PaymentStatusDtoTransaction {
15222
15340
  * @memberof PaymentStatusDtoTransaction
15223
15341
  */
15224
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;
15225
15355
  /**
15226
15356
  * Indicates whether this transaction was processed as a pre-authorization.
15227
15357
  * @type {string}
@@ -18384,6 +18514,25 @@ export const PrinterTypeEnum = {
18384
18514
  export type PrinterTypeEnum = typeof PrinterTypeEnum[keyof typeof PrinterTypeEnum];
18385
18515
 
18386
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
+ }
18387
18536
  /**
18388
18537
  *
18389
18538
  * @export
@@ -21039,6 +21188,19 @@ export const ScopeEnum = {
21039
21188
 
21040
21189
  export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
21041
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
+ }
21042
21204
  /**
21043
21205
  *
21044
21206
  * @export
@@ -23182,6 +23344,12 @@ export interface TransactionDto {
23182
23344
  * @memberof TransactionDto
23183
23345
  */
23184
23346
  'type': PaymentMethod;
23347
+ /**
23348
+ *
23349
+ * @type {PaymentOutcomeStatus}
23350
+ * @memberof TransactionDto
23351
+ */
23352
+ 'paymentOutcomeStatus'?: PaymentOutcomeStatus;
23185
23353
  /**
23186
23354
  * Amount paid in cents
23187
23355
  * @type {number}
@@ -23236,6 +23404,18 @@ export interface TransactionDto {
23236
23404
  * @memberof TransactionDto
23237
23405
  */
23238
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;
23239
23419
  /**
23240
23420
  * Indicates whether this transaction was processed as a pre-authorization.
23241
23421
  * @type {string}
@@ -23251,6 +23431,33 @@ export interface TransactionDto {
23251
23431
  }
23252
23432
 
23253
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
+
23254
23461
  /**
23255
23462
  * Details about the cart, optional
23256
23463
  * @export
@@ -23306,6 +23513,33 @@ export interface TransactionDtoCardDetail {
23306
23513
  */
23307
23514
  'issuer': string | null;
23308
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
+
23309
23543
  /**
23310
23544
  * Fees for this payment
23311
23545
  * @export
@@ -24928,6 +25162,39 @@ export interface UpdateChannelInventoryDto {
24928
25162
  */
24929
25163
  'channels': Array<ChannelInventoryUpdateDto>;
24930
25164
  }
25165
+ /**
25166
+ *
25167
+ * @export
25168
+ * @interface UpdateDeliveryIntentDto
25169
+ */
25170
+ export interface UpdateDeliveryIntentDto {
25171
+ /**
25172
+ *
25173
+ * @type {DeliveryIntentStatus}
25174
+ * @memberof UpdateDeliveryIntentDto
25175
+ */
25176
+ 'status': DeliveryIntentStatus;
25177
+ /**
25178
+ *
25179
+ * @type {string}
25180
+ * @memberof UpdateDeliveryIntentDto
25181
+ */
25182
+ 'providerDeliveryId'?: string;
25183
+ /**
25184
+ *
25185
+ * @type {string}
25186
+ * @memberof UpdateDeliveryIntentDto
25187
+ */
25188
+ 'trackingUrl'?: string;
25189
+ /**
25190
+ *
25191
+ * @type {string}
25192
+ * @memberof UpdateDeliveryIntentDto
25193
+ */
25194
+ 'failureReason'?: string;
25195
+ }
25196
+
25197
+
24931
25198
  /**
24932
25199
  *
24933
25200
  * @export
@@ -28005,10 +28272,10 @@ export interface WalletItemDto {
28005
28272
  'id': number;
28006
28273
  /**
28007
28274
  *
28008
- * @type {string}
28275
+ * @type {WalletItemStatus}
28009
28276
  * @memberof WalletItemDto
28010
28277
  */
28011
- 'status': StatusEnum;
28278
+ 'status': WalletItemStatus;
28012
28279
  /**
28013
28280
  *
28014
28281
  * @type {object}
@@ -28023,12 +28290,20 @@ export interface WalletItemDto {
28023
28290
  'catalog': WalletCatalogDto;
28024
28291
  }
28025
28292
 
28026
- export const StatusEnum = {
28293
+
28294
+ /**
28295
+ *
28296
+ * @export
28297
+ * @enum {string}
28298
+ */
28299
+
28300
+ export const WalletItemStatus = {
28027
28301
  Claimed: 'Claimed',
28028
28302
  Redeemed: 'Redeemed'
28029
28303
  } as const;
28030
28304
 
28031
- export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum];
28305
+ export type WalletItemStatus = typeof WalletItemStatus[keyof typeof WalletItemStatus];
28306
+
28032
28307
 
28033
28308
  /**
28034
28309
  *
@@ -34209,6 +34484,216 @@ export class CoursesApi extends BaseAPI implements CoursesApiInterface {
34209
34484
  }
34210
34485
 
34211
34486
 
34487
+ /**
34488
+ * DeliveryIntentApi - axios parameter creator
34489
+ * @export
34490
+ */
34491
+ export const DeliveryIntentApiAxiosParamCreator = function (configuration?: Configuration) {
34492
+ return {
34493
+ /**
34494
+ * Internal service-to-service call, requires the `x-internal-token` header.
34495
+ * @summary Fetch a delivery intent for courier execution
34496
+ * @param {string} intentId
34497
+ * @param {*} [options] Override http request option.
34498
+ * @throws {RequiredError}
34499
+ */
34500
+ findIntent: async (intentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34501
+ // verify required parameter 'intentId' is not null or undefined
34502
+ assertParamExists('findIntent', 'intentId', intentId)
34503
+ const localVarPath = `/api/webhook/delivery-intent/{intentId}`
34504
+ .replace(`{${"intentId"}}`, encodeURIComponent(String(intentId)));
34505
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34506
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34507
+ let baseOptions;
34508
+ if (configuration) {
34509
+ baseOptions = configuration.baseOptions;
34510
+ }
34511
+
34512
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34513
+ const localVarHeaderParameter = {} as any;
34514
+ const localVarQueryParameter = {} as any;
34515
+
34516
+
34517
+
34518
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34519
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34520
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34521
+
34522
+ return {
34523
+ url: toPathString(localVarUrlObj),
34524
+ options: localVarRequestOptions,
34525
+ };
34526
+ },
34527
+ /**
34528
+ * Internal service-to-service call, requires the `x-internal-token` header.
34529
+ * @summary Report the courier execution outcome of a delivery intent
34530
+ * @param {string} intentId
34531
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34532
+ * @param {*} [options] Override http request option.
34533
+ * @throws {RequiredError}
34534
+ */
34535
+ updateIntent: async (intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34536
+ // verify required parameter 'intentId' is not null or undefined
34537
+ assertParamExists('updateIntent', 'intentId', intentId)
34538
+ // verify required parameter 'updateDeliveryIntentDto' is not null or undefined
34539
+ assertParamExists('updateIntent', 'updateDeliveryIntentDto', updateDeliveryIntentDto)
34540
+ const localVarPath = `/api/webhook/delivery-intent/{intentId}`
34541
+ .replace(`{${"intentId"}}`, encodeURIComponent(String(intentId)));
34542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34543
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34544
+ let baseOptions;
34545
+ if (configuration) {
34546
+ baseOptions = configuration.baseOptions;
34547
+ }
34548
+
34549
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
34550
+ const localVarHeaderParameter = {} as any;
34551
+ const localVarQueryParameter = {} as any;
34552
+
34553
+
34554
+
34555
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34556
+
34557
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34559
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34560
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDeliveryIntentDto, localVarRequestOptions, configuration)
34561
+
34562
+ return {
34563
+ url: toPathString(localVarUrlObj),
34564
+ options: localVarRequestOptions,
34565
+ };
34566
+ },
34567
+ }
34568
+ };
34569
+
34570
+ /**
34571
+ * DeliveryIntentApi - functional programming interface
34572
+ * @export
34573
+ */
34574
+ export const DeliveryIntentApiFp = function(configuration?: Configuration) {
34575
+ const localVarAxiosParamCreator = DeliveryIntentApiAxiosParamCreator(configuration)
34576
+ return {
34577
+ /**
34578
+ * Internal service-to-service call, requires the `x-internal-token` header.
34579
+ * @summary Fetch a delivery intent for courier execution
34580
+ * @param {string} intentId
34581
+ * @param {*} [options] Override http request option.
34582
+ * @throws {RequiredError}
34583
+ */
34584
+ async findIntent(intentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findIntent(intentId, options);
34586
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34587
+ },
34588
+ /**
34589
+ * Internal service-to-service call, requires the `x-internal-token` header.
34590
+ * @summary Report the courier execution outcome of a delivery intent
34591
+ * @param {string} intentId
34592
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34593
+ * @param {*} [options] Override http request option.
34594
+ * @throws {RequiredError}
34595
+ */
34596
+ async updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateIntent(intentId, updateDeliveryIntentDto, options);
34598
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34599
+ },
34600
+ }
34601
+ };
34602
+
34603
+ /**
34604
+ * DeliveryIntentApi - factory interface
34605
+ * @export
34606
+ */
34607
+ export const DeliveryIntentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34608
+ const localVarFp = DeliveryIntentApiFp(configuration)
34609
+ return {
34610
+ /**
34611
+ * Internal service-to-service call, requires the `x-internal-token` header.
34612
+ * @summary Fetch a delivery intent for courier execution
34613
+ * @param {string} intentId
34614
+ * @param {*} [options] Override http request option.
34615
+ * @throws {RequiredError}
34616
+ */
34617
+ findIntent(intentId: string, options?: any): AxiosPromise<void> {
34618
+ return localVarFp.findIntent(intentId, options).then((request) => request(axios, basePath));
34619
+ },
34620
+ /**
34621
+ * Internal service-to-service call, requires the `x-internal-token` header.
34622
+ * @summary Report the courier execution outcome of a delivery intent
34623
+ * @param {string} intentId
34624
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34625
+ * @param {*} [options] Override http request option.
34626
+ * @throws {RequiredError}
34627
+ */
34628
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: any): AxiosPromise<void> {
34629
+ return localVarFp.updateIntent(intentId, updateDeliveryIntentDto, options).then((request) => request(axios, basePath));
34630
+ },
34631
+ };
34632
+ };
34633
+
34634
+ /**
34635
+ * DeliveryIntentApi - interface
34636
+ * @export
34637
+ * @interface DeliveryIntentApi
34638
+ */
34639
+ export interface DeliveryIntentApiInterface {
34640
+ /**
34641
+ * Internal service-to-service call, requires the `x-internal-token` header.
34642
+ * @summary Fetch a delivery intent for courier execution
34643
+ * @param {string} intentId
34644
+ * @param {*} [options] Override http request option.
34645
+ * @throws {RequiredError}
34646
+ * @memberof DeliveryIntentApiInterface
34647
+ */
34648
+ findIntent(intentId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
34649
+
34650
+ /**
34651
+ * Internal service-to-service call, requires the `x-internal-token` header.
34652
+ * @summary Report the courier execution outcome of a delivery intent
34653
+ * @param {string} intentId
34654
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34655
+ * @param {*} [options] Override http request option.
34656
+ * @throws {RequiredError}
34657
+ * @memberof DeliveryIntentApiInterface
34658
+ */
34659
+ updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): AxiosPromise<void>;
34660
+
34661
+ }
34662
+
34663
+ /**
34664
+ * DeliveryIntentApi - object-oriented interface
34665
+ * @export
34666
+ * @class DeliveryIntentApi
34667
+ * @extends {BaseAPI}
34668
+ */
34669
+ export class DeliveryIntentApi extends BaseAPI implements DeliveryIntentApiInterface {
34670
+ /**
34671
+ * Internal service-to-service call, requires the `x-internal-token` header.
34672
+ * @summary Fetch a delivery intent for courier execution
34673
+ * @param {string} intentId
34674
+ * @param {*} [options] Override http request option.
34675
+ * @throws {RequiredError}
34676
+ * @memberof DeliveryIntentApi
34677
+ */
34678
+ public findIntent(intentId: string, options?: AxiosRequestConfig) {
34679
+ return DeliveryIntentApiFp(this.configuration).findIntent(intentId, options).then((request) => request(this.axios, this.basePath));
34680
+ }
34681
+
34682
+ /**
34683
+ * Internal service-to-service call, requires the `x-internal-token` header.
34684
+ * @summary Report the courier execution outcome of a delivery intent
34685
+ * @param {string} intentId
34686
+ * @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
34687
+ * @param {*} [options] Override http request option.
34688
+ * @throws {RequiredError}
34689
+ * @memberof DeliveryIntentApi
34690
+ */
34691
+ public updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig) {
34692
+ return DeliveryIntentApiFp(this.configuration).updateIntent(intentId, updateDeliveryIntentDto, options).then((request) => request(this.axios, this.basePath));
34693
+ }
34694
+ }
34695
+
34696
+
34212
34697
  /**
34213
34698
  * DisplayApi - axios parameter creator
34214
34699
  * @export
@@ -41376,7 +41861,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
41376
41861
  };
41377
41862
  },
41378
41863
  /**
41379
- * 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.
41380
41865
  * @summary Ready & Send a POS order to the kitchen
41381
41866
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
41382
41867
  * @param {*} [options] Override http request option.
@@ -41930,7 +42415,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
41930
42415
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41931
42416
  },
41932
42417
  /**
41933
- * 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.
41934
42419
  * @summary Ready & Send a POS order to the kitchen
41935
42420
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
41936
42421
  * @param {*} [options] Override http request option.
@@ -42129,7 +42614,7 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
42129
42614
  return localVarFp.deliverOrder(deliveredOrderDto, options).then((request) => request(axios, basePath));
42130
42615
  },
42131
42616
  /**
42132
- * 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.
42133
42618
  * @summary Ready & Send a POS order to the kitchen
42134
42619
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
42135
42620
  * @param {*} [options] Override http request option.
@@ -42314,7 +42799,7 @@ export interface OrdersApiInterface {
42314
42799
  deliverOrder(deliveredOrderDto: DeliveredOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
42315
42800
 
42316
42801
  /**
42317
- * 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.
42318
42803
  * @summary Ready & Send a POS order to the kitchen
42319
42804
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
42320
42805
  * @param {*} [options] Override http request option.
@@ -42507,7 +42992,7 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
42507
42992
  }
42508
42993
 
42509
42994
  /**
42510
- * 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.
42511
42996
  * @summary Ready & Send a POS order to the kitchen
42512
42997
  * @param {DispatchPosOrderDto} dispatchPosOrderDto
42513
42998
  * @param {*} [options] Override http request option.
@@ -45642,6 +46127,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
45642
46127
  options: localVarRequestOptions,
45643
46128
  };
45644
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
+ },
45645
46166
  /**
45646
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.
45647
46168
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -45980,6 +46501,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
45980
46501
  const localVarAxiosArgs = await localVarAxiosParamCreator.refundWorldlineSession(reverseSessionDto, options);
45981
46502
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
45982
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
+ },
45983
46515
  /**
45984
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.
45985
46517
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -46202,6 +46734,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
46202
46734
  refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
46203
46735
  return localVarFp.refundWorldlineSession(reverseSessionDto, options).then((request) => request(axios, basePath));
46204
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
+ },
46205
46747
  /**
46206
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.
46207
46749
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -46419,6 +46961,16 @@ export interface PaymentSessionApiInterface {
46419
46961
  */
46420
46962
  refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
46421
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
+
46422
46974
  /**
46423
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.
46424
46976
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -46668,6 +47220,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
46668
47220
  return PaymentSessionApiFp(this.configuration).refundWorldlineSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
46669
47221
  }
46670
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
+
46671
47235
  /**
46672
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.
46673
47237
  * @summary Revert (fully reverse) a settled Nets payment session (async)
@@ -53894,7 +54458,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
53894
54458
  };
53895
54459
  },
53896
54460
  /**
53897
- *
54461
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
54462
+ * @summary Handle Shipday delivery webhook events
53898
54463
  * @param {*} [options] Override http request option.
53899
54464
  * @throws {RequiredError}
53900
54465
  */
@@ -54043,6 +54608,49 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
54043
54608
  options: localVarRequestOptions,
54044
54609
  };
54045
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
+ },
54046
54654
  /**
54047
54655
  *
54048
54656
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -54295,7 +54903,8 @@ export const WebhookApiFp = function(configuration?: Configuration) {
54295
54903
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
54296
54904
  },
54297
54905
  /**
54298
- *
54906
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
54907
+ * @summary Handle Shipday delivery webhook events
54299
54908
  * @param {*} [options] Override http request option.
54300
54909
  * @throws {RequiredError}
54301
54910
  */
@@ -54341,6 +54950,18 @@ export const WebhookApiFp = function(configuration?: Configuration) {
54341
54950
  const localVarAxiosArgs = await localVarAxiosParamCreator.handleWorldlineSessionEvents(options);
54342
54951
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
54343
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
+ },
54344
54965
  /**
54345
54966
  *
54346
54967
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -54496,7 +55117,8 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
54496
55117
  return localVarFp.handleVivaSessionEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
54497
55118
  },
54498
55119
  /**
54499
- *
55120
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
55121
+ * @summary Handle Shipday delivery webhook events
54500
55122
  * @param {*} [options] Override http request option.
54501
55123
  * @throws {RequiredError}
54502
55124
  */
@@ -54537,6 +55159,17 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
54537
55159
  handleWorldlineSessionEvents(options?: any): AxiosPromise<void> {
54538
55160
  return localVarFp.handleWorldlineSessionEvents(options).then((request) => request(axios, basePath));
54539
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
+ },
54540
55173
  /**
54541
55174
  *
54542
55175
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -54687,7 +55320,8 @@ export interface WebhookApiInterface {
54687
55320
  handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
54688
55321
 
54689
55322
  /**
54690
- *
55323
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
55324
+ * @summary Handle Shipday delivery webhook events
54691
55325
  * @param {*} [options] Override http request option.
54692
55326
  * @throws {RequiredError}
54693
55327
  * @memberof WebhookApiInterface
@@ -54728,6 +55362,17 @@ export interface WebhookApiInterface {
54728
55362
  */
54729
55363
  handleWorldlineSessionEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
54730
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
+
54731
55376
  /**
54732
55377
  *
54733
55378
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
@@ -54902,7 +55547,8 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
54902
55547
  }
54903
55548
 
54904
55549
  /**
54905
- *
55550
+ * Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
55551
+ * @summary Handle Shipday delivery webhook events
54906
55552
  * @param {*} [options] Override http request option.
54907
55553
  * @throws {RequiredError}
54908
55554
  * @memberof WebhookApi
@@ -54953,6 +55599,19 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
54953
55599
  return WebhookApiFp(this.configuration).handleWorldlineSessionEvents(options).then((request) => request(this.axios, this.basePath));
54954
55600
  }
54955
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
+
54956
55615
  /**
54957
55616
  *
54958
55617
  * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)