@munchi_oy/core 1.9.117 → 1.9.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +292 -5
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +385 -6
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -31,7 +31,8 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
|
|
31
31
|
|
|
32
32
|
export const ABLYEVENT = {
|
|
33
33
|
Sync: 'sync',
|
|
34
|
-
KdsItemStatusSync: 'kds_item_status_sync'
|
|
34
|
+
KdsItemStatusSync: 'kds_item_status_sync',
|
|
35
|
+
PosOrderCompleted: 'pos.order.completed'
|
|
35
36
|
} as const;
|
|
36
37
|
|
|
37
38
|
export type ABLYEVENT = typeof ABLYEVENT[keyof typeof ABLYEVENT];
|
|
@@ -3599,6 +3600,12 @@ export interface CreateLoyaltyProgramUserResponseDto {
|
|
|
3599
3600
|
* @interface CreateManualSessionDto
|
|
3600
3601
|
*/
|
|
3601
3602
|
export interface CreateManualSessionDto {
|
|
3603
|
+
/**
|
|
3604
|
+
*
|
|
3605
|
+
* @type {CreateManualSessionDtoDevice}
|
|
3606
|
+
* @memberof CreateManualSessionDto
|
|
3607
|
+
*/
|
|
3608
|
+
'device'?: CreateManualSessionDtoDevice | null;
|
|
3602
3609
|
/**
|
|
3603
3610
|
* The internal business ID.
|
|
3604
3611
|
* @type {number}
|
|
@@ -3668,6 +3675,33 @@ export interface CreateManualSessionDto {
|
|
|
3668
3675
|
}
|
|
3669
3676
|
|
|
3670
3677
|
|
|
3678
|
+
/**
|
|
3679
|
+
* The device taking this payment. Optional, so an app build that predates the field still pays.
|
|
3680
|
+
* @export
|
|
3681
|
+
* @interface CreateManualSessionDtoDevice
|
|
3682
|
+
*/
|
|
3683
|
+
export interface CreateManualSessionDtoDevice {
|
|
3684
|
+
/**
|
|
3685
|
+
* Station hardware id of the device.
|
|
3686
|
+
* @type {string}
|
|
3687
|
+
* @memberof CreateManualSessionDtoDevice
|
|
3688
|
+
*/
|
|
3689
|
+
'id': string;
|
|
3690
|
+
/**
|
|
3691
|
+
* The device\'s name at the time of payment. Empty when the venue never set one.
|
|
3692
|
+
* @type {string}
|
|
3693
|
+
* @memberof CreateManualSessionDtoDevice
|
|
3694
|
+
*/
|
|
3695
|
+
'name'?: string | null;
|
|
3696
|
+
/**
|
|
3697
|
+
*
|
|
3698
|
+
* @type {PaymentApp}
|
|
3699
|
+
* @memberof CreateManualSessionDtoDevice
|
|
3700
|
+
*/
|
|
3701
|
+
'app': PaymentApp;
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
|
|
3671
3705
|
/**
|
|
3672
3706
|
* 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
3707
|
* @export
|
|
@@ -6954,6 +6988,12 @@ export interface InboundReservationWebhookDto {
|
|
|
6954
6988
|
* @interface InitiateNetsSessionDto
|
|
6955
6989
|
*/
|
|
6956
6990
|
export interface InitiateNetsSessionDto {
|
|
6991
|
+
/**
|
|
6992
|
+
*
|
|
6993
|
+
* @type {CreateManualSessionDtoDevice}
|
|
6994
|
+
* @memberof InitiateNetsSessionDto
|
|
6995
|
+
*/
|
|
6996
|
+
'device'?: CreateManualSessionDtoDevice | null;
|
|
6957
6997
|
/**
|
|
6958
6998
|
* The internal business ID.
|
|
6959
6999
|
* @type {number}
|
|
@@ -7065,6 +7105,12 @@ export interface InitiateVivaA2aSessionDto {
|
|
|
7065
7105
|
* @memberof InitiateVivaA2aSessionDto
|
|
7066
7106
|
*/
|
|
7067
7107
|
'showTransactionResult'?: boolean;
|
|
7108
|
+
/**
|
|
7109
|
+
*
|
|
7110
|
+
* @type {CreateManualSessionDtoDevice}
|
|
7111
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
7112
|
+
*/
|
|
7113
|
+
'device'?: CreateManualSessionDtoDevice | null;
|
|
7068
7114
|
/**
|
|
7069
7115
|
*
|
|
7070
7116
|
* @type {CreateManualSessionDtoSplitContext}
|
|
@@ -7191,6 +7237,12 @@ export interface InitiateVivaA2aSessionResponseDto {
|
|
|
7191
7237
|
* @interface InitiateVivaSessionDto
|
|
7192
7238
|
*/
|
|
7193
7239
|
export interface InitiateVivaSessionDto {
|
|
7240
|
+
/**
|
|
7241
|
+
*
|
|
7242
|
+
* @type {CreateManualSessionDtoDevice}
|
|
7243
|
+
* @memberof InitiateVivaSessionDto
|
|
7244
|
+
*/
|
|
7245
|
+
'device'?: CreateManualSessionDtoDevice | null;
|
|
7194
7246
|
/**
|
|
7195
7247
|
* The internal business ID.
|
|
7196
7248
|
* @type {number}
|
|
@@ -7334,6 +7386,12 @@ export interface InitiateVivaSessionResponseDtoVivaIntent {
|
|
|
7334
7386
|
* @interface InitiateWorldlineSessionDto
|
|
7335
7387
|
*/
|
|
7336
7388
|
export interface InitiateWorldlineSessionDto {
|
|
7389
|
+
/**
|
|
7390
|
+
*
|
|
7391
|
+
* @type {CreateManualSessionDtoDevice}
|
|
7392
|
+
* @memberof InitiateWorldlineSessionDto
|
|
7393
|
+
*/
|
|
7394
|
+
'device'?: CreateManualSessionDtoDevice | null;
|
|
7337
7395
|
/**
|
|
7338
7396
|
* The internal business ID.
|
|
7339
7397
|
* @type {number}
|
|
@@ -13583,6 +13641,21 @@ export interface PayTerminalSessionTokenResponseDto {
|
|
|
13583
13641
|
*/
|
|
13584
13642
|
'terminalName'?: string | null;
|
|
13585
13643
|
}
|
|
13644
|
+
/**
|
|
13645
|
+
*
|
|
13646
|
+
* @export
|
|
13647
|
+
* @enum {string}
|
|
13648
|
+
*/
|
|
13649
|
+
|
|
13650
|
+
export const PaymentApp = {
|
|
13651
|
+
Pos: 'munchi_pos',
|
|
13652
|
+
Handheld: 'munchi_handheld',
|
|
13653
|
+
Pay: 'munchi_pay'
|
|
13654
|
+
} as const;
|
|
13655
|
+
|
|
13656
|
+
export type PaymentApp = typeof PaymentApp[keyof typeof PaymentApp];
|
|
13657
|
+
|
|
13658
|
+
|
|
13586
13659
|
/**
|
|
13587
13660
|
*
|
|
13588
13661
|
* @export
|
|
@@ -13638,6 +13711,33 @@ export interface PaymentDetailsDto {
|
|
|
13638
13711
|
*/
|
|
13639
13712
|
'difference': number;
|
|
13640
13713
|
}
|
|
13714
|
+
/**
|
|
13715
|
+
*
|
|
13716
|
+
* @export
|
|
13717
|
+
* @interface PaymentDeviceDto
|
|
13718
|
+
*/
|
|
13719
|
+
export interface PaymentDeviceDto {
|
|
13720
|
+
/**
|
|
13721
|
+
* Station hardware id of the device.
|
|
13722
|
+
* @type {string}
|
|
13723
|
+
* @memberof PaymentDeviceDto
|
|
13724
|
+
*/
|
|
13725
|
+
'id': string;
|
|
13726
|
+
/**
|
|
13727
|
+
* The device\'s name at the time of payment. Empty when the venue never set one.
|
|
13728
|
+
* @type {string}
|
|
13729
|
+
* @memberof PaymentDeviceDto
|
|
13730
|
+
*/
|
|
13731
|
+
'name'?: string | null;
|
|
13732
|
+
/**
|
|
13733
|
+
*
|
|
13734
|
+
* @type {PaymentApp}
|
|
13735
|
+
* @memberof PaymentDeviceDto
|
|
13736
|
+
*/
|
|
13737
|
+
'app': PaymentApp;
|
|
13738
|
+
}
|
|
13739
|
+
|
|
13740
|
+
|
|
13641
13741
|
/**
|
|
13642
13742
|
*
|
|
13643
13743
|
* @export
|
|
@@ -15265,6 +15365,18 @@ export interface PaymentStatusDtoTransaction {
|
|
|
15265
15365
|
* @memberof PaymentStatusDtoTransaction
|
|
15266
15366
|
*/
|
|
15267
15367
|
'itemAllocations'?: Array<TransactionItemAllocationDto> | null;
|
|
15368
|
+
/**
|
|
15369
|
+
*
|
|
15370
|
+
* @type {TransactionDtoDevice}
|
|
15371
|
+
* @memberof PaymentStatusDtoTransaction
|
|
15372
|
+
*/
|
|
15373
|
+
'device'?: TransactionDtoDevice | null;
|
|
15374
|
+
/**
|
|
15375
|
+
*
|
|
15376
|
+
* @type {TransactionDtoCapturedBy}
|
|
15377
|
+
* @memberof PaymentStatusDtoTransaction
|
|
15378
|
+
*/
|
|
15379
|
+
'capturedBy'?: TransactionDtoCapturedBy | null;
|
|
15268
15380
|
/**
|
|
15269
15381
|
* Indicates whether this transaction was processed as a pre-authorization.
|
|
15270
15382
|
* @type {string}
|
|
@@ -18427,6 +18539,25 @@ export const PrinterTypeEnum = {
|
|
|
18427
18539
|
export type PrinterTypeEnum = typeof PrinterTypeEnum[keyof typeof PrinterTypeEnum];
|
|
18428
18540
|
|
|
18429
18541
|
|
|
18542
|
+
/**
|
|
18543
|
+
*
|
|
18544
|
+
* @export
|
|
18545
|
+
* @interface ProcessDispatchTaskDto
|
|
18546
|
+
*/
|
|
18547
|
+
export interface ProcessDispatchTaskDto {
|
|
18548
|
+
/**
|
|
18549
|
+
* Business the order belongs to.
|
|
18550
|
+
* @type {number}
|
|
18551
|
+
* @memberof ProcessDispatchTaskDto
|
|
18552
|
+
*/
|
|
18553
|
+
'businessId': number;
|
|
18554
|
+
/**
|
|
18555
|
+
* Order to dispatch. Everything else is re-read from the order.
|
|
18556
|
+
* @type {string}
|
|
18557
|
+
* @memberof ProcessDispatchTaskDto
|
|
18558
|
+
*/
|
|
18559
|
+
'orderId': string;
|
|
18560
|
+
}
|
|
18430
18561
|
/**
|
|
18431
18562
|
*
|
|
18432
18563
|
* @export
|
|
@@ -21082,6 +21213,19 @@ export const ScopeEnum = {
|
|
|
21082
21213
|
|
|
21083
21214
|
export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
|
|
21084
21215
|
|
|
21216
|
+
/**
|
|
21217
|
+
*
|
|
21218
|
+
* @export
|
|
21219
|
+
* @interface RetryWorldlineReversalDto
|
|
21220
|
+
*/
|
|
21221
|
+
export interface RetryWorldlineReversalDto {
|
|
21222
|
+
/**
|
|
21223
|
+
* Session id of the SALE whose reversal was refused and is being asked for again.
|
|
21224
|
+
* @type {string}
|
|
21225
|
+
* @memberof RetryWorldlineReversalDto
|
|
21226
|
+
*/
|
|
21227
|
+
'parentSessionId': string;
|
|
21228
|
+
}
|
|
21085
21229
|
/**
|
|
21086
21230
|
*
|
|
21087
21231
|
* @export
|
|
@@ -23285,6 +23429,18 @@ export interface TransactionDto {
|
|
|
23285
23429
|
* @memberof TransactionDto
|
|
23286
23430
|
*/
|
|
23287
23431
|
'itemAllocations'?: Array<TransactionItemAllocationDto> | null;
|
|
23432
|
+
/**
|
|
23433
|
+
*
|
|
23434
|
+
* @type {TransactionDtoDevice}
|
|
23435
|
+
* @memberof TransactionDto
|
|
23436
|
+
*/
|
|
23437
|
+
'device'?: TransactionDtoDevice | null;
|
|
23438
|
+
/**
|
|
23439
|
+
*
|
|
23440
|
+
* @type {TransactionDtoCapturedBy}
|
|
23441
|
+
* @memberof TransactionDto
|
|
23442
|
+
*/
|
|
23443
|
+
'capturedBy'?: TransactionDtoCapturedBy | null;
|
|
23288
23444
|
/**
|
|
23289
23445
|
* Indicates whether this transaction was processed as a pre-authorization.
|
|
23290
23446
|
* @type {string}
|
|
@@ -23300,6 +23456,33 @@ export interface TransactionDto {
|
|
|
23300
23456
|
}
|
|
23301
23457
|
|
|
23302
23458
|
|
|
23459
|
+
/**
|
|
23460
|
+
* 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.
|
|
23461
|
+
* @export
|
|
23462
|
+
* @interface TransactionDtoCapturedBy
|
|
23463
|
+
*/
|
|
23464
|
+
export interface TransactionDtoCapturedBy {
|
|
23465
|
+
/**
|
|
23466
|
+
* Station hardware id of the device.
|
|
23467
|
+
* @type {string}
|
|
23468
|
+
* @memberof TransactionDtoCapturedBy
|
|
23469
|
+
*/
|
|
23470
|
+
'id': string;
|
|
23471
|
+
/**
|
|
23472
|
+
* The device\'s name at the time of payment. Empty when the venue never set one.
|
|
23473
|
+
* @type {string}
|
|
23474
|
+
* @memberof TransactionDtoCapturedBy
|
|
23475
|
+
*/
|
|
23476
|
+
'name'?: string | null;
|
|
23477
|
+
/**
|
|
23478
|
+
*
|
|
23479
|
+
* @type {PaymentApp}
|
|
23480
|
+
* @memberof TransactionDtoCapturedBy
|
|
23481
|
+
*/
|
|
23482
|
+
'app': PaymentApp;
|
|
23483
|
+
}
|
|
23484
|
+
|
|
23485
|
+
|
|
23303
23486
|
/**
|
|
23304
23487
|
* Details about the cart, optional
|
|
23305
23488
|
* @export
|
|
@@ -23355,6 +23538,33 @@ export interface TransactionDtoCardDetail {
|
|
|
23355
23538
|
*/
|
|
23356
23539
|
'issuer': string | null;
|
|
23357
23540
|
}
|
|
23541
|
+
/**
|
|
23542
|
+
* The device that owns the order this payment settles. Absent on payments taken by an app build that predates the field.
|
|
23543
|
+
* @export
|
|
23544
|
+
* @interface TransactionDtoDevice
|
|
23545
|
+
*/
|
|
23546
|
+
export interface TransactionDtoDevice {
|
|
23547
|
+
/**
|
|
23548
|
+
* Station hardware id of the device.
|
|
23549
|
+
* @type {string}
|
|
23550
|
+
* @memberof TransactionDtoDevice
|
|
23551
|
+
*/
|
|
23552
|
+
'id': string;
|
|
23553
|
+
/**
|
|
23554
|
+
* The device\'s name at the time of payment. Empty when the venue never set one.
|
|
23555
|
+
* @type {string}
|
|
23556
|
+
* @memberof TransactionDtoDevice
|
|
23557
|
+
*/
|
|
23558
|
+
'name'?: string | null;
|
|
23559
|
+
/**
|
|
23560
|
+
*
|
|
23561
|
+
* @type {PaymentApp}
|
|
23562
|
+
* @memberof TransactionDtoDevice
|
|
23563
|
+
*/
|
|
23564
|
+
'app': PaymentApp;
|
|
23565
|
+
}
|
|
23566
|
+
|
|
23567
|
+
|
|
23358
23568
|
/**
|
|
23359
23569
|
* Fees for this payment
|
|
23360
23570
|
* @export
|
|
@@ -41676,7 +41886,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
41676
41886
|
};
|
|
41677
41887
|
},
|
|
41678
41888
|
/**
|
|
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.
|
|
41889
|
+
* 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
41890
|
* @summary Ready & Send a POS order to the kitchen
|
|
41681
41891
|
* @param {DispatchPosOrderDto} dispatchPosOrderDto
|
|
41682
41892
|
* @param {*} [options] Override http request option.
|
|
@@ -42230,7 +42440,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
42230
42440
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42231
42441
|
},
|
|
42232
42442
|
/**
|
|
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.
|
|
42443
|
+
* 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
42444
|
* @summary Ready & Send a POS order to the kitchen
|
|
42235
42445
|
* @param {DispatchPosOrderDto} dispatchPosOrderDto
|
|
42236
42446
|
* @param {*} [options] Override http request option.
|
|
@@ -42429,7 +42639,7 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
42429
42639
|
return localVarFp.deliverOrder(deliveredOrderDto, options).then((request) => request(axios, basePath));
|
|
42430
42640
|
},
|
|
42431
42641
|
/**
|
|
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.
|
|
42642
|
+
* 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
42643
|
* @summary Ready & Send a POS order to the kitchen
|
|
42434
42644
|
* @param {DispatchPosOrderDto} dispatchPosOrderDto
|
|
42435
42645
|
* @param {*} [options] Override http request option.
|
|
@@ -42614,7 +42824,7 @@ export interface OrdersApiInterface {
|
|
|
42614
42824
|
deliverOrder(deliveredOrderDto: DeliveredOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
|
|
42615
42825
|
|
|
42616
42826
|
/**
|
|
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.
|
|
42827
|
+
* 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
42828
|
* @summary Ready & Send a POS order to the kitchen
|
|
42619
42829
|
* @param {DispatchPosOrderDto} dispatchPosOrderDto
|
|
42620
42830
|
* @param {*} [options] Override http request option.
|
|
@@ -42807,7 +43017,7 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
|
|
|
42807
43017
|
}
|
|
42808
43018
|
|
|
42809
43019
|
/**
|
|
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.
|
|
43020
|
+
* 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
43021
|
* @summary Ready & Send a POS order to the kitchen
|
|
42812
43022
|
* @param {DispatchPosOrderDto} dispatchPosOrderDto
|
|
42813
43023
|
* @param {*} [options] Override http request option.
|
|
@@ -45942,6 +46152,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
45942
46152
|
options: localVarRequestOptions,
|
|
45943
46153
|
};
|
|
45944
46154
|
},
|
|
46155
|
+
/**
|
|
46156
|
+
* 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.
|
|
46157
|
+
* @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
|
|
46158
|
+
* @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
|
|
46159
|
+
* @param {*} [options] Override http request option.
|
|
46160
|
+
* @throws {RequiredError}
|
|
46161
|
+
*/
|
|
46162
|
+
retryWorldlineReversal: async (retryWorldlineReversalDto: RetryWorldlineReversalDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46163
|
+
// verify required parameter 'retryWorldlineReversalDto' is not null or undefined
|
|
46164
|
+
assertParamExists('retryWorldlineReversal', 'retryWorldlineReversalDto', retryWorldlineReversalDto)
|
|
46165
|
+
const localVarPath = `/api/v1/payment-session/worldline/reversal-retry`;
|
|
46166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46168
|
+
let baseOptions;
|
|
46169
|
+
if (configuration) {
|
|
46170
|
+
baseOptions = configuration.baseOptions;
|
|
46171
|
+
}
|
|
46172
|
+
|
|
46173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
46174
|
+
const localVarHeaderParameter = {} as any;
|
|
46175
|
+
const localVarQueryParameter = {} as any;
|
|
46176
|
+
|
|
46177
|
+
|
|
46178
|
+
|
|
46179
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
46180
|
+
|
|
46181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46183
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46184
|
+
localVarRequestOptions.data = serializeDataIfNeeded(retryWorldlineReversalDto, localVarRequestOptions, configuration)
|
|
46185
|
+
|
|
46186
|
+
return {
|
|
46187
|
+
url: toPathString(localVarUrlObj),
|
|
46188
|
+
options: localVarRequestOptions,
|
|
46189
|
+
};
|
|
46190
|
+
},
|
|
45945
46191
|
/**
|
|
45946
46192
|
* 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
46193
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -46280,6 +46526,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
46280
46526
|
const localVarAxiosArgs = await localVarAxiosParamCreator.refundWorldlineSession(reverseSessionDto, options);
|
|
46281
46527
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46282
46528
|
},
|
|
46529
|
+
/**
|
|
46530
|
+
* 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.
|
|
46531
|
+
* @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
|
|
46532
|
+
* @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
|
|
46533
|
+
* @param {*} [options] Override http request option.
|
|
46534
|
+
* @throws {RequiredError}
|
|
46535
|
+
*/
|
|
46536
|
+
async retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.retryWorldlineReversal(retryWorldlineReversalDto, options);
|
|
46538
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46539
|
+
},
|
|
46283
46540
|
/**
|
|
46284
46541
|
* 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
46542
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -46502,6 +46759,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
46502
46759
|
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
46503
46760
|
return localVarFp.refundWorldlineSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
46504
46761
|
},
|
|
46762
|
+
/**
|
|
46763
|
+
* 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.
|
|
46764
|
+
* @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
|
|
46765
|
+
* @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
|
|
46766
|
+
* @param {*} [options] Override http request option.
|
|
46767
|
+
* @throws {RequiredError}
|
|
46768
|
+
*/
|
|
46769
|
+
retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: any): AxiosPromise<void> {
|
|
46770
|
+
return localVarFp.retryWorldlineReversal(retryWorldlineReversalDto, options).then((request) => request(axios, basePath));
|
|
46771
|
+
},
|
|
46505
46772
|
/**
|
|
46506
46773
|
* 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
46774
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -46719,6 +46986,16 @@ export interface PaymentSessionApiInterface {
|
|
|
46719
46986
|
*/
|
|
46720
46987
|
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
46721
46988
|
|
|
46989
|
+
/**
|
|
46990
|
+
* 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.
|
|
46991
|
+
* @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
|
|
46992
|
+
* @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
|
|
46993
|
+
* @param {*} [options] Override http request option.
|
|
46994
|
+
* @throws {RequiredError}
|
|
46995
|
+
* @memberof PaymentSessionApiInterface
|
|
46996
|
+
*/
|
|
46997
|
+
retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46998
|
+
|
|
46722
46999
|
/**
|
|
46723
47000
|
* 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
47001
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -46968,6 +47245,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
46968
47245
|
return PaymentSessionApiFp(this.configuration).refundWorldlineSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
46969
47246
|
}
|
|
46970
47247
|
|
|
47248
|
+
/**
|
|
47249
|
+
* 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.
|
|
47250
|
+
* @summary Internal: ask a busy terminal for a refused reversal again (Cloud Task callback)
|
|
47251
|
+
* @param {RetryWorldlineReversalDto} retryWorldlineReversalDto
|
|
47252
|
+
* @param {*} [options] Override http request option.
|
|
47253
|
+
* @throws {RequiredError}
|
|
47254
|
+
* @memberof PaymentSessionApi
|
|
47255
|
+
*/
|
|
47256
|
+
public retryWorldlineReversal(retryWorldlineReversalDto: RetryWorldlineReversalDto, options?: AxiosRequestConfig) {
|
|
47257
|
+
return PaymentSessionApiFp(this.configuration).retryWorldlineReversal(retryWorldlineReversalDto, options).then((request) => request(this.axios, this.basePath));
|
|
47258
|
+
}
|
|
47259
|
+
|
|
46971
47260
|
/**
|
|
46972
47261
|
* 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
47262
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -54344,6 +54633,49 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
54344
54633
|
options: localVarRequestOptions,
|
|
54345
54634
|
};
|
|
54346
54635
|
},
|
|
54636
|
+
/**
|
|
54637
|
+
* 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.
|
|
54638
|
+
* @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
|
|
54639
|
+
* @param {string} xCloudtasksTaskretrycount
|
|
54640
|
+
* @param {ProcessDispatchTaskDto} processDispatchTaskDto
|
|
54641
|
+
* @param {*} [options] Override http request option.
|
|
54642
|
+
* @throws {RequiredError}
|
|
54643
|
+
*/
|
|
54644
|
+
processDispatchTask: async (xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54645
|
+
// verify required parameter 'xCloudtasksTaskretrycount' is not null or undefined
|
|
54646
|
+
assertParamExists('processDispatchTask', 'xCloudtasksTaskretrycount', xCloudtasksTaskretrycount)
|
|
54647
|
+
// verify required parameter 'processDispatchTaskDto' is not null or undefined
|
|
54648
|
+
assertParamExists('processDispatchTask', 'processDispatchTaskDto', processDispatchTaskDto)
|
|
54649
|
+
const localVarPath = `/api/webhook/pos/order-dispatch/process`;
|
|
54650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54651
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54652
|
+
let baseOptions;
|
|
54653
|
+
if (configuration) {
|
|
54654
|
+
baseOptions = configuration.baseOptions;
|
|
54655
|
+
}
|
|
54656
|
+
|
|
54657
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
54658
|
+
const localVarHeaderParameter = {} as any;
|
|
54659
|
+
const localVarQueryParameter = {} as any;
|
|
54660
|
+
|
|
54661
|
+
if (xCloudtasksTaskretrycount != null) {
|
|
54662
|
+
localVarHeaderParameter['x-cloudtasks-taskretrycount'] = String(xCloudtasksTaskretrycount);
|
|
54663
|
+
}
|
|
54664
|
+
|
|
54665
|
+
|
|
54666
|
+
|
|
54667
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54668
|
+
|
|
54669
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54670
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54671
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54672
|
+
localVarRequestOptions.data = serializeDataIfNeeded(processDispatchTaskDto, localVarRequestOptions, configuration)
|
|
54673
|
+
|
|
54674
|
+
return {
|
|
54675
|
+
url: toPathString(localVarUrlObj),
|
|
54676
|
+
options: localVarRequestOptions,
|
|
54677
|
+
};
|
|
54678
|
+
},
|
|
54347
54679
|
/**
|
|
54348
54680
|
*
|
|
54349
54681
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -54643,6 +54975,18 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
54643
54975
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleWorldlineSessionEvents(options);
|
|
54644
54976
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
54645
54977
|
},
|
|
54978
|
+
/**
|
|
54979
|
+
* 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.
|
|
54980
|
+
* @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
|
|
54981
|
+
* @param {string} xCloudtasksTaskretrycount
|
|
54982
|
+
* @param {ProcessDispatchTaskDto} processDispatchTaskDto
|
|
54983
|
+
* @param {*} [options] Override http request option.
|
|
54984
|
+
* @throws {RequiredError}
|
|
54985
|
+
*/
|
|
54986
|
+
async processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
54987
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.processDispatchTask(xCloudtasksTaskretrycount, processDispatchTaskDto, options);
|
|
54988
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
54989
|
+
},
|
|
54646
54990
|
/**
|
|
54647
54991
|
*
|
|
54648
54992
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -54840,6 +55184,17 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
54840
55184
|
handleWorldlineSessionEvents(options?: any): AxiosPromise<void> {
|
|
54841
55185
|
return localVarFp.handleWorldlineSessionEvents(options).then((request) => request(axios, basePath));
|
|
54842
55186
|
},
|
|
55187
|
+
/**
|
|
55188
|
+
* 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.
|
|
55189
|
+
* @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
|
|
55190
|
+
* @param {string} xCloudtasksTaskretrycount
|
|
55191
|
+
* @param {ProcessDispatchTaskDto} processDispatchTaskDto
|
|
55192
|
+
* @param {*} [options] Override http request option.
|
|
55193
|
+
* @throws {RequiredError}
|
|
55194
|
+
*/
|
|
55195
|
+
processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: any): AxiosPromise<void> {
|
|
55196
|
+
return localVarFp.processDispatchTask(xCloudtasksTaskretrycount, processDispatchTaskDto, options).then((request) => request(axios, basePath));
|
|
55197
|
+
},
|
|
54843
55198
|
/**
|
|
54844
55199
|
*
|
|
54845
55200
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -55032,6 +55387,17 @@ export interface WebhookApiInterface {
|
|
|
55032
55387
|
*/
|
|
55033
55388
|
handleWorldlineSessionEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
55034
55389
|
|
|
55390
|
+
/**
|
|
55391
|
+
* 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.
|
|
55392
|
+
* @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
|
|
55393
|
+
* @param {string} xCloudtasksTaskretrycount
|
|
55394
|
+
* @param {ProcessDispatchTaskDto} processDispatchTaskDto
|
|
55395
|
+
* @param {*} [options] Override http request option.
|
|
55396
|
+
* @throws {RequiredError}
|
|
55397
|
+
* @memberof WebhookApiInterface
|
|
55398
|
+
*/
|
|
55399
|
+
processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
55400
|
+
|
|
55035
55401
|
/**
|
|
55036
55402
|
*
|
|
55037
55403
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -55258,6 +55624,19 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
55258
55624
|
return WebhookApiFp(this.configuration).handleWorldlineSessionEvents(options).then((request) => request(this.axios, this.basePath));
|
|
55259
55625
|
}
|
|
55260
55626
|
|
|
55627
|
+
/**
|
|
55628
|
+
* 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.
|
|
55629
|
+
* @summary Dispatch a paid POS order to the kitchen (triggered by Cloud Tasks)
|
|
55630
|
+
* @param {string} xCloudtasksTaskretrycount
|
|
55631
|
+
* @param {ProcessDispatchTaskDto} processDispatchTaskDto
|
|
55632
|
+
* @param {*} [options] Override http request option.
|
|
55633
|
+
* @throws {RequiredError}
|
|
55634
|
+
* @memberof WebhookApi
|
|
55635
|
+
*/
|
|
55636
|
+
public processDispatchTask(xCloudtasksTaskretrycount: string, processDispatchTaskDto: ProcessDispatchTaskDto, options?: AxiosRequestConfig) {
|
|
55637
|
+
return WebhookApiFp(this.configuration).processDispatchTask(xCloudtasksTaskretrycount, processDispatchTaskDto, options).then((request) => request(this.axios, this.basePath));
|
|
55638
|
+
}
|
|
55639
|
+
|
|
55261
55640
|
/**
|
|
55262
55641
|
*
|
|
55263
55642
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
package/package.json
CHANGED
package/src/version.ts
CHANGED