@munchi_oy/core 1.9.37 → 1.9.40
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 +973 -90
- 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 +1599 -312
- package/package.json +13 -15
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -3466,6 +3466,63 @@ export interface CreateLoyaltyProgramUserResponseDto {
|
|
|
3466
3466
|
*/
|
|
3467
3467
|
'loyaltyAccount': LoyaltyAccountDto;
|
|
3468
3468
|
}
|
|
3469
|
+
/**
|
|
3470
|
+
*
|
|
3471
|
+
* @export
|
|
3472
|
+
* @interface CreateManualSessionDto
|
|
3473
|
+
*/
|
|
3474
|
+
export interface CreateManualSessionDto {
|
|
3475
|
+
/**
|
|
3476
|
+
* The internal business ID.
|
|
3477
|
+
* @type {number}
|
|
3478
|
+
* @memberof CreateManualSessionDto
|
|
3479
|
+
*/
|
|
3480
|
+
'businessId': number;
|
|
3481
|
+
/**
|
|
3482
|
+
* The POS order ID this payment session is for.
|
|
3483
|
+
* @type {string}
|
|
3484
|
+
* @memberof CreateManualSessionDto
|
|
3485
|
+
*/
|
|
3486
|
+
'orderId': string;
|
|
3487
|
+
/**
|
|
3488
|
+
* Amount to record in smallest currency unit (cents).
|
|
3489
|
+
* @type {number}
|
|
3490
|
+
* @memberof CreateManualSessionDto
|
|
3491
|
+
*/
|
|
3492
|
+
'amount': number;
|
|
3493
|
+
/**
|
|
3494
|
+
* Manual payment method (Cash, Voucher, CardManual, EdenredManual, GiftCard, …). Card paymethods (Card/Debit/Credit/Edenred — see CLOUD_CARD_PAYMETHOD) go through a gateway initiate, not here.
|
|
3495
|
+
* @type {string}
|
|
3496
|
+
* @memberof CreateManualSessionDto
|
|
3497
|
+
*/
|
|
3498
|
+
'paymethod': string;
|
|
3499
|
+
/**
|
|
3500
|
+
*
|
|
3501
|
+
* @type {PaymentProvider}
|
|
3502
|
+
* @memberof CreateManualSessionDto
|
|
3503
|
+
*/
|
|
3504
|
+
'provider': PaymentProvider;
|
|
3505
|
+
/**
|
|
3506
|
+
* Tip amount in smallest currency unit (cents).
|
|
3507
|
+
* @type {number}
|
|
3508
|
+
* @memberof CreateManualSessionDto
|
|
3509
|
+
*/
|
|
3510
|
+
'tipAmount'?: number;
|
|
3511
|
+
/**
|
|
3512
|
+
*
|
|
3513
|
+
* @type {InitiateVivaSessionDtoSplitContext}
|
|
3514
|
+
* @memberof CreateManualSessionDto
|
|
3515
|
+
*/
|
|
3516
|
+
'splitContext'?: InitiateVivaSessionDtoSplitContext;
|
|
3517
|
+
/**
|
|
3518
|
+
* Arbitrary client metadata persisted on the session (e.g. voucher code, gift card id, employee id, external reference, notes). Surfaced to reconciliation when building the order paymentEvent.
|
|
3519
|
+
* @type {object}
|
|
3520
|
+
* @memberof CreateManualSessionDto
|
|
3521
|
+
*/
|
|
3522
|
+
'metadata'?: object;
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
|
|
3469
3526
|
/**
|
|
3470
3527
|
*
|
|
3471
3528
|
* @export
|
|
@@ -5287,10 +5344,10 @@ export interface ExtendedProductDto {
|
|
|
5287
5344
|
'display_photo'?: boolean;
|
|
5288
5345
|
/**
|
|
5289
5346
|
*
|
|
5290
|
-
* @type {
|
|
5347
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
5291
5348
|
* @memberof ExtendedProductDto
|
|
5292
5349
|
*/
|
|
5293
|
-
'reporting_category'?:
|
|
5350
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
5294
5351
|
/**
|
|
5295
5352
|
* Indicates if the product is inventoried in POS
|
|
5296
5353
|
* @type {boolean}
|
|
@@ -5324,49 +5381,6 @@ export interface ExtendedProductDto {
|
|
|
5324
5381
|
}
|
|
5325
5382
|
|
|
5326
5383
|
|
|
5327
|
-
/**
|
|
5328
|
-
* Reporting category details
|
|
5329
|
-
* @export
|
|
5330
|
-
* @interface ExtendedProductDtoReportingCategory
|
|
5331
|
-
*/
|
|
5332
|
-
export interface ExtendedProductDtoReportingCategory {
|
|
5333
|
-
/**
|
|
5334
|
-
* Reporting Category ID
|
|
5335
|
-
* @type {number}
|
|
5336
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5337
|
-
*/
|
|
5338
|
-
'id': number;
|
|
5339
|
-
/**
|
|
5340
|
-
* Business ID
|
|
5341
|
-
* @type {string}
|
|
5342
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5343
|
-
*/
|
|
5344
|
-
'business_id': string;
|
|
5345
|
-
/**
|
|
5346
|
-
* Reporting Category Name
|
|
5347
|
-
* @type {string}
|
|
5348
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5349
|
-
*/
|
|
5350
|
-
'reporting_category_name': string;
|
|
5351
|
-
/**
|
|
5352
|
-
* Index/Order
|
|
5353
|
-
* @type {number}
|
|
5354
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5355
|
-
*/
|
|
5356
|
-
'index': number;
|
|
5357
|
-
/**
|
|
5358
|
-
* Created at timestamp
|
|
5359
|
-
* @type {string}
|
|
5360
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5361
|
-
*/
|
|
5362
|
-
'created_at': string;
|
|
5363
|
-
/**
|
|
5364
|
-
* Updated at timestamp
|
|
5365
|
-
* @type {string}
|
|
5366
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5367
|
-
*/
|
|
5368
|
-
'updated_at': string;
|
|
5369
|
-
}
|
|
5370
5384
|
/**
|
|
5371
5385
|
*
|
|
5372
5386
|
* @export
|
|
@@ -5801,6 +5815,25 @@ export interface GetPaymentStatusDto {
|
|
|
5801
5815
|
}
|
|
5802
5816
|
|
|
5803
5817
|
|
|
5818
|
+
/**
|
|
5819
|
+
*
|
|
5820
|
+
* @export
|
|
5821
|
+
* @interface GetPosOrderDto
|
|
5822
|
+
*/
|
|
5823
|
+
export interface GetPosOrderDto {
|
|
5824
|
+
/**
|
|
5825
|
+
* Id of the business
|
|
5826
|
+
* @type {number}
|
|
5827
|
+
* @memberof GetPosOrderDto
|
|
5828
|
+
*/
|
|
5829
|
+
'businessId': number;
|
|
5830
|
+
/**
|
|
5831
|
+
* Id of the order
|
|
5832
|
+
* @type {string}
|
|
5833
|
+
* @memberof GetPosOrderDto
|
|
5834
|
+
*/
|
|
5835
|
+
'orderId': string;
|
|
5836
|
+
}
|
|
5804
5837
|
/**
|
|
5805
5838
|
*
|
|
5806
5839
|
* @export
|
|
@@ -6078,6 +6111,215 @@ export interface InitiateNetsTerminalPaymentResponseDto {
|
|
|
6078
6111
|
*/
|
|
6079
6112
|
'connectCloudRequestId': string;
|
|
6080
6113
|
}
|
|
6114
|
+
/**
|
|
6115
|
+
*
|
|
6116
|
+
* @export
|
|
6117
|
+
* @interface InitiateVivaSessionDto
|
|
6118
|
+
*/
|
|
6119
|
+
export interface InitiateVivaSessionDto {
|
|
6120
|
+
/**
|
|
6121
|
+
* The internal business ID.
|
|
6122
|
+
* @type {number}
|
|
6123
|
+
* @memberof InitiateVivaSessionDto
|
|
6124
|
+
*/
|
|
6125
|
+
'businessId': number;
|
|
6126
|
+
/**
|
|
6127
|
+
* The POS order ID this payment session is for.
|
|
6128
|
+
* @type {string}
|
|
6129
|
+
* @memberof InitiateVivaSessionDto
|
|
6130
|
+
*/
|
|
6131
|
+
'orderId': string;
|
|
6132
|
+
/**
|
|
6133
|
+
* Amount to charge in smallest currency unit (cents).
|
|
6134
|
+
* @type {number}
|
|
6135
|
+
* @memberof InitiateVivaSessionDto
|
|
6136
|
+
*/
|
|
6137
|
+
'amount': number;
|
|
6138
|
+
/**
|
|
6139
|
+
*
|
|
6140
|
+
* @type {InitiateVivaSessionDtoSplitContext}
|
|
6141
|
+
* @memberof InitiateVivaSessionDto
|
|
6142
|
+
*/
|
|
6143
|
+
'splitContext'?: InitiateVivaSessionDtoSplitContext;
|
|
6144
|
+
}
|
|
6145
|
+
/**
|
|
6146
|
+
* Split context. Omit for a full-cart payment, or send { mode, partId|seatId } for a split. Must match the order\'s checkoutModel.
|
|
6147
|
+
* @export
|
|
6148
|
+
* @interface InitiateVivaSessionDtoSplitContext
|
|
6149
|
+
*/
|
|
6150
|
+
export interface InitiateVivaSessionDtoSplitContext {
|
|
6151
|
+
/**
|
|
6152
|
+
*
|
|
6153
|
+
* @type {CheckoutModelEnum}
|
|
6154
|
+
* @memberof InitiateVivaSessionDtoSplitContext
|
|
6155
|
+
*/
|
|
6156
|
+
'mode': CheckoutModelEnum;
|
|
6157
|
+
/**
|
|
6158
|
+
* Equal-split part id. Required when mode=EQUAL_SPLIT; ignored otherwise.
|
|
6159
|
+
* @type {string}
|
|
6160
|
+
* @memberof InitiateVivaSessionDtoSplitContext
|
|
6161
|
+
*/
|
|
6162
|
+
'partId'?: string;
|
|
6163
|
+
/**
|
|
6164
|
+
* Item-split seat id. Required when mode=ITEM_SPLIT; ignored otherwise.
|
|
6165
|
+
* @type {string}
|
|
6166
|
+
* @memberof InitiateVivaSessionDtoSplitContext
|
|
6167
|
+
*/
|
|
6168
|
+
'seatId'?: string;
|
|
6169
|
+
}
|
|
6170
|
+
|
|
6171
|
+
|
|
6172
|
+
/**
|
|
6173
|
+
*
|
|
6174
|
+
* @export
|
|
6175
|
+
* @interface InitiateVivaSessionResponseDto
|
|
6176
|
+
*/
|
|
6177
|
+
export interface InitiateVivaSessionResponseDto {
|
|
6178
|
+
/**
|
|
6179
|
+
* Opaque token returned to the client. Used by the client to poll/sync the session. Never sent to Viva.
|
|
6180
|
+
* @type {string}
|
|
6181
|
+
* @memberof InitiateVivaSessionResponseDto
|
|
6182
|
+
*/
|
|
6183
|
+
'clientToken': string;
|
|
6184
|
+
/**
|
|
6185
|
+
* Internal session ID sent to Viva for the transaction.
|
|
6186
|
+
* @type {string}
|
|
6187
|
+
* @memberof InitiateVivaSessionResponseDto
|
|
6188
|
+
*/
|
|
6189
|
+
'sessionId': string;
|
|
6190
|
+
/**
|
|
6191
|
+
*
|
|
6192
|
+
* @type {InitiateVivaSessionResponseDtoVivaIntent}
|
|
6193
|
+
* @memberof InitiateVivaSessionResponseDto
|
|
6194
|
+
*/
|
|
6195
|
+
'vivaIntent': InitiateVivaSessionResponseDtoVivaIntent;
|
|
6196
|
+
}
|
|
6197
|
+
/**
|
|
6198
|
+
* Viva payment intent returned by Viva createTransaction.
|
|
6199
|
+
* @export
|
|
6200
|
+
* @interface InitiateVivaSessionResponseDtoVivaIntent
|
|
6201
|
+
*/
|
|
6202
|
+
export interface InitiateVivaSessionResponseDtoVivaIntent {
|
|
6203
|
+
/**
|
|
6204
|
+
* The session ID for the transaction.
|
|
6205
|
+
* @type {string}
|
|
6206
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6207
|
+
*/
|
|
6208
|
+
'sessionId': string;
|
|
6209
|
+
/**
|
|
6210
|
+
* The terminal ID initiating the transaction.
|
|
6211
|
+
* @type {string}
|
|
6212
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6213
|
+
*/
|
|
6214
|
+
'terminalId': string;
|
|
6215
|
+
/**
|
|
6216
|
+
* The cash register ID associated with the transaction.
|
|
6217
|
+
* @type {string}
|
|
6218
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6219
|
+
*/
|
|
6220
|
+
'cashRegisterId': string;
|
|
6221
|
+
/**
|
|
6222
|
+
* The amount of the transaction.
|
|
6223
|
+
* @type {number}
|
|
6224
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6225
|
+
*/
|
|
6226
|
+
'amount': number;
|
|
6227
|
+
/**
|
|
6228
|
+
* The currency code for the transaction amount.
|
|
6229
|
+
* @type {string}
|
|
6230
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6231
|
+
*/
|
|
6232
|
+
'currencyCode': CurrencyCodeEnum;
|
|
6233
|
+
/**
|
|
6234
|
+
* A reference for the merchant.
|
|
6235
|
+
* @type {string}
|
|
6236
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6237
|
+
*/
|
|
6238
|
+
'merchantReference'?: string;
|
|
6239
|
+
/**
|
|
6240
|
+
* A human-readable description for the customer statement.
|
|
6241
|
+
* @type {string}
|
|
6242
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6243
|
+
*/
|
|
6244
|
+
'customerTrns'?: string;
|
|
6245
|
+
/**
|
|
6246
|
+
* The tip amount included in the transaction.
|
|
6247
|
+
* @type {number}
|
|
6248
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6249
|
+
*/
|
|
6250
|
+
'tipAmount': number;
|
|
6251
|
+
/**
|
|
6252
|
+
* Indicates if the transaction is a preauthorization.
|
|
6253
|
+
* @type {boolean}
|
|
6254
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6255
|
+
*/
|
|
6256
|
+
'preauth': boolean;
|
|
6257
|
+
/**
|
|
6258
|
+
* Whether to show the transaction result on the terminal.
|
|
6259
|
+
* @type {boolean}
|
|
6260
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6261
|
+
*/
|
|
6262
|
+
'showTransactionResult': boolean;
|
|
6263
|
+
/**
|
|
6264
|
+
* Whether to show the receipt on the terminal.
|
|
6265
|
+
* @type {boolean}
|
|
6266
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6267
|
+
*/
|
|
6268
|
+
'showReceipt': boolean;
|
|
6269
|
+
/**
|
|
6270
|
+
*
|
|
6271
|
+
* @type {VivaPaymentResultDtoIsvDetails}
|
|
6272
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6273
|
+
*/
|
|
6274
|
+
'isvDetails'?: VivaPaymentResultDtoIsvDetails;
|
|
6275
|
+
/**
|
|
6276
|
+
* Whether to skip applying a surcharge to the transaction.
|
|
6277
|
+
* @type {boolean}
|
|
6278
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6279
|
+
*/
|
|
6280
|
+
'skipSurcharge': boolean;
|
|
6281
|
+
}
|
|
6282
|
+
|
|
6283
|
+
export const CurrencyCodeEnum = {
|
|
6284
|
+
_978: '978',
|
|
6285
|
+
_840: '840',
|
|
6286
|
+
_826: '826',
|
|
6287
|
+
_392: '392',
|
|
6288
|
+
_036: '036',
|
|
6289
|
+
_124: '124',
|
|
6290
|
+
_756: '756',
|
|
6291
|
+
_156: '156',
|
|
6292
|
+
_344: '344',
|
|
6293
|
+
_554: '554',
|
|
6294
|
+
_752: '752',
|
|
6295
|
+
_410: '410',
|
|
6296
|
+
_702: '702',
|
|
6297
|
+
_578: '578',
|
|
6298
|
+
_484: '484',
|
|
6299
|
+
_356: '356',
|
|
6300
|
+
_643: '643',
|
|
6301
|
+
_710: '710',
|
|
6302
|
+
_949: '949',
|
|
6303
|
+
_986: '986',
|
|
6304
|
+
_901: '901',
|
|
6305
|
+
_208: '208',
|
|
6306
|
+
_985: '985',
|
|
6307
|
+
_764: '764',
|
|
6308
|
+
_360: '360',
|
|
6309
|
+
_348: '348',
|
|
6310
|
+
_203: '203',
|
|
6311
|
+
_376: '376',
|
|
6312
|
+
_152: '152',
|
|
6313
|
+
_608: '608',
|
|
6314
|
+
_784: '784',
|
|
6315
|
+
_170: '170',
|
|
6316
|
+
_682: '682',
|
|
6317
|
+
_458: '458',
|
|
6318
|
+
_946: '946'
|
|
6319
|
+
} as const;
|
|
6320
|
+
|
|
6321
|
+
export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
|
|
6322
|
+
|
|
6081
6323
|
/**
|
|
6082
6324
|
*
|
|
6083
6325
|
* @export
|
|
@@ -12178,6 +12420,116 @@ export interface PaymentRefundLineAllocationDto {
|
|
|
12178
12420
|
*/
|
|
12179
12421
|
'quantity': number;
|
|
12180
12422
|
}
|
|
12423
|
+
/**
|
|
12424
|
+
*
|
|
12425
|
+
* @export
|
|
12426
|
+
* @enum {string}
|
|
12427
|
+
*/
|
|
12428
|
+
|
|
12429
|
+
export const PaymentSessionStatus = {
|
|
12430
|
+
Initiated: 'INITIATED',
|
|
12431
|
+
Processing: 'PROCESSING',
|
|
12432
|
+
Success: 'SUCCESS',
|
|
12433
|
+
Failed: 'FAILED',
|
|
12434
|
+
Cancelled: 'CANCELLED',
|
|
12435
|
+
Closed: 'CLOSED',
|
|
12436
|
+
Voiding: 'VOIDING',
|
|
12437
|
+
Voided: 'VOIDED',
|
|
12438
|
+
VoidFailed: 'VOID_FAILED',
|
|
12439
|
+
Refunding: 'REFUNDING',
|
|
12440
|
+
Refunded: 'REFUNDED'
|
|
12441
|
+
} as const;
|
|
12442
|
+
|
|
12443
|
+
export type PaymentSessionStatus = typeof PaymentSessionStatus[keyof typeof PaymentSessionStatus];
|
|
12444
|
+
|
|
12445
|
+
|
|
12446
|
+
/**
|
|
12447
|
+
*
|
|
12448
|
+
* @export
|
|
12449
|
+
* @interface PaymentSessionViewDto
|
|
12450
|
+
*/
|
|
12451
|
+
export interface PaymentSessionViewDto {
|
|
12452
|
+
/**
|
|
12453
|
+
* Opaque client token.
|
|
12454
|
+
* @type {string}
|
|
12455
|
+
* @memberof PaymentSessionViewDto
|
|
12456
|
+
*/
|
|
12457
|
+
'clientToken': string;
|
|
12458
|
+
/**
|
|
12459
|
+
* Internal session ID.
|
|
12460
|
+
* @type {string}
|
|
12461
|
+
* @memberof PaymentSessionViewDto
|
|
12462
|
+
*/
|
|
12463
|
+
'sessionId': string;
|
|
12464
|
+
/**
|
|
12465
|
+
* Viva transaction ID set after webhook completes.
|
|
12466
|
+
* @type {string}
|
|
12467
|
+
* @memberof PaymentSessionViewDto
|
|
12468
|
+
*/
|
|
12469
|
+
'providerTransactionId'?: string;
|
|
12470
|
+
/**
|
|
12471
|
+
*
|
|
12472
|
+
* @type {PaymentSessionStatus}
|
|
12473
|
+
* @memberof PaymentSessionViewDto
|
|
12474
|
+
*/
|
|
12475
|
+
'status': PaymentSessionStatus;
|
|
12476
|
+
/**
|
|
12477
|
+
* Amount in cents.
|
|
12478
|
+
* @type {number}
|
|
12479
|
+
* @memberof PaymentSessionViewDto
|
|
12480
|
+
*/
|
|
12481
|
+
'amount': number;
|
|
12482
|
+
/**
|
|
12483
|
+
* Currency.
|
|
12484
|
+
* @type {string}
|
|
12485
|
+
* @memberof PaymentSessionViewDto
|
|
12486
|
+
*/
|
|
12487
|
+
'currency': string;
|
|
12488
|
+
/**
|
|
12489
|
+
* Tip amount (cents).
|
|
12490
|
+
* @type {number}
|
|
12491
|
+
* @memberof PaymentSessionViewDto
|
|
12492
|
+
*/
|
|
12493
|
+
'tipAmount': number;
|
|
12494
|
+
/**
|
|
12495
|
+
* Surcharge amount (cents).
|
|
12496
|
+
* @type {number}
|
|
12497
|
+
* @memberof PaymentSessionViewDto
|
|
12498
|
+
*/
|
|
12499
|
+
'surchargeAmount': number;
|
|
12500
|
+
/**
|
|
12501
|
+
* Error code if failed.
|
|
12502
|
+
* @type {string}
|
|
12503
|
+
* @memberof PaymentSessionViewDto
|
|
12504
|
+
*/
|
|
12505
|
+
'errorCode'?: string;
|
|
12506
|
+
/**
|
|
12507
|
+
* Error message if failed.
|
|
12508
|
+
* @type {string}
|
|
12509
|
+
* @memberof PaymentSessionViewDto
|
|
12510
|
+
*/
|
|
12511
|
+
'errorMessage'?: string;
|
|
12512
|
+
/**
|
|
12513
|
+
*
|
|
12514
|
+
* @type {string}
|
|
12515
|
+
* @memberof PaymentSessionViewDto
|
|
12516
|
+
*/
|
|
12517
|
+
'createdAt': string;
|
|
12518
|
+
/**
|
|
12519
|
+
*
|
|
12520
|
+
* @type {string}
|
|
12521
|
+
* @memberof PaymentSessionViewDto
|
|
12522
|
+
*/
|
|
12523
|
+
'updatedAt': string;
|
|
12524
|
+
/**
|
|
12525
|
+
*
|
|
12526
|
+
* @type {string}
|
|
12527
|
+
* @memberof PaymentSessionViewDto
|
|
12528
|
+
*/
|
|
12529
|
+
'closedAt'?: string;
|
|
12530
|
+
}
|
|
12531
|
+
|
|
12532
|
+
|
|
12181
12533
|
/**
|
|
12182
12534
|
*
|
|
12183
12535
|
* @export
|
|
@@ -13084,10 +13436,10 @@ export interface PosItemDto {
|
|
|
13084
13436
|
'display_photo'?: boolean;
|
|
13085
13437
|
/**
|
|
13086
13438
|
*
|
|
13087
|
-
* @type {
|
|
13439
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
13088
13440
|
* @memberof PosItemDto
|
|
13089
13441
|
*/
|
|
13090
|
-
'reporting_category'?:
|
|
13442
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
13091
13443
|
/**
|
|
13092
13444
|
* Indicates if the product is inventoried in POS
|
|
13093
13445
|
* @type {boolean}
|
|
@@ -13766,10 +14118,10 @@ export interface PosOrderItemDto {
|
|
|
13766
14118
|
'display_photo'?: boolean;
|
|
13767
14119
|
/**
|
|
13768
14120
|
*
|
|
13769
|
-
* @type {
|
|
14121
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
13770
14122
|
* @memberof PosOrderItemDto
|
|
13771
14123
|
*/
|
|
13772
|
-
'reporting_category'?:
|
|
14124
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
13773
14125
|
/**
|
|
13774
14126
|
* Category ID of the item
|
|
13775
14127
|
* @type {number}
|
|
@@ -13791,6 +14143,49 @@ export interface PosOrderItemDto {
|
|
|
13791
14143
|
}
|
|
13792
14144
|
|
|
13793
14145
|
|
|
14146
|
+
/**
|
|
14147
|
+
* Reporting category details
|
|
14148
|
+
* @export
|
|
14149
|
+
* @interface PosOrderItemDtoReportingCategory
|
|
14150
|
+
*/
|
|
14151
|
+
export interface PosOrderItemDtoReportingCategory {
|
|
14152
|
+
/**
|
|
14153
|
+
* Reporting Category ID
|
|
14154
|
+
* @type {number}
|
|
14155
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
14156
|
+
*/
|
|
14157
|
+
'id': number;
|
|
14158
|
+
/**
|
|
14159
|
+
* Business ID
|
|
14160
|
+
* @type {string}
|
|
14161
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
14162
|
+
*/
|
|
14163
|
+
'business_id': string;
|
|
14164
|
+
/**
|
|
14165
|
+
* Reporting Category Name
|
|
14166
|
+
* @type {string}
|
|
14167
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
14168
|
+
*/
|
|
14169
|
+
'reporting_category_name': string;
|
|
14170
|
+
/**
|
|
14171
|
+
* Index/Order
|
|
14172
|
+
* @type {number}
|
|
14173
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
14174
|
+
*/
|
|
14175
|
+
'index': number;
|
|
14176
|
+
/**
|
|
14177
|
+
* Created at timestamp
|
|
14178
|
+
* @type {string}
|
|
14179
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
14180
|
+
*/
|
|
14181
|
+
'created_at': string;
|
|
14182
|
+
/**
|
|
14183
|
+
* Updated at timestamp
|
|
14184
|
+
* @type {string}
|
|
14185
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
14186
|
+
*/
|
|
14187
|
+
'updated_at': string;
|
|
14188
|
+
}
|
|
13794
14189
|
/**
|
|
13795
14190
|
*
|
|
13796
14191
|
* @export
|
|
@@ -16573,6 +16968,25 @@ export const ScopeEnum = {
|
|
|
16573
16968
|
|
|
16574
16969
|
export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
|
|
16575
16970
|
|
|
16971
|
+
/**
|
|
16972
|
+
*
|
|
16973
|
+
* @export
|
|
16974
|
+
* @interface ReverseSessionDto
|
|
16975
|
+
*/
|
|
16976
|
+
export interface ReverseSessionDto {
|
|
16977
|
+
/**
|
|
16978
|
+
* The payment session\'s sessionId (id B) — the same value stored as the order paymentEvent referenceId. Use it to void/refund a recorded payment (the clientToken is only held during the live pay flow).
|
|
16979
|
+
* @type {string}
|
|
16980
|
+
* @memberof ReverseSessionDto
|
|
16981
|
+
*/
|
|
16982
|
+
'sessionId': string;
|
|
16983
|
+
/**
|
|
16984
|
+
* Amount to refund in cents for a partial / item refund. Must be > 0 and <= the session\'s paid amount. Omit to refund the full session amount.
|
|
16985
|
+
* @type {number}
|
|
16986
|
+
* @memberof ReverseSessionDto
|
|
16987
|
+
*/
|
|
16988
|
+
'amount'?: number;
|
|
16989
|
+
}
|
|
16576
16990
|
/**
|
|
16577
16991
|
*
|
|
16578
16992
|
* @export
|
|
@@ -16961,6 +17375,33 @@ export const SourceType = {
|
|
|
16961
17375
|
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
16962
17376
|
|
|
16963
17377
|
|
|
17378
|
+
/**
|
|
17379
|
+
*
|
|
17380
|
+
* @export
|
|
17381
|
+
* @interface SplitContextDto
|
|
17382
|
+
*/
|
|
17383
|
+
export interface SplitContextDto {
|
|
17384
|
+
/**
|
|
17385
|
+
*
|
|
17386
|
+
* @type {CheckoutModelEnum}
|
|
17387
|
+
* @memberof SplitContextDto
|
|
17388
|
+
*/
|
|
17389
|
+
'mode': CheckoutModelEnum;
|
|
17390
|
+
/**
|
|
17391
|
+
* Equal-split part id. Required when mode=EQUAL_SPLIT; ignored otherwise.
|
|
17392
|
+
* @type {string}
|
|
17393
|
+
* @memberof SplitContextDto
|
|
17394
|
+
*/
|
|
17395
|
+
'partId'?: string;
|
|
17396
|
+
/**
|
|
17397
|
+
* Item-split seat id. Required when mode=ITEM_SPLIT; ignored otherwise.
|
|
17398
|
+
* @type {string}
|
|
17399
|
+
* @memberof SplitContextDto
|
|
17400
|
+
*/
|
|
17401
|
+
'seatId'?: string;
|
|
17402
|
+
}
|
|
17403
|
+
|
|
17404
|
+
|
|
16964
17405
|
/**
|
|
16965
17406
|
*
|
|
16966
17407
|
* @export
|
|
@@ -17630,10 +18071,10 @@ export type TableShape = typeof TableShape[keyof typeof TableShape];
|
|
|
17630
18071
|
|
|
17631
18072
|
export const TableStatus = {
|
|
17632
18073
|
Available: 'AVAILABLE',
|
|
17633
|
-
Occupied: 'OCCUPIED',
|
|
17634
18074
|
Dirty: 'DIRTY',
|
|
17635
18075
|
Blocked: 'BLOCKED',
|
|
17636
|
-
OutOfService: 'OUT_OF_SERVICE'
|
|
18076
|
+
OutOfService: 'OUT_OF_SERVICE',
|
|
18077
|
+
Occupied: 'OCCUPIED'
|
|
17637
18078
|
} as const;
|
|
17638
18079
|
|
|
17639
18080
|
export type TableStatus = typeof TableStatus[keyof typeof TableStatus];
|
|
@@ -18125,6 +18566,38 @@ export const TransactionType = {
|
|
|
18125
18566
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
18126
18567
|
|
|
18127
18568
|
|
|
18569
|
+
/**
|
|
18570
|
+
*
|
|
18571
|
+
* @export
|
|
18572
|
+
* @interface TransferTableDto
|
|
18573
|
+
*/
|
|
18574
|
+
export interface TransferTableDto {
|
|
18575
|
+
/**
|
|
18576
|
+
* ID of the destination table
|
|
18577
|
+
* @type {string}
|
|
18578
|
+
* @memberof TransferTableDto
|
|
18579
|
+
*/
|
|
18580
|
+
'toTableId': string;
|
|
18581
|
+
}
|
|
18582
|
+
/**
|
|
18583
|
+
*
|
|
18584
|
+
* @export
|
|
18585
|
+
* @interface TransferTableResponseDto
|
|
18586
|
+
*/
|
|
18587
|
+
export interface TransferTableResponseDto {
|
|
18588
|
+
/**
|
|
18589
|
+
*
|
|
18590
|
+
* @type {DiningTableResponseDto}
|
|
18591
|
+
* @memberof TransferTableResponseDto
|
|
18592
|
+
*/
|
|
18593
|
+
'fromTable': DiningTableResponseDto;
|
|
18594
|
+
/**
|
|
18595
|
+
*
|
|
18596
|
+
* @type {DiningTableResponseDto}
|
|
18597
|
+
* @memberof TransferTableResponseDto
|
|
18598
|
+
*/
|
|
18599
|
+
'toTable': DiningTableResponseDto;
|
|
18600
|
+
}
|
|
18128
18601
|
/**
|
|
18129
18602
|
*
|
|
18130
18603
|
* @export
|
|
@@ -21404,46 +21877,6 @@ export interface VivaPaymentIntent {
|
|
|
21404
21877
|
'skipSurcharge': boolean;
|
|
21405
21878
|
}
|
|
21406
21879
|
|
|
21407
|
-
export const CurrencyCodeEnum = {
|
|
21408
|
-
_978: '978',
|
|
21409
|
-
_840: '840',
|
|
21410
|
-
_826: '826',
|
|
21411
|
-
_392: '392',
|
|
21412
|
-
_036: '036',
|
|
21413
|
-
_124: '124',
|
|
21414
|
-
_756: '756',
|
|
21415
|
-
_156: '156',
|
|
21416
|
-
_344: '344',
|
|
21417
|
-
_554: '554',
|
|
21418
|
-
_752: '752',
|
|
21419
|
-
_410: '410',
|
|
21420
|
-
_702: '702',
|
|
21421
|
-
_578: '578',
|
|
21422
|
-
_484: '484',
|
|
21423
|
-
_356: '356',
|
|
21424
|
-
_643: '643',
|
|
21425
|
-
_710: '710',
|
|
21426
|
-
_949: '949',
|
|
21427
|
-
_986: '986',
|
|
21428
|
-
_901: '901',
|
|
21429
|
-
_208: '208',
|
|
21430
|
-
_985: '985',
|
|
21431
|
-
_764: '764',
|
|
21432
|
-
_360: '360',
|
|
21433
|
-
_348: '348',
|
|
21434
|
-
_203: '203',
|
|
21435
|
-
_376: '376',
|
|
21436
|
-
_152: '152',
|
|
21437
|
-
_608: '608',
|
|
21438
|
-
_784: '784',
|
|
21439
|
-
_170: '170',
|
|
21440
|
-
_682: '682',
|
|
21441
|
-
_458: '458',
|
|
21442
|
-
_946: '946'
|
|
21443
|
-
} as const;
|
|
21444
|
-
|
|
21445
|
-
export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
|
|
21446
|
-
|
|
21447
21880
|
/**
|
|
21448
21881
|
*
|
|
21449
21882
|
* @export
|
|
@@ -29050,6 +29483,57 @@ export const FloorPlanApiAxiosParamCreator = function (configuration?: Configura
|
|
|
29050
29483
|
options: localVarRequestOptions,
|
|
29051
29484
|
};
|
|
29052
29485
|
},
|
|
29486
|
+
/**
|
|
29487
|
+
*
|
|
29488
|
+
* @summary Transfer an occupied table to an available table
|
|
29489
|
+
* @param {string} id
|
|
29490
|
+
* @param {number} businessId
|
|
29491
|
+
* @param {TransferTableDto} transferTableDto
|
|
29492
|
+
* @param {*} [options] Override http request option.
|
|
29493
|
+
* @throws {RequiredError}
|
|
29494
|
+
*/
|
|
29495
|
+
transferTable: async (id: string, businessId: number, transferTableDto: TransferTableDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29496
|
+
// verify required parameter 'id' is not null or undefined
|
|
29497
|
+
assertParamExists('transferTable', 'id', id)
|
|
29498
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29499
|
+
assertParamExists('transferTable', 'businessId', businessId)
|
|
29500
|
+
// verify required parameter 'transferTableDto' is not null or undefined
|
|
29501
|
+
assertParamExists('transferTable', 'transferTableDto', transferTableDto)
|
|
29502
|
+
const localVarPath = `/api/v1/floor-plan/tables/{id}/transfer`
|
|
29503
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29504
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29505
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29506
|
+
let baseOptions;
|
|
29507
|
+
if (configuration) {
|
|
29508
|
+
baseOptions = configuration.baseOptions;
|
|
29509
|
+
}
|
|
29510
|
+
|
|
29511
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29512
|
+
const localVarHeaderParameter = {} as any;
|
|
29513
|
+
const localVarQueryParameter = {} as any;
|
|
29514
|
+
|
|
29515
|
+
// authentication JWT-auth required
|
|
29516
|
+
// http bearer authentication required
|
|
29517
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29518
|
+
|
|
29519
|
+
if (businessId !== undefined) {
|
|
29520
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
29521
|
+
}
|
|
29522
|
+
|
|
29523
|
+
|
|
29524
|
+
|
|
29525
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29526
|
+
|
|
29527
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29529
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29530
|
+
localVarRequestOptions.data = serializeDataIfNeeded(transferTableDto, localVarRequestOptions, configuration)
|
|
29531
|
+
|
|
29532
|
+
return {
|
|
29533
|
+
url: toPathString(localVarUrlObj),
|
|
29534
|
+
options: localVarRequestOptions,
|
|
29535
|
+
};
|
|
29536
|
+
},
|
|
29053
29537
|
/**
|
|
29054
29538
|
*
|
|
29055
29539
|
* @summary Update a dining table
|
|
@@ -29321,6 +29805,19 @@ export const FloorPlanApiFp = function(configuration?: Configuration) {
|
|
|
29321
29805
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFloorPlan(businessId, options);
|
|
29322
29806
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29323
29807
|
},
|
|
29808
|
+
/**
|
|
29809
|
+
*
|
|
29810
|
+
* @summary Transfer an occupied table to an available table
|
|
29811
|
+
* @param {string} id
|
|
29812
|
+
* @param {number} businessId
|
|
29813
|
+
* @param {TransferTableDto} transferTableDto
|
|
29814
|
+
* @param {*} [options] Override http request option.
|
|
29815
|
+
* @throws {RequiredError}
|
|
29816
|
+
*/
|
|
29817
|
+
async transferTable(id: string, businessId: number, transferTableDto: TransferTableDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferTableResponseDto>> {
|
|
29818
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.transferTable(id, businessId, transferTableDto, options);
|
|
29819
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29820
|
+
},
|
|
29324
29821
|
/**
|
|
29325
29822
|
*
|
|
29326
29823
|
* @summary Update a dining table
|
|
@@ -29435,6 +29932,18 @@ export const FloorPlanApiFactory = function (configuration?: Configuration, base
|
|
|
29435
29932
|
getFloorPlan(businessId: number, options?: any): AxiosPromise<Array<FloorSectionResponseDto>> {
|
|
29436
29933
|
return localVarFp.getFloorPlan(businessId, options).then((request) => request(axios, basePath));
|
|
29437
29934
|
},
|
|
29935
|
+
/**
|
|
29936
|
+
*
|
|
29937
|
+
* @summary Transfer an occupied table to an available table
|
|
29938
|
+
* @param {string} id
|
|
29939
|
+
* @param {number} businessId
|
|
29940
|
+
* @param {TransferTableDto} transferTableDto
|
|
29941
|
+
* @param {*} [options] Override http request option.
|
|
29942
|
+
* @throws {RequiredError}
|
|
29943
|
+
*/
|
|
29944
|
+
transferTable(id: string, businessId: number, transferTableDto: TransferTableDto, options?: any): AxiosPromise<TransferTableResponseDto> {
|
|
29945
|
+
return localVarFp.transferTable(id, businessId, transferTableDto, options).then((request) => request(axios, basePath));
|
|
29946
|
+
},
|
|
29438
29947
|
/**
|
|
29439
29948
|
*
|
|
29440
29949
|
* @summary Update a dining table
|
|
@@ -29544,6 +30053,18 @@ export interface FloorPlanApiInterface {
|
|
|
29544
30053
|
*/
|
|
29545
30054
|
getFloorPlan(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<FloorSectionResponseDto>>;
|
|
29546
30055
|
|
|
30056
|
+
/**
|
|
30057
|
+
*
|
|
30058
|
+
* @summary Transfer an occupied table to an available table
|
|
30059
|
+
* @param {string} id
|
|
30060
|
+
* @param {number} businessId
|
|
30061
|
+
* @param {TransferTableDto} transferTableDto
|
|
30062
|
+
* @param {*} [options] Override http request option.
|
|
30063
|
+
* @throws {RequiredError}
|
|
30064
|
+
* @memberof FloorPlanApiInterface
|
|
30065
|
+
*/
|
|
30066
|
+
transferTable(id: string, businessId: number, transferTableDto: TransferTableDto, options?: AxiosRequestConfig): AxiosPromise<TransferTableResponseDto>;
|
|
30067
|
+
|
|
29547
30068
|
/**
|
|
29548
30069
|
*
|
|
29549
30070
|
* @summary Update a dining table
|
|
@@ -29663,6 +30184,20 @@ export class FloorPlanApi extends BaseAPI implements FloorPlanApiInterface {
|
|
|
29663
30184
|
return FloorPlanApiFp(this.configuration).getFloorPlan(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
29664
30185
|
}
|
|
29665
30186
|
|
|
30187
|
+
/**
|
|
30188
|
+
*
|
|
30189
|
+
* @summary Transfer an occupied table to an available table
|
|
30190
|
+
* @param {string} id
|
|
30191
|
+
* @param {number} businessId
|
|
30192
|
+
* @param {TransferTableDto} transferTableDto
|
|
30193
|
+
* @param {*} [options] Override http request option.
|
|
30194
|
+
* @throws {RequiredError}
|
|
30195
|
+
* @memberof FloorPlanApi
|
|
30196
|
+
*/
|
|
30197
|
+
public transferTable(id: string, businessId: number, transferTableDto: TransferTableDto, options?: AxiosRequestConfig) {
|
|
30198
|
+
return FloorPlanApiFp(this.configuration).transferTable(id, businessId, transferTableDto, options).then((request) => request(this.axios, this.basePath));
|
|
30199
|
+
}
|
|
30200
|
+
|
|
29666
30201
|
/**
|
|
29667
30202
|
*
|
|
29668
30203
|
* @summary Update a dining table
|
|
@@ -35025,6 +35560,42 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
35025
35560
|
options: localVarRequestOptions,
|
|
35026
35561
|
};
|
|
35027
35562
|
},
|
|
35563
|
+
/**
|
|
35564
|
+
*
|
|
35565
|
+
* @summary Get a single POS order from Firestore
|
|
35566
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
35567
|
+
* @param {*} [options] Override http request option.
|
|
35568
|
+
* @throws {RequiredError}
|
|
35569
|
+
*/
|
|
35570
|
+
getPosOrderById: async (getPosOrderDto: GetPosOrderDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35571
|
+
// verify required parameter 'getPosOrderDto' is not null or undefined
|
|
35572
|
+
assertParamExists('getPosOrderById', 'getPosOrderDto', getPosOrderDto)
|
|
35573
|
+
const localVarPath = `/api/v1/orders/pos`;
|
|
35574
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35575
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35576
|
+
let baseOptions;
|
|
35577
|
+
if (configuration) {
|
|
35578
|
+
baseOptions = configuration.baseOptions;
|
|
35579
|
+
}
|
|
35580
|
+
|
|
35581
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
35582
|
+
const localVarHeaderParameter = {} as any;
|
|
35583
|
+
const localVarQueryParameter = {} as any;
|
|
35584
|
+
|
|
35585
|
+
|
|
35586
|
+
|
|
35587
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35588
|
+
|
|
35589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35591
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35592
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getPosOrderDto, localVarRequestOptions, configuration)
|
|
35593
|
+
|
|
35594
|
+
return {
|
|
35595
|
+
url: toPathString(localVarUrlObj),
|
|
35596
|
+
options: localVarRequestOptions,
|
|
35597
|
+
};
|
|
35598
|
+
},
|
|
35028
35599
|
/**
|
|
35029
35600
|
*
|
|
35030
35601
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35295,6 +35866,17 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
35295
35866
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getParkedPosOrderV2(businessId, options);
|
|
35296
35867
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35297
35868
|
},
|
|
35869
|
+
/**
|
|
35870
|
+
*
|
|
35871
|
+
* @summary Get a single POS order from Firestore
|
|
35872
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
35873
|
+
* @param {*} [options] Override http request option.
|
|
35874
|
+
* @throws {RequiredError}
|
|
35875
|
+
*/
|
|
35876
|
+
async getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosOrderDto>> {
|
|
35877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPosOrderById(getPosOrderDto, options);
|
|
35878
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35879
|
+
},
|
|
35298
35880
|
/**
|
|
35299
35881
|
*
|
|
35300
35882
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35433,6 +36015,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
35433
36015
|
getParkedPosOrderV2(businessId: string, options?: any): AxiosPromise<Array<PosOrderDto>> {
|
|
35434
36016
|
return localVarFp.getParkedPosOrderV2(businessId, options).then((request) => request(axios, basePath));
|
|
35435
36017
|
},
|
|
36018
|
+
/**
|
|
36019
|
+
*
|
|
36020
|
+
* @summary Get a single POS order from Firestore
|
|
36021
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
36022
|
+
* @param {*} [options] Override http request option.
|
|
36023
|
+
* @throws {RequiredError}
|
|
36024
|
+
*/
|
|
36025
|
+
getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: any): AxiosPromise<PosOrderDto> {
|
|
36026
|
+
return localVarFp.getPosOrderById(getPosOrderDto, options).then((request) => request(axios, basePath));
|
|
36027
|
+
},
|
|
35436
36028
|
/**
|
|
35437
36029
|
*
|
|
35438
36030
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35565,6 +36157,16 @@ export interface OrdersApiInterface {
|
|
|
35565
36157
|
*/
|
|
35566
36158
|
getParkedPosOrderV2(businessId: string, options?: AxiosRequestConfig): AxiosPromise<Array<PosOrderDto>>;
|
|
35567
36159
|
|
|
36160
|
+
/**
|
|
36161
|
+
*
|
|
36162
|
+
* @summary Get a single POS order from Firestore
|
|
36163
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
36164
|
+
* @param {*} [options] Override http request option.
|
|
36165
|
+
* @throws {RequiredError}
|
|
36166
|
+
* @memberof OrdersApiInterface
|
|
36167
|
+
*/
|
|
36168
|
+
getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: AxiosRequestConfig): AxiosPromise<PosOrderDto>;
|
|
36169
|
+
|
|
35568
36170
|
/**
|
|
35569
36171
|
*
|
|
35570
36172
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35711,6 +36313,18 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
|
|
|
35711
36313
|
return OrdersApiFp(this.configuration).getParkedPosOrderV2(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
35712
36314
|
}
|
|
35713
36315
|
|
|
36316
|
+
/**
|
|
36317
|
+
*
|
|
36318
|
+
* @summary Get a single POS order from Firestore
|
|
36319
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
36320
|
+
* @param {*} [options] Override http request option.
|
|
36321
|
+
* @throws {RequiredError}
|
|
36322
|
+
* @memberof OrdersApi
|
|
36323
|
+
*/
|
|
36324
|
+
public getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: AxiosRequestConfig) {
|
|
36325
|
+
return OrdersApiFp(this.configuration).getPosOrderById(getPosOrderDto, options).then((request) => request(this.axios, this.basePath));
|
|
36326
|
+
}
|
|
36327
|
+
|
|
35714
36328
|
/**
|
|
35715
36329
|
*
|
|
35716
36330
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -37120,6 +37734,531 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
37120
37734
|
}
|
|
37121
37735
|
|
|
37122
37736
|
|
|
37737
|
+
/**
|
|
37738
|
+
* PaymentSessionApi - axios parameter creator
|
|
37739
|
+
* @export
|
|
37740
|
+
*/
|
|
37741
|
+
export const PaymentSessionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
37742
|
+
return {
|
|
37743
|
+
/**
|
|
37744
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
37745
|
+
* @summary Cancel an in-flight Viva payment session
|
|
37746
|
+
* @param {string} clientToken
|
|
37747
|
+
* @param {*} [options] Override http request option.
|
|
37748
|
+
* @throws {RequiredError}
|
|
37749
|
+
*/
|
|
37750
|
+
cancelVivaSession: async (clientToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37751
|
+
// verify required parameter 'clientToken' is not null or undefined
|
|
37752
|
+
assertParamExists('cancelVivaSession', 'clientToken', clientToken)
|
|
37753
|
+
const localVarPath = `/api/v1/payment-session/{clientToken}/cancel`
|
|
37754
|
+
.replace(`{${"clientToken"}}`, encodeURIComponent(String(clientToken)));
|
|
37755
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37756
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37757
|
+
let baseOptions;
|
|
37758
|
+
if (configuration) {
|
|
37759
|
+
baseOptions = configuration.baseOptions;
|
|
37760
|
+
}
|
|
37761
|
+
|
|
37762
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37763
|
+
const localVarHeaderParameter = {} as any;
|
|
37764
|
+
const localVarQueryParameter = {} as any;
|
|
37765
|
+
|
|
37766
|
+
|
|
37767
|
+
|
|
37768
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37770
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37771
|
+
|
|
37772
|
+
return {
|
|
37773
|
+
url: toPathString(localVarUrlObj),
|
|
37774
|
+
options: localVarRequestOptions,
|
|
37775
|
+
};
|
|
37776
|
+
},
|
|
37777
|
+
/**
|
|
37778
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
37779
|
+
* @summary Get payment session status by clientToken
|
|
37780
|
+
* @param {string} clientToken
|
|
37781
|
+
* @param {*} [options] Override http request option.
|
|
37782
|
+
* @throws {RequiredError}
|
|
37783
|
+
*/
|
|
37784
|
+
getPaymentSession: async (clientToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37785
|
+
// verify required parameter 'clientToken' is not null or undefined
|
|
37786
|
+
assertParamExists('getPaymentSession', 'clientToken', clientToken)
|
|
37787
|
+
const localVarPath = `/api/v1/payment-session/{clientToken}`
|
|
37788
|
+
.replace(`{${"clientToken"}}`, encodeURIComponent(String(clientToken)));
|
|
37789
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37790
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37791
|
+
let baseOptions;
|
|
37792
|
+
if (configuration) {
|
|
37793
|
+
baseOptions = configuration.baseOptions;
|
|
37794
|
+
}
|
|
37795
|
+
|
|
37796
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
37797
|
+
const localVarHeaderParameter = {} as any;
|
|
37798
|
+
const localVarQueryParameter = {} as any;
|
|
37799
|
+
|
|
37800
|
+
|
|
37801
|
+
|
|
37802
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37803
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37804
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37805
|
+
|
|
37806
|
+
return {
|
|
37807
|
+
url: toPathString(localVarUrlObj),
|
|
37808
|
+
options: localVarRequestOptions,
|
|
37809
|
+
};
|
|
37810
|
+
},
|
|
37811
|
+
/**
|
|
37812
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
37813
|
+
* @summary Initiate a Viva payment session
|
|
37814
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
37815
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
37816
|
+
* @param {*} [options] Override http request option.
|
|
37817
|
+
* @throws {RequiredError}
|
|
37818
|
+
*/
|
|
37819
|
+
initiateVivaSession: async (initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37820
|
+
// verify required parameter 'initiateVivaSessionDto' is not null or undefined
|
|
37821
|
+
assertParamExists('initiateVivaSession', 'initiateVivaSessionDto', initiateVivaSessionDto)
|
|
37822
|
+
const localVarPath = `/api/v1/payment-session/viva/initiate`;
|
|
37823
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37824
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37825
|
+
let baseOptions;
|
|
37826
|
+
if (configuration) {
|
|
37827
|
+
baseOptions = configuration.baseOptions;
|
|
37828
|
+
}
|
|
37829
|
+
|
|
37830
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37831
|
+
const localVarHeaderParameter = {} as any;
|
|
37832
|
+
const localVarQueryParameter = {} as any;
|
|
37833
|
+
|
|
37834
|
+
if (xIdempotencyKey != null) {
|
|
37835
|
+
localVarHeaderParameter['X-Idempotency-Key'] = String(xIdempotencyKey);
|
|
37836
|
+
}
|
|
37837
|
+
|
|
37838
|
+
|
|
37839
|
+
|
|
37840
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37841
|
+
|
|
37842
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37843
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37844
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37845
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateVivaSessionDto, localVarRequestOptions, configuration)
|
|
37846
|
+
|
|
37847
|
+
return {
|
|
37848
|
+
url: toPathString(localVarUrlObj),
|
|
37849
|
+
options: localVarRequestOptions,
|
|
37850
|
+
};
|
|
37851
|
+
},
|
|
37852
|
+
/**
|
|
37853
|
+
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
37854
|
+
* @summary Record a manual payment session
|
|
37855
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
37856
|
+
* @param {*} [options] Override http request option.
|
|
37857
|
+
* @throws {RequiredError}
|
|
37858
|
+
*/
|
|
37859
|
+
recordManualPayment: async (createManualSessionDto: CreateManualSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37860
|
+
// verify required parameter 'createManualSessionDto' is not null or undefined
|
|
37861
|
+
assertParamExists('recordManualPayment', 'createManualSessionDto', createManualSessionDto)
|
|
37862
|
+
const localVarPath = `/api/v1/payment-session/manual`;
|
|
37863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37865
|
+
let baseOptions;
|
|
37866
|
+
if (configuration) {
|
|
37867
|
+
baseOptions = configuration.baseOptions;
|
|
37868
|
+
}
|
|
37869
|
+
|
|
37870
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37871
|
+
const localVarHeaderParameter = {} as any;
|
|
37872
|
+
const localVarQueryParameter = {} as any;
|
|
37873
|
+
|
|
37874
|
+
|
|
37875
|
+
|
|
37876
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37877
|
+
|
|
37878
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37879
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37880
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37881
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createManualSessionDto, localVarRequestOptions, configuration)
|
|
37882
|
+
|
|
37883
|
+
return {
|
|
37884
|
+
url: toPathString(localVarUrlObj),
|
|
37885
|
+
options: localVarRequestOptions,
|
|
37886
|
+
};
|
|
37887
|
+
},
|
|
37888
|
+
/**
|
|
37889
|
+
* Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
|
|
37890
|
+
* @summary Refund a settled Viva payment session
|
|
37891
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
37892
|
+
* @param {*} [options] Override http request option.
|
|
37893
|
+
* @throws {RequiredError}
|
|
37894
|
+
*/
|
|
37895
|
+
refundVivaSession: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37896
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
37897
|
+
assertParamExists('refundVivaSession', 'reverseSessionDto', reverseSessionDto)
|
|
37898
|
+
const localVarPath = `/api/v1/payment-session/refund`;
|
|
37899
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37900
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37901
|
+
let baseOptions;
|
|
37902
|
+
if (configuration) {
|
|
37903
|
+
baseOptions = configuration.baseOptions;
|
|
37904
|
+
}
|
|
37905
|
+
|
|
37906
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37907
|
+
const localVarHeaderParameter = {} as any;
|
|
37908
|
+
const localVarQueryParameter = {} as any;
|
|
37909
|
+
|
|
37910
|
+
|
|
37911
|
+
|
|
37912
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37913
|
+
|
|
37914
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37916
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37917
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseSessionDto, localVarRequestOptions, configuration)
|
|
37918
|
+
|
|
37919
|
+
return {
|
|
37920
|
+
url: toPathString(localVarUrlObj),
|
|
37921
|
+
options: localVarRequestOptions,
|
|
37922
|
+
};
|
|
37923
|
+
},
|
|
37924
|
+
/**
|
|
37925
|
+
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
37926
|
+
* @summary Void a manual payment session
|
|
37927
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
37928
|
+
* @param {*} [options] Override http request option.
|
|
37929
|
+
* @throws {RequiredError}
|
|
37930
|
+
*/
|
|
37931
|
+
voidManualPayment: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37932
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
37933
|
+
assertParamExists('voidManualPayment', 'reverseSessionDto', reverseSessionDto)
|
|
37934
|
+
const localVarPath = `/api/v1/payment-session/void`;
|
|
37935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37936
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37937
|
+
let baseOptions;
|
|
37938
|
+
if (configuration) {
|
|
37939
|
+
baseOptions = configuration.baseOptions;
|
|
37940
|
+
}
|
|
37941
|
+
|
|
37942
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37943
|
+
const localVarHeaderParameter = {} as any;
|
|
37944
|
+
const localVarQueryParameter = {} as any;
|
|
37945
|
+
|
|
37946
|
+
|
|
37947
|
+
|
|
37948
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37949
|
+
|
|
37950
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37951
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37952
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37953
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseSessionDto, localVarRequestOptions, configuration)
|
|
37954
|
+
|
|
37955
|
+
return {
|
|
37956
|
+
url: toPathString(localVarUrlObj),
|
|
37957
|
+
options: localVarRequestOptions,
|
|
37958
|
+
};
|
|
37959
|
+
},
|
|
37960
|
+
}
|
|
37961
|
+
};
|
|
37962
|
+
|
|
37963
|
+
/**
|
|
37964
|
+
* PaymentSessionApi - functional programming interface
|
|
37965
|
+
* @export
|
|
37966
|
+
*/
|
|
37967
|
+
export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
37968
|
+
const localVarAxiosParamCreator = PaymentSessionApiAxiosParamCreator(configuration)
|
|
37969
|
+
return {
|
|
37970
|
+
/**
|
|
37971
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
37972
|
+
* @summary Cancel an in-flight Viva payment session
|
|
37973
|
+
* @param {string} clientToken
|
|
37974
|
+
* @param {*} [options] Override http request option.
|
|
37975
|
+
* @throws {RequiredError}
|
|
37976
|
+
*/
|
|
37977
|
+
async cancelVivaSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
37978
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelVivaSession(clientToken, options);
|
|
37979
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37980
|
+
},
|
|
37981
|
+
/**
|
|
37982
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
37983
|
+
* @summary Get payment session status by clientToken
|
|
37984
|
+
* @param {string} clientToken
|
|
37985
|
+
* @param {*} [options] Override http request option.
|
|
37986
|
+
* @throws {RequiredError}
|
|
37987
|
+
*/
|
|
37988
|
+
async getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
37989
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentSession(clientToken, options);
|
|
37990
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37991
|
+
},
|
|
37992
|
+
/**
|
|
37993
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
37994
|
+
* @summary Initiate a Viva payment session
|
|
37995
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
37996
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
37997
|
+
* @param {*} [options] Override http request option.
|
|
37998
|
+
* @throws {RequiredError}
|
|
37999
|
+
*/
|
|
38000
|
+
async initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateVivaSessionResponseDto>> {
|
|
38001
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options);
|
|
38002
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38003
|
+
},
|
|
38004
|
+
/**
|
|
38005
|
+
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
38006
|
+
* @summary Record a manual payment session
|
|
38007
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38008
|
+
* @param {*} [options] Override http request option.
|
|
38009
|
+
* @throws {RequiredError}
|
|
38010
|
+
*/
|
|
38011
|
+
async recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38012
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recordManualPayment(createManualSessionDto, options);
|
|
38013
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38014
|
+
},
|
|
38015
|
+
/**
|
|
38016
|
+
* Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
|
|
38017
|
+
* @summary Refund a settled Viva payment session
|
|
38018
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38019
|
+
* @param {*} [options] Override http request option.
|
|
38020
|
+
* @throws {RequiredError}
|
|
38021
|
+
*/
|
|
38022
|
+
async refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38023
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaSession(reverseSessionDto, options);
|
|
38024
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38025
|
+
},
|
|
38026
|
+
/**
|
|
38027
|
+
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38028
|
+
* @summary Void a manual payment session
|
|
38029
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38030
|
+
* @param {*} [options] Override http request option.
|
|
38031
|
+
* @throws {RequiredError}
|
|
38032
|
+
*/
|
|
38033
|
+
async voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.voidManualPayment(reverseSessionDto, options);
|
|
38035
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38036
|
+
},
|
|
38037
|
+
}
|
|
38038
|
+
};
|
|
38039
|
+
|
|
38040
|
+
/**
|
|
38041
|
+
* PaymentSessionApi - factory interface
|
|
38042
|
+
* @export
|
|
38043
|
+
*/
|
|
38044
|
+
export const PaymentSessionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
38045
|
+
const localVarFp = PaymentSessionApiFp(configuration)
|
|
38046
|
+
return {
|
|
38047
|
+
/**
|
|
38048
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
38049
|
+
* @summary Cancel an in-flight Viva payment session
|
|
38050
|
+
* @param {string} clientToken
|
|
38051
|
+
* @param {*} [options] Override http request option.
|
|
38052
|
+
* @throws {RequiredError}
|
|
38053
|
+
*/
|
|
38054
|
+
cancelVivaSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38055
|
+
return localVarFp.cancelVivaSession(clientToken, options).then((request) => request(axios, basePath));
|
|
38056
|
+
},
|
|
38057
|
+
/**
|
|
38058
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
38059
|
+
* @summary Get payment session status by clientToken
|
|
38060
|
+
* @param {string} clientToken
|
|
38061
|
+
* @param {*} [options] Override http request option.
|
|
38062
|
+
* @throws {RequiredError}
|
|
38063
|
+
*/
|
|
38064
|
+
getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38065
|
+
return localVarFp.getPaymentSession(clientToken, options).then((request) => request(axios, basePath));
|
|
38066
|
+
},
|
|
38067
|
+
/**
|
|
38068
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38069
|
+
* @summary Initiate a Viva payment session
|
|
38070
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
38071
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
38072
|
+
* @param {*} [options] Override http request option.
|
|
38073
|
+
* @throws {RequiredError}
|
|
38074
|
+
*/
|
|
38075
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateVivaSessionResponseDto> {
|
|
38076
|
+
return localVarFp.initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options).then((request) => request(axios, basePath));
|
|
38077
|
+
},
|
|
38078
|
+
/**
|
|
38079
|
+
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
38080
|
+
* @summary Record a manual payment session
|
|
38081
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38082
|
+
* @param {*} [options] Override http request option.
|
|
38083
|
+
* @throws {RequiredError}
|
|
38084
|
+
*/
|
|
38085
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38086
|
+
return localVarFp.recordManualPayment(createManualSessionDto, options).then((request) => request(axios, basePath));
|
|
38087
|
+
},
|
|
38088
|
+
/**
|
|
38089
|
+
* Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
|
|
38090
|
+
* @summary Refund a settled Viva payment session
|
|
38091
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38092
|
+
* @param {*} [options] Override http request option.
|
|
38093
|
+
* @throws {RequiredError}
|
|
38094
|
+
*/
|
|
38095
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38096
|
+
return localVarFp.refundVivaSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
38097
|
+
},
|
|
38098
|
+
/**
|
|
38099
|
+
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38100
|
+
* @summary Void a manual payment session
|
|
38101
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38102
|
+
* @param {*} [options] Override http request option.
|
|
38103
|
+
* @throws {RequiredError}
|
|
38104
|
+
*/
|
|
38105
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38106
|
+
return localVarFp.voidManualPayment(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
38107
|
+
},
|
|
38108
|
+
};
|
|
38109
|
+
};
|
|
38110
|
+
|
|
38111
|
+
/**
|
|
38112
|
+
* PaymentSessionApi - interface
|
|
38113
|
+
* @export
|
|
38114
|
+
* @interface PaymentSessionApi
|
|
38115
|
+
*/
|
|
38116
|
+
export interface PaymentSessionApiInterface {
|
|
38117
|
+
/**
|
|
38118
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
38119
|
+
* @summary Cancel an in-flight Viva payment session
|
|
38120
|
+
* @param {string} clientToken
|
|
38121
|
+
* @param {*} [options] Override http request option.
|
|
38122
|
+
* @throws {RequiredError}
|
|
38123
|
+
* @memberof PaymentSessionApiInterface
|
|
38124
|
+
*/
|
|
38125
|
+
cancelVivaSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38126
|
+
|
|
38127
|
+
/**
|
|
38128
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
38129
|
+
* @summary Get payment session status by clientToken
|
|
38130
|
+
* @param {string} clientToken
|
|
38131
|
+
* @param {*} [options] Override http request option.
|
|
38132
|
+
* @throws {RequiredError}
|
|
38133
|
+
* @memberof PaymentSessionApiInterface
|
|
38134
|
+
*/
|
|
38135
|
+
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38136
|
+
|
|
38137
|
+
/**
|
|
38138
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38139
|
+
* @summary Initiate a Viva payment session
|
|
38140
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
38141
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
38142
|
+
* @param {*} [options] Override http request option.
|
|
38143
|
+
* @throws {RequiredError}
|
|
38144
|
+
* @memberof PaymentSessionApiInterface
|
|
38145
|
+
*/
|
|
38146
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
38147
|
+
|
|
38148
|
+
/**
|
|
38149
|
+
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
38150
|
+
* @summary Record a manual payment session
|
|
38151
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38152
|
+
* @param {*} [options] Override http request option.
|
|
38153
|
+
* @throws {RequiredError}
|
|
38154
|
+
* @memberof PaymentSessionApiInterface
|
|
38155
|
+
*/
|
|
38156
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38157
|
+
|
|
38158
|
+
/**
|
|
38159
|
+
* Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
|
|
38160
|
+
* @summary Refund a settled Viva payment session
|
|
38161
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38162
|
+
* @param {*} [options] Override http request option.
|
|
38163
|
+
* @throws {RequiredError}
|
|
38164
|
+
* @memberof PaymentSessionApiInterface
|
|
38165
|
+
*/
|
|
38166
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38167
|
+
|
|
38168
|
+
/**
|
|
38169
|
+
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38170
|
+
* @summary Void a manual payment session
|
|
38171
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38172
|
+
* @param {*} [options] Override http request option.
|
|
38173
|
+
* @throws {RequiredError}
|
|
38174
|
+
* @memberof PaymentSessionApiInterface
|
|
38175
|
+
*/
|
|
38176
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38177
|
+
|
|
38178
|
+
}
|
|
38179
|
+
|
|
38180
|
+
/**
|
|
38181
|
+
* PaymentSessionApi - object-oriented interface
|
|
38182
|
+
* @export
|
|
38183
|
+
* @class PaymentSessionApi
|
|
38184
|
+
* @extends {BaseAPI}
|
|
38185
|
+
*/
|
|
38186
|
+
export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInterface {
|
|
38187
|
+
/**
|
|
38188
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
38189
|
+
* @summary Cancel an in-flight Viva payment session
|
|
38190
|
+
* @param {string} clientToken
|
|
38191
|
+
* @param {*} [options] Override http request option.
|
|
38192
|
+
* @throws {RequiredError}
|
|
38193
|
+
* @memberof PaymentSessionApi
|
|
38194
|
+
*/
|
|
38195
|
+
public cancelVivaSession(clientToken: string, options?: AxiosRequestConfig) {
|
|
38196
|
+
return PaymentSessionApiFp(this.configuration).cancelVivaSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
38197
|
+
}
|
|
38198
|
+
|
|
38199
|
+
/**
|
|
38200
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
38201
|
+
* @summary Get payment session status by clientToken
|
|
38202
|
+
* @param {string} clientToken
|
|
38203
|
+
* @param {*} [options] Override http request option.
|
|
38204
|
+
* @throws {RequiredError}
|
|
38205
|
+
* @memberof PaymentSessionApi
|
|
38206
|
+
*/
|
|
38207
|
+
public getPaymentSession(clientToken: string, options?: AxiosRequestConfig) {
|
|
38208
|
+
return PaymentSessionApiFp(this.configuration).getPaymentSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
38209
|
+
}
|
|
38210
|
+
|
|
38211
|
+
/**
|
|
38212
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38213
|
+
* @summary Initiate a Viva payment session
|
|
38214
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
38215
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
38216
|
+
* @param {*} [options] Override http request option.
|
|
38217
|
+
* @throws {RequiredError}
|
|
38218
|
+
* @memberof PaymentSessionApi
|
|
38219
|
+
*/
|
|
38220
|
+
public initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) {
|
|
38221
|
+
return PaymentSessionApiFp(this.configuration).initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
38222
|
+
}
|
|
38223
|
+
|
|
38224
|
+
/**
|
|
38225
|
+
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
38226
|
+
* @summary Record a manual payment session
|
|
38227
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38228
|
+
* @param {*} [options] Override http request option.
|
|
38229
|
+
* @throws {RequiredError}
|
|
38230
|
+
* @memberof PaymentSessionApi
|
|
38231
|
+
*/
|
|
38232
|
+
public recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig) {
|
|
38233
|
+
return PaymentSessionApiFp(this.configuration).recordManualPayment(createManualSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38234
|
+
}
|
|
38235
|
+
|
|
38236
|
+
/**
|
|
38237
|
+
* Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
|
|
38238
|
+
* @summary Refund a settled Viva payment session
|
|
38239
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38240
|
+
* @param {*} [options] Override http request option.
|
|
38241
|
+
* @throws {RequiredError}
|
|
38242
|
+
* @memberof PaymentSessionApi
|
|
38243
|
+
*/
|
|
38244
|
+
public refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
38245
|
+
return PaymentSessionApiFp(this.configuration).refundVivaSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38246
|
+
}
|
|
38247
|
+
|
|
38248
|
+
/**
|
|
38249
|
+
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38250
|
+
* @summary Void a manual payment session
|
|
38251
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38252
|
+
* @param {*} [options] Override http request option.
|
|
38253
|
+
* @throws {RequiredError}
|
|
38254
|
+
* @memberof PaymentSessionApi
|
|
38255
|
+
*/
|
|
38256
|
+
public voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
38257
|
+
return PaymentSessionApiFp(this.configuration).voidManualPayment(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38258
|
+
}
|
|
38259
|
+
}
|
|
38260
|
+
|
|
38261
|
+
|
|
37123
38262
|
/**
|
|
37124
38263
|
* PluginApi - axios parameter creator
|
|
37125
38264
|
* @export
|
|
@@ -41780,14 +42919,261 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41780
42919
|
},
|
|
41781
42920
|
/**
|
|
41782
42921
|
*
|
|
41783
|
-
* @param {OrderUpdateDto} orderUpdateDto
|
|
42922
|
+
* @param {OrderUpdateDto} orderUpdateDto
|
|
42923
|
+
* @param {*} [options] Override http request option.
|
|
42924
|
+
* @throws {RequiredError}
|
|
42925
|
+
*/
|
|
42926
|
+
handleFoodoraEvent: async (orderUpdateDto: OrderUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42927
|
+
// verify required parameter 'orderUpdateDto' is not null or undefined
|
|
42928
|
+
assertParamExists('handleFoodoraEvent', 'orderUpdateDto', orderUpdateDto)
|
|
42929
|
+
const localVarPath = `/api/webhook/order/event`;
|
|
42930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42931
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42932
|
+
let baseOptions;
|
|
42933
|
+
if (configuration) {
|
|
42934
|
+
baseOptions = configuration.baseOptions;
|
|
42935
|
+
}
|
|
42936
|
+
|
|
42937
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42938
|
+
const localVarHeaderParameter = {} as any;
|
|
42939
|
+
const localVarQueryParameter = {} as any;
|
|
42940
|
+
|
|
42941
|
+
|
|
42942
|
+
|
|
42943
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42944
|
+
|
|
42945
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42947
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42948
|
+
localVarRequestOptions.data = serializeDataIfNeeded(orderUpdateDto, localVarRequestOptions, configuration)
|
|
42949
|
+
|
|
42950
|
+
return {
|
|
42951
|
+
url: toPathString(localVarUrlObj),
|
|
42952
|
+
options: localVarRequestOptions,
|
|
42953
|
+
};
|
|
42954
|
+
},
|
|
42955
|
+
/**
|
|
42956
|
+
*
|
|
42957
|
+
* @summary Handle Supabase employee sync webhook
|
|
42958
|
+
* @param {*} [options] Override http request option.
|
|
42959
|
+
* @throws {RequiredError}
|
|
42960
|
+
*/
|
|
42961
|
+
handleLoadEmployee: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42962
|
+
const localVarPath = `/api/webhook/load-employee`;
|
|
42963
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42964
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42965
|
+
let baseOptions;
|
|
42966
|
+
if (configuration) {
|
|
42967
|
+
baseOptions = configuration.baseOptions;
|
|
42968
|
+
}
|
|
42969
|
+
|
|
42970
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42971
|
+
const localVarHeaderParameter = {} as any;
|
|
42972
|
+
const localVarQueryParameter = {} as any;
|
|
42973
|
+
|
|
42974
|
+
|
|
42975
|
+
|
|
42976
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42977
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42978
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42979
|
+
|
|
42980
|
+
return {
|
|
42981
|
+
url: toPathString(localVarUrlObj),
|
|
42982
|
+
options: localVarRequestOptions,
|
|
42983
|
+
};
|
|
42984
|
+
},
|
|
42985
|
+
/**
|
|
42986
|
+
*
|
|
42987
|
+
* @param {*} [options] Override http request option.
|
|
42988
|
+
* @throws {RequiredError}
|
|
42989
|
+
*/
|
|
42990
|
+
handleNetsEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42991
|
+
const localVarPath = `/api/webhook/nets`;
|
|
42992
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42993
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42994
|
+
let baseOptions;
|
|
42995
|
+
if (configuration) {
|
|
42996
|
+
baseOptions = configuration.baseOptions;
|
|
42997
|
+
}
|
|
42998
|
+
|
|
42999
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43000
|
+
const localVarHeaderParameter = {} as any;
|
|
43001
|
+
const localVarQueryParameter = {} as any;
|
|
43002
|
+
|
|
43003
|
+
|
|
43004
|
+
|
|
43005
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43006
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43007
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43008
|
+
|
|
43009
|
+
return {
|
|
43010
|
+
url: toPathString(localVarUrlObj),
|
|
43011
|
+
options: localVarRequestOptions,
|
|
43012
|
+
};
|
|
43013
|
+
},
|
|
43014
|
+
/**
|
|
43015
|
+
*
|
|
43016
|
+
* @param {*} [options] Override http request option.
|
|
43017
|
+
* @throws {RequiredError}
|
|
43018
|
+
*/
|
|
43019
|
+
handleNetsEventsV2: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43020
|
+
const localVarPath = `/api/webhook/v2/nets`;
|
|
43021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43023
|
+
let baseOptions;
|
|
43024
|
+
if (configuration) {
|
|
43025
|
+
baseOptions = configuration.baseOptions;
|
|
43026
|
+
}
|
|
43027
|
+
|
|
43028
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43029
|
+
const localVarHeaderParameter = {} as any;
|
|
43030
|
+
const localVarQueryParameter = {} as any;
|
|
43031
|
+
|
|
43032
|
+
|
|
43033
|
+
|
|
43034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43036
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43037
|
+
|
|
43038
|
+
return {
|
|
43039
|
+
url: toPathString(localVarUrlObj),
|
|
43040
|
+
options: localVarRequestOptions,
|
|
43041
|
+
};
|
|
43042
|
+
},
|
|
43043
|
+
/**
|
|
43044
|
+
*
|
|
43045
|
+
* @param {*} [options] Override http request option.
|
|
43046
|
+
* @throws {RequiredError}
|
|
43047
|
+
*/
|
|
43048
|
+
handleNetsRefundEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43049
|
+
const localVarPath = `/api/webhook/nets/refund`;
|
|
43050
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43051
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43052
|
+
let baseOptions;
|
|
43053
|
+
if (configuration) {
|
|
43054
|
+
baseOptions = configuration.baseOptions;
|
|
43055
|
+
}
|
|
43056
|
+
|
|
43057
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43058
|
+
const localVarHeaderParameter = {} as any;
|
|
43059
|
+
const localVarQueryParameter = {} as any;
|
|
43060
|
+
|
|
43061
|
+
|
|
43062
|
+
|
|
43063
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43065
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43066
|
+
|
|
43067
|
+
return {
|
|
43068
|
+
url: toPathString(localVarUrlObj),
|
|
43069
|
+
options: localVarRequestOptions,
|
|
43070
|
+
};
|
|
43071
|
+
},
|
|
43072
|
+
/**
|
|
43073
|
+
*
|
|
43074
|
+
* @summary Handle preorder reminder (triggered by scheduler)
|
|
43075
|
+
* @param {PreOrderReminderDto} preOrderReminderDto
|
|
43076
|
+
* @param {*} [options] Override http request option.
|
|
43077
|
+
* @throws {RequiredError}
|
|
43078
|
+
*/
|
|
43079
|
+
handlePreorderReminder: async (preOrderReminderDto: PreOrderReminderDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43080
|
+
// verify required parameter 'preOrderReminderDto' is not null or undefined
|
|
43081
|
+
assertParamExists('handlePreorderReminder', 'preOrderReminderDto', preOrderReminderDto)
|
|
43082
|
+
const localVarPath = `/api/webhook/preorder-reminder`;
|
|
43083
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43084
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43085
|
+
let baseOptions;
|
|
43086
|
+
if (configuration) {
|
|
43087
|
+
baseOptions = configuration.baseOptions;
|
|
43088
|
+
}
|
|
43089
|
+
|
|
43090
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43091
|
+
const localVarHeaderParameter = {} as any;
|
|
43092
|
+
const localVarQueryParameter = {} as any;
|
|
43093
|
+
|
|
43094
|
+
|
|
43095
|
+
|
|
43096
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43097
|
+
|
|
43098
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43099
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43100
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43101
|
+
localVarRequestOptions.data = serializeDataIfNeeded(preOrderReminderDto, localVarRequestOptions, configuration)
|
|
43102
|
+
|
|
43103
|
+
return {
|
|
43104
|
+
url: toPathString(localVarUrlObj),
|
|
43105
|
+
options: localVarRequestOptions,
|
|
43106
|
+
};
|
|
43107
|
+
},
|
|
43108
|
+
/**
|
|
43109
|
+
*
|
|
43110
|
+
* @param {*} [options] Override http request option.
|
|
43111
|
+
* @throws {RequiredError}
|
|
43112
|
+
*/
|
|
43113
|
+
handleRoleWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43114
|
+
const localVarPath = `/api/webhook/add-roles`;
|
|
43115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43116
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43117
|
+
let baseOptions;
|
|
43118
|
+
if (configuration) {
|
|
43119
|
+
baseOptions = configuration.baseOptions;
|
|
43120
|
+
}
|
|
43121
|
+
|
|
43122
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43123
|
+
const localVarHeaderParameter = {} as any;
|
|
43124
|
+
const localVarQueryParameter = {} as any;
|
|
43125
|
+
|
|
43126
|
+
|
|
43127
|
+
|
|
43128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43131
|
+
|
|
43132
|
+
return {
|
|
43133
|
+
url: toPathString(localVarUrlObj),
|
|
43134
|
+
options: localVarRequestOptions,
|
|
43135
|
+
};
|
|
43136
|
+
},
|
|
43137
|
+
/**
|
|
43138
|
+
*
|
|
43139
|
+
* @param {*} [options] Override http request option.
|
|
43140
|
+
* @throws {RequiredError}
|
|
43141
|
+
*/
|
|
43142
|
+
handleShiftWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43143
|
+
const localVarPath = `/api/webhook/add-employee-shifts`;
|
|
43144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43146
|
+
let baseOptions;
|
|
43147
|
+
if (configuration) {
|
|
43148
|
+
baseOptions = configuration.baseOptions;
|
|
43149
|
+
}
|
|
43150
|
+
|
|
43151
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43152
|
+
const localVarHeaderParameter = {} as any;
|
|
43153
|
+
const localVarQueryParameter = {} as any;
|
|
43154
|
+
|
|
43155
|
+
|
|
43156
|
+
|
|
43157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43159
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43160
|
+
|
|
43161
|
+
return {
|
|
43162
|
+
url: toPathString(localVarUrlObj),
|
|
43163
|
+
options: localVarRequestOptions,
|
|
43164
|
+
};
|
|
43165
|
+
},
|
|
43166
|
+
/**
|
|
43167
|
+
*
|
|
43168
|
+
* @summary Handle Viva payment webhook events
|
|
43169
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
41784
43170
|
* @param {*} [options] Override http request option.
|
|
41785
43171
|
* @throws {RequiredError}
|
|
41786
43172
|
*/
|
|
41787
|
-
|
|
41788
|
-
// verify required parameter '
|
|
41789
|
-
assertParamExists('
|
|
41790
|
-
const localVarPath = `/api/webhook/
|
|
43173
|
+
handleVivaEvents: async (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43174
|
+
// verify required parameter 'vivaWebhookPayloadDto' is not null or undefined
|
|
43175
|
+
assertParamExists('handleVivaEvents', 'vivaWebhookPayloadDto', vivaWebhookPayloadDto)
|
|
43176
|
+
const localVarPath = `/api/webhook/viva/verification`;
|
|
41791
43177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41792
43178
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41793
43179
|
let baseOptions;
|
|
@@ -41806,124 +43192,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41806
43192
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41807
43193
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41808
43194
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41809
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
41810
|
-
|
|
41811
|
-
return {
|
|
41812
|
-
url: toPathString(localVarUrlObj),
|
|
41813
|
-
options: localVarRequestOptions,
|
|
41814
|
-
};
|
|
41815
|
-
},
|
|
41816
|
-
/**
|
|
41817
|
-
*
|
|
41818
|
-
* @summary Handle Supabase employee sync webhook
|
|
41819
|
-
* @param {*} [options] Override http request option.
|
|
41820
|
-
* @throws {RequiredError}
|
|
41821
|
-
*/
|
|
41822
|
-
handleLoadEmployee: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41823
|
-
const localVarPath = `/api/webhook/load-employee`;
|
|
41824
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41825
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41826
|
-
let baseOptions;
|
|
41827
|
-
if (configuration) {
|
|
41828
|
-
baseOptions = configuration.baseOptions;
|
|
41829
|
-
}
|
|
41830
|
-
|
|
41831
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41832
|
-
const localVarHeaderParameter = {} as any;
|
|
41833
|
-
const localVarQueryParameter = {} as any;
|
|
41834
|
-
|
|
41835
|
-
|
|
41836
|
-
|
|
41837
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41838
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41839
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41840
|
-
|
|
41841
|
-
return {
|
|
41842
|
-
url: toPathString(localVarUrlObj),
|
|
41843
|
-
options: localVarRequestOptions,
|
|
41844
|
-
};
|
|
41845
|
-
},
|
|
41846
|
-
/**
|
|
41847
|
-
*
|
|
41848
|
-
* @param {*} [options] Override http request option.
|
|
41849
|
-
* @throws {RequiredError}
|
|
41850
|
-
*/
|
|
41851
|
-
handleNetsEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41852
|
-
const localVarPath = `/api/webhook/nets`;
|
|
41853
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41854
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41855
|
-
let baseOptions;
|
|
41856
|
-
if (configuration) {
|
|
41857
|
-
baseOptions = configuration.baseOptions;
|
|
41858
|
-
}
|
|
41859
|
-
|
|
41860
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41861
|
-
const localVarHeaderParameter = {} as any;
|
|
41862
|
-
const localVarQueryParameter = {} as any;
|
|
41863
|
-
|
|
41864
|
-
|
|
41865
|
-
|
|
41866
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41867
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41868
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41869
|
-
|
|
41870
|
-
return {
|
|
41871
|
-
url: toPathString(localVarUrlObj),
|
|
41872
|
-
options: localVarRequestOptions,
|
|
41873
|
-
};
|
|
41874
|
-
},
|
|
41875
|
-
/**
|
|
41876
|
-
*
|
|
41877
|
-
* @param {*} [options] Override http request option.
|
|
41878
|
-
* @throws {RequiredError}
|
|
41879
|
-
*/
|
|
41880
|
-
handleNetsEventsV2: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41881
|
-
const localVarPath = `/api/webhook/v2/nets`;
|
|
41882
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41883
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41884
|
-
let baseOptions;
|
|
41885
|
-
if (configuration) {
|
|
41886
|
-
baseOptions = configuration.baseOptions;
|
|
41887
|
-
}
|
|
41888
|
-
|
|
41889
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41890
|
-
const localVarHeaderParameter = {} as any;
|
|
41891
|
-
const localVarQueryParameter = {} as any;
|
|
41892
|
-
|
|
41893
|
-
|
|
41894
|
-
|
|
41895
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41896
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41897
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41898
|
-
|
|
41899
|
-
return {
|
|
41900
|
-
url: toPathString(localVarUrlObj),
|
|
41901
|
-
options: localVarRequestOptions,
|
|
41902
|
-
};
|
|
41903
|
-
},
|
|
41904
|
-
/**
|
|
41905
|
-
*
|
|
41906
|
-
* @param {*} [options] Override http request option.
|
|
41907
|
-
* @throws {RequiredError}
|
|
41908
|
-
*/
|
|
41909
|
-
handleNetsRefundEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41910
|
-
const localVarPath = `/api/webhook/nets/refund`;
|
|
41911
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41912
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41913
|
-
let baseOptions;
|
|
41914
|
-
if (configuration) {
|
|
41915
|
-
baseOptions = configuration.baseOptions;
|
|
41916
|
-
}
|
|
41917
|
-
|
|
41918
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41919
|
-
const localVarHeaderParameter = {} as any;
|
|
41920
|
-
const localVarQueryParameter = {} as any;
|
|
41921
|
-
|
|
41922
|
-
|
|
41923
|
-
|
|
41924
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41925
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41926
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43195
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
41927
43196
|
|
|
41928
43197
|
return {
|
|
41929
43198
|
url: toPathString(localVarUrlObj),
|
|
@@ -41931,16 +43200,16 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41931
43200
|
};
|
|
41932
43201
|
},
|
|
41933
43202
|
/**
|
|
41934
|
-
*
|
|
41935
|
-
* @summary Handle
|
|
41936
|
-
* @param {
|
|
43203
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
43204
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
43205
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
41937
43206
|
* @param {*} [options] Override http request option.
|
|
41938
43207
|
* @throws {RequiredError}
|
|
41939
43208
|
*/
|
|
41940
|
-
|
|
41941
|
-
// verify required parameter '
|
|
41942
|
-
assertParamExists('
|
|
41943
|
-
const localVarPath = `/api/webhook/
|
|
43209
|
+
handleVivaSessionEvents: async (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43210
|
+
// verify required parameter 'vivaWebhookPayloadDto' is not null or undefined
|
|
43211
|
+
assertParamExists('handleVivaSessionEvents', 'vivaWebhookPayloadDto', vivaWebhookPayloadDto)
|
|
43212
|
+
const localVarPath = `/api/webhook/viva/payments`;
|
|
41944
43213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41945
43214
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41946
43215
|
let baseOptions;
|
|
@@ -41959,36 +43228,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41959
43228
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41960
43229
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41961
43230
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41962
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
41963
|
-
|
|
41964
|
-
return {
|
|
41965
|
-
url: toPathString(localVarUrlObj),
|
|
41966
|
-
options: localVarRequestOptions,
|
|
41967
|
-
};
|
|
41968
|
-
},
|
|
41969
|
-
/**
|
|
41970
|
-
*
|
|
41971
|
-
* @param {*} [options] Override http request option.
|
|
41972
|
-
* @throws {RequiredError}
|
|
41973
|
-
*/
|
|
41974
|
-
handleRoleWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41975
|
-
const localVarPath = `/api/webhook/add-roles`;
|
|
41976
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41977
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41978
|
-
let baseOptions;
|
|
41979
|
-
if (configuration) {
|
|
41980
|
-
baseOptions = configuration.baseOptions;
|
|
41981
|
-
}
|
|
41982
|
-
|
|
41983
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41984
|
-
const localVarHeaderParameter = {} as any;
|
|
41985
|
-
const localVarQueryParameter = {} as any;
|
|
41986
|
-
|
|
41987
|
-
|
|
41988
|
-
|
|
41989
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41990
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41991
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43231
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
41992
43232
|
|
|
41993
43233
|
return {
|
|
41994
43234
|
url: toPathString(localVarUrlObj),
|
|
@@ -42000,8 +43240,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42000
43240
|
* @param {*} [options] Override http request option.
|
|
42001
43241
|
* @throws {RequiredError}
|
|
42002
43242
|
*/
|
|
42003
|
-
|
|
42004
|
-
const localVarPath = `/api/webhook/
|
|
43243
|
+
handleWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43244
|
+
const localVarPath = `/api/webhook/ship-day`;
|
|
42005
43245
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42006
43246
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42007
43247
|
let baseOptions;
|
|
@@ -42026,15 +43266,11 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42026
43266
|
},
|
|
42027
43267
|
/**
|
|
42028
43268
|
*
|
|
42029
|
-
* @summary Handle Viva payment webhook events
|
|
42030
|
-
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
42031
43269
|
* @param {*} [options] Override http request option.
|
|
42032
43270
|
* @throws {RequiredError}
|
|
42033
43271
|
*/
|
|
42034
|
-
|
|
42035
|
-
|
|
42036
|
-
assertParamExists('handleVivaEvents', 'vivaWebhookPayloadDto', vivaWebhookPayloadDto)
|
|
42037
|
-
const localVarPath = `/api/webhook/viva/verification`;
|
|
43272
|
+
handleWoltDriveEvent: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43273
|
+
const localVarPath = `/api/webhook/wolt-drive/event`;
|
|
42038
43274
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42039
43275
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42040
43276
|
let baseOptions;
|
|
@@ -42048,12 +43284,9 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42048
43284
|
|
|
42049
43285
|
|
|
42050
43286
|
|
|
42051
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42052
|
-
|
|
42053
43287
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42054
43288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42055
43289
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42056
|
-
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
42057
43290
|
|
|
42058
43291
|
return {
|
|
42059
43292
|
url: toPathString(localVarUrlObj),
|
|
@@ -42062,11 +43295,15 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42062
43295
|
},
|
|
42063
43296
|
/**
|
|
42064
43297
|
*
|
|
43298
|
+
* @param {string} country
|
|
42065
43299
|
* @param {*} [options] Override http request option.
|
|
42066
43300
|
* @throws {RequiredError}
|
|
42067
43301
|
*/
|
|
42068
|
-
|
|
42069
|
-
|
|
43302
|
+
handleWoltDriveEventByCountry: async (country: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43303
|
+
// verify required parameter 'country' is not null or undefined
|
|
43304
|
+
assertParamExists('handleWoltDriveEventByCountry', 'country', country)
|
|
43305
|
+
const localVarPath = `/api/webhook/wolt-drive/{country}/event`
|
|
43306
|
+
.replace(`{${"country"}}`, encodeURIComponent(String(country)));
|
|
42070
43307
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42071
43308
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42072
43309
|
let baseOptions;
|
|
@@ -42094,8 +43331,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42094
43331
|
* @param {*} [options] Override http request option.
|
|
42095
43332
|
* @throws {RequiredError}
|
|
42096
43333
|
*/
|
|
42097
|
-
|
|
42098
|
-
const localVarPath = `/api/webhook/
|
|
43334
|
+
handleWorldlineEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43335
|
+
const localVarPath = `/api/webhook/worldline/events`;
|
|
42099
43336
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42100
43337
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42101
43338
|
let baseOptions;
|
|
@@ -42120,15 +43357,14 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42120
43357
|
},
|
|
42121
43358
|
/**
|
|
42122
43359
|
*
|
|
42123
|
-
* @param {
|
|
43360
|
+
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
42124
43361
|
* @param {*} [options] Override http request option.
|
|
42125
43362
|
* @throws {RequiredError}
|
|
42126
43363
|
*/
|
|
42127
|
-
|
|
42128
|
-
// verify required parameter '
|
|
42129
|
-
assertParamExists('
|
|
42130
|
-
const localVarPath = `/api/webhook/
|
|
42131
|
-
.replace(`{${"country"}}`, encodeURIComponent(String(country)));
|
|
43364
|
+
processKioskRecoveryQueue: async (processKioskRecoveryQueueDto: ProcessKioskRecoveryQueueDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43365
|
+
// verify required parameter 'processKioskRecoveryQueueDto' is not null or undefined
|
|
43366
|
+
assertParamExists('processKioskRecoveryQueue', 'processKioskRecoveryQueueDto', processKioskRecoveryQueueDto)
|
|
43367
|
+
const localVarPath = `/api/webhook/kiosk/recovery/process`;
|
|
42132
43368
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42133
43369
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42134
43370
|
let baseOptions;
|
|
@@ -42142,38 +43378,12 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42142
43378
|
|
|
42143
43379
|
|
|
42144
43380
|
|
|
42145
|
-
|
|
42146
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42147
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42148
|
-
|
|
42149
|
-
return {
|
|
42150
|
-
url: toPathString(localVarUrlObj),
|
|
42151
|
-
options: localVarRequestOptions,
|
|
42152
|
-
};
|
|
42153
|
-
},
|
|
42154
|
-
/**
|
|
42155
|
-
*
|
|
42156
|
-
* @param {*} [options] Override http request option.
|
|
42157
|
-
* @throws {RequiredError}
|
|
42158
|
-
*/
|
|
42159
|
-
handleWorldlineEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42160
|
-
const localVarPath = `/api/webhook/worldline/events`;
|
|
42161
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42162
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42163
|
-
let baseOptions;
|
|
42164
|
-
if (configuration) {
|
|
42165
|
-
baseOptions = configuration.baseOptions;
|
|
42166
|
-
}
|
|
42167
|
-
|
|
42168
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42169
|
-
const localVarHeaderParameter = {} as any;
|
|
42170
|
-
const localVarQueryParameter = {} as any;
|
|
42171
|
-
|
|
43381
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42172
43382
|
|
|
42173
|
-
|
|
42174
43383
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42175
43384
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42176
43385
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43386
|
+
localVarRequestOptions.data = serializeDataIfNeeded(processKioskRecoveryQueueDto, localVarRequestOptions, configuration)
|
|
42177
43387
|
|
|
42178
43388
|
return {
|
|
42179
43389
|
url: toPathString(localVarUrlObj),
|
|
@@ -42182,14 +43392,11 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42182
43392
|
},
|
|
42183
43393
|
/**
|
|
42184
43394
|
*
|
|
42185
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
42186
43395
|
* @param {*} [options] Override http request option.
|
|
42187
43396
|
* @throws {RequiredError}
|
|
42188
43397
|
*/
|
|
42189
|
-
|
|
42190
|
-
|
|
42191
|
-
assertParamExists('processKioskRecoveryQueue', 'processKioskRecoveryQueueDto', processKioskRecoveryQueueDto)
|
|
42192
|
-
const localVarPath = `/api/webhook/kiosk/recovery/process`;
|
|
43398
|
+
updateWoltProduct: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43399
|
+
const localVarPath = `/api/webhook/wolt/product/edit`;
|
|
42193
43400
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42194
43401
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42195
43402
|
let baseOptions;
|
|
@@ -42203,12 +43410,9 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42203
43410
|
|
|
42204
43411
|
|
|
42205
43412
|
|
|
42206
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42207
|
-
|
|
42208
43413
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42209
43414
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42210
43415
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42211
|
-
localVarRequestOptions.data = serializeDataIfNeeded(processKioskRecoveryQueueDto, localVarRequestOptions, configuration)
|
|
42212
43416
|
|
|
42213
43417
|
return {
|
|
42214
43418
|
url: toPathString(localVarUrlObj),
|
|
@@ -42216,12 +43420,13 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42216
43420
|
};
|
|
42217
43421
|
},
|
|
42218
43422
|
/**
|
|
42219
|
-
*
|
|
43423
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
43424
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
42220
43425
|
* @param {*} [options] Override http request option.
|
|
42221
43426
|
* @throws {RequiredError}
|
|
42222
43427
|
*/
|
|
42223
|
-
|
|
42224
|
-
const localVarPath = `/api/webhook/
|
|
43428
|
+
verifyVivaSessionWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43429
|
+
const localVarPath = `/api/webhook/viva/payments`;
|
|
42225
43430
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42226
43431
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42227
43432
|
let baseOptions;
|
|
@@ -42229,7 +43434,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42229
43434
|
baseOptions = configuration.baseOptions;
|
|
42230
43435
|
}
|
|
42231
43436
|
|
|
42232
|
-
const localVarRequestOptions = { method: '
|
|
43437
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
42233
43438
|
const localVarHeaderParameter = {} as any;
|
|
42234
43439
|
const localVarQueryParameter = {} as any;
|
|
42235
43440
|
|
|
@@ -42388,6 +43593,17 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
42388
43593
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleVivaEvents(vivaWebhookPayloadDto, options);
|
|
42389
43594
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42390
43595
|
},
|
|
43596
|
+
/**
|
|
43597
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
43598
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
43599
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
43600
|
+
* @param {*} [options] Override http request option.
|
|
43601
|
+
* @throws {RequiredError}
|
|
43602
|
+
*/
|
|
43603
|
+
async handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleVivaSessionEvents(vivaWebhookPayloadDto, options);
|
|
43605
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43606
|
+
},
|
|
42391
43607
|
/**
|
|
42392
43608
|
*
|
|
42393
43609
|
* @param {*} [options] Override http request option.
|
|
@@ -42444,6 +43660,16 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
42444
43660
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWoltProduct(options);
|
|
42445
43661
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42446
43662
|
},
|
|
43663
|
+
/**
|
|
43664
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
43665
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
43666
|
+
* @param {*} [options] Override http request option.
|
|
43667
|
+
* @throws {RequiredError}
|
|
43668
|
+
*/
|
|
43669
|
+
async verifyVivaSessionWebhook(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyVivaSessionWebhook(options);
|
|
43671
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43672
|
+
},
|
|
42447
43673
|
/**
|
|
42448
43674
|
*
|
|
42449
43675
|
* @param {*} [options] Override http request option.
|
|
@@ -42557,6 +43783,16 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
42557
43783
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void> {
|
|
42558
43784
|
return localVarFp.handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
|
|
42559
43785
|
},
|
|
43786
|
+
/**
|
|
43787
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
43788
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
43789
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
43790
|
+
* @param {*} [options] Override http request option.
|
|
43791
|
+
* @throws {RequiredError}
|
|
43792
|
+
*/
|
|
43793
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void> {
|
|
43794
|
+
return localVarFp.handleVivaSessionEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
|
|
43795
|
+
},
|
|
42560
43796
|
/**
|
|
42561
43797
|
*
|
|
42562
43798
|
* @param {*} [options] Override http request option.
|
|
@@ -42607,6 +43843,15 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
42607
43843
|
updateWoltProduct(options?: any): AxiosPromise<void> {
|
|
42608
43844
|
return localVarFp.updateWoltProduct(options).then((request) => request(axios, basePath));
|
|
42609
43845
|
},
|
|
43846
|
+
/**
|
|
43847
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
43848
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
43849
|
+
* @param {*} [options] Override http request option.
|
|
43850
|
+
* @throws {RequiredError}
|
|
43851
|
+
*/
|
|
43852
|
+
verifyVivaSessionWebhook(options?: any): AxiosPromise<void> {
|
|
43853
|
+
return localVarFp.verifyVivaSessionWebhook(options).then((request) => request(axios, basePath));
|
|
43854
|
+
},
|
|
42610
43855
|
/**
|
|
42611
43856
|
*
|
|
42612
43857
|
* @param {*} [options] Override http request option.
|
|
@@ -42718,6 +43963,16 @@ export interface WebhookApiInterface {
|
|
|
42718
43963
|
*/
|
|
42719
43964
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
42720
43965
|
|
|
43966
|
+
/**
|
|
43967
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
43968
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
43969
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
43970
|
+
* @param {*} [options] Override http request option.
|
|
43971
|
+
* @throws {RequiredError}
|
|
43972
|
+
* @memberof WebhookApiInterface
|
|
43973
|
+
*/
|
|
43974
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
43975
|
+
|
|
42721
43976
|
/**
|
|
42722
43977
|
*
|
|
42723
43978
|
* @param {*} [options] Override http request option.
|
|
@@ -42768,6 +44023,15 @@ export interface WebhookApiInterface {
|
|
|
42768
44023
|
*/
|
|
42769
44024
|
updateWoltProduct(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
42770
44025
|
|
|
44026
|
+
/**
|
|
44027
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
44028
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
44029
|
+
* @param {*} [options] Override http request option.
|
|
44030
|
+
* @throws {RequiredError}
|
|
44031
|
+
* @memberof WebhookApiInterface
|
|
44032
|
+
*/
|
|
44033
|
+
verifyVivaSessionWebhook(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
44034
|
+
|
|
42771
44035
|
/**
|
|
42772
44036
|
*
|
|
42773
44037
|
* @param {*} [options] Override http request option.
|
|
@@ -42901,6 +44165,18 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
42901
44165
|
return WebhookApiFp(this.configuration).handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(this.axios, this.basePath));
|
|
42902
44166
|
}
|
|
42903
44167
|
|
|
44168
|
+
/**
|
|
44169
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
44170
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
44171
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
44172
|
+
* @param {*} [options] Override http request option.
|
|
44173
|
+
* @throws {RequiredError}
|
|
44174
|
+
* @memberof WebhookApi
|
|
44175
|
+
*/
|
|
44176
|
+
public handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig) {
|
|
44177
|
+
return WebhookApiFp(this.configuration).handleVivaSessionEvents(vivaWebhookPayloadDto, options).then((request) => request(this.axios, this.basePath));
|
|
44178
|
+
}
|
|
44179
|
+
|
|
42904
44180
|
/**
|
|
42905
44181
|
*
|
|
42906
44182
|
* @param {*} [options] Override http request option.
|
|
@@ -42963,6 +44239,17 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
42963
44239
|
return WebhookApiFp(this.configuration).updateWoltProduct(options).then((request) => request(this.axios, this.basePath));
|
|
42964
44240
|
}
|
|
42965
44241
|
|
|
44242
|
+
/**
|
|
44243
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
44244
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
44245
|
+
* @param {*} [options] Override http request option.
|
|
44246
|
+
* @throws {RequiredError}
|
|
44247
|
+
* @memberof WebhookApi
|
|
44248
|
+
*/
|
|
44249
|
+
public verifyVivaSessionWebhook(options?: AxiosRequestConfig) {
|
|
44250
|
+
return WebhookApiFp(this.configuration).verifyVivaSessionWebhook(options).then((request) => request(this.axios, this.basePath));
|
|
44251
|
+
}
|
|
44252
|
+
|
|
42966
44253
|
/**
|
|
42967
44254
|
*
|
|
42968
44255
|
* @param {*} [options] Override http request option.
|