@munchi_oy/core 1.9.39 → 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 +893 -88
- 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 +1473 -314
- 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
|
|
@@ -11493,7 +11735,10 @@ export const PaymentMethod = {
|
|
|
11493
11735
|
Kiinteisto: 'Kiinteisto',
|
|
11494
11736
|
Jpn: 'JPN',
|
|
11495
11737
|
NineLives: 'NineLives',
|
|
11496
|
-
Trade: 'Trade'
|
|
11738
|
+
Trade: 'Trade',
|
|
11739
|
+
Exchange: 'Exchange',
|
|
11740
|
+
Tilisiirto: 'Tilisiirto',
|
|
11741
|
+
LoyaltyPoints: 'LoyaltyPoints'
|
|
11497
11742
|
} as const;
|
|
11498
11743
|
|
|
11499
11744
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
@@ -12175,6 +12420,116 @@ export interface PaymentRefundLineAllocationDto {
|
|
|
12175
12420
|
*/
|
|
12176
12421
|
'quantity': number;
|
|
12177
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
|
+
|
|
12178
12533
|
/**
|
|
12179
12534
|
*
|
|
12180
12535
|
* @export
|
|
@@ -13081,10 +13436,10 @@ export interface PosItemDto {
|
|
|
13081
13436
|
'display_photo'?: boolean;
|
|
13082
13437
|
/**
|
|
13083
13438
|
*
|
|
13084
|
-
* @type {
|
|
13439
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
13085
13440
|
* @memberof PosItemDto
|
|
13086
13441
|
*/
|
|
13087
|
-
'reporting_category'?:
|
|
13442
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
13088
13443
|
/**
|
|
13089
13444
|
* Indicates if the product is inventoried in POS
|
|
13090
13445
|
* @type {boolean}
|
|
@@ -13763,10 +14118,10 @@ export interface PosOrderItemDto {
|
|
|
13763
14118
|
'display_photo'?: boolean;
|
|
13764
14119
|
/**
|
|
13765
14120
|
*
|
|
13766
|
-
* @type {
|
|
14121
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
13767
14122
|
* @memberof PosOrderItemDto
|
|
13768
14123
|
*/
|
|
13769
|
-
'reporting_category'?:
|
|
14124
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
13770
14125
|
/**
|
|
13771
14126
|
* Category ID of the item
|
|
13772
14127
|
* @type {number}
|
|
@@ -13788,6 +14143,49 @@ export interface PosOrderItemDto {
|
|
|
13788
14143
|
}
|
|
13789
14144
|
|
|
13790
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
|
+
}
|
|
13791
14189
|
/**
|
|
13792
14190
|
*
|
|
13793
14191
|
* @export
|
|
@@ -16570,6 +16968,25 @@ export const ScopeEnum = {
|
|
|
16570
16968
|
|
|
16571
16969
|
export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
|
|
16572
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
|
+
}
|
|
16573
16990
|
/**
|
|
16574
16991
|
*
|
|
16575
16992
|
* @export
|
|
@@ -16958,6 +17375,33 @@ export const SourceType = {
|
|
|
16958
17375
|
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
16959
17376
|
|
|
16960
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
|
+
|
|
16961
17405
|
/**
|
|
16962
17406
|
*
|
|
16963
17407
|
* @export
|
|
@@ -17627,10 +18071,10 @@ export type TableShape = typeof TableShape[keyof typeof TableShape];
|
|
|
17627
18071
|
|
|
17628
18072
|
export const TableStatus = {
|
|
17629
18073
|
Available: 'AVAILABLE',
|
|
17630
|
-
Occupied: 'OCCUPIED',
|
|
17631
18074
|
Dirty: 'DIRTY',
|
|
17632
18075
|
Blocked: 'BLOCKED',
|
|
17633
|
-
OutOfService: 'OUT_OF_SERVICE'
|
|
18076
|
+
OutOfService: 'OUT_OF_SERVICE',
|
|
18077
|
+
Occupied: 'OCCUPIED'
|
|
17634
18078
|
} as const;
|
|
17635
18079
|
|
|
17636
18080
|
export type TableStatus = typeof TableStatus[keyof typeof TableStatus];
|
|
@@ -20320,7 +20764,10 @@ export const NameEnum = {
|
|
|
20320
20764
|
Kiinteisto: 'Kiinteisto',
|
|
20321
20765
|
Jpn: 'JPN',
|
|
20322
20766
|
NineLives: 'NineLives',
|
|
20323
|
-
Trade: 'Trade'
|
|
20767
|
+
Trade: 'Trade',
|
|
20768
|
+
Exchange: 'Exchange',
|
|
20769
|
+
Tilisiirto: 'Tilisiirto',
|
|
20770
|
+
LoyaltyPoints: 'LoyaltyPoints'
|
|
20324
20771
|
} as const;
|
|
20325
20772
|
|
|
20326
20773
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
@@ -21430,46 +21877,6 @@ export interface VivaPaymentIntent {
|
|
|
21430
21877
|
'skipSurcharge': boolean;
|
|
21431
21878
|
}
|
|
21432
21879
|
|
|
21433
|
-
export const CurrencyCodeEnum = {
|
|
21434
|
-
_978: '978',
|
|
21435
|
-
_840: '840',
|
|
21436
|
-
_826: '826',
|
|
21437
|
-
_392: '392',
|
|
21438
|
-
_036: '036',
|
|
21439
|
-
_124: '124',
|
|
21440
|
-
_756: '756',
|
|
21441
|
-
_156: '156',
|
|
21442
|
-
_344: '344',
|
|
21443
|
-
_554: '554',
|
|
21444
|
-
_752: '752',
|
|
21445
|
-
_410: '410',
|
|
21446
|
-
_702: '702',
|
|
21447
|
-
_578: '578',
|
|
21448
|
-
_484: '484',
|
|
21449
|
-
_356: '356',
|
|
21450
|
-
_643: '643',
|
|
21451
|
-
_710: '710',
|
|
21452
|
-
_949: '949',
|
|
21453
|
-
_986: '986',
|
|
21454
|
-
_901: '901',
|
|
21455
|
-
_208: '208',
|
|
21456
|
-
_985: '985',
|
|
21457
|
-
_764: '764',
|
|
21458
|
-
_360: '360',
|
|
21459
|
-
_348: '348',
|
|
21460
|
-
_203: '203',
|
|
21461
|
-
_376: '376',
|
|
21462
|
-
_152: '152',
|
|
21463
|
-
_608: '608',
|
|
21464
|
-
_784: '784',
|
|
21465
|
-
_170: '170',
|
|
21466
|
-
_682: '682',
|
|
21467
|
-
_458: '458',
|
|
21468
|
-
_946: '946'
|
|
21469
|
-
} as const;
|
|
21470
|
-
|
|
21471
|
-
export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
|
|
21472
|
-
|
|
21473
21880
|
/**
|
|
21474
21881
|
*
|
|
21475
21882
|
* @export
|
|
@@ -35153,6 +35560,42 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
35153
35560
|
options: localVarRequestOptions,
|
|
35154
35561
|
};
|
|
35155
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
|
+
},
|
|
35156
35599
|
/**
|
|
35157
35600
|
*
|
|
35158
35601
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35423,6 +35866,17 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
35423
35866
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getParkedPosOrderV2(businessId, options);
|
|
35424
35867
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35425
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
|
+
},
|
|
35426
35880
|
/**
|
|
35427
35881
|
*
|
|
35428
35882
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35561,6 +36015,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
35561
36015
|
getParkedPosOrderV2(businessId: string, options?: any): AxiosPromise<Array<PosOrderDto>> {
|
|
35562
36016
|
return localVarFp.getParkedPosOrderV2(businessId, options).then((request) => request(axios, basePath));
|
|
35563
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
|
+
},
|
|
35564
36028
|
/**
|
|
35565
36029
|
*
|
|
35566
36030
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35693,6 +36157,16 @@ export interface OrdersApiInterface {
|
|
|
35693
36157
|
*/
|
|
35694
36158
|
getParkedPosOrderV2(businessId: string, options?: AxiosRequestConfig): AxiosPromise<Array<PosOrderDto>>;
|
|
35695
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
|
+
|
|
35696
36170
|
/**
|
|
35697
36171
|
*
|
|
35698
36172
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -35839,6 +36313,18 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
|
|
|
35839
36313
|
return OrdersApiFp(this.configuration).getParkedPosOrderV2(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
35840
36314
|
}
|
|
35841
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
|
+
|
|
35842
36328
|
/**
|
|
35843
36329
|
*
|
|
35844
36330
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -37248,6 +37734,531 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
37248
37734
|
}
|
|
37249
37735
|
|
|
37250
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
|
+
|
|
37251
38262
|
/**
|
|
37252
38263
|
* PluginApi - axios parameter creator
|
|
37253
38264
|
* @export
|
|
@@ -41908,14 +42919,261 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41908
42919
|
},
|
|
41909
42920
|
/**
|
|
41910
42921
|
*
|
|
41911
|
-
* @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
|
|
41912
43170
|
* @param {*} [options] Override http request option.
|
|
41913
43171
|
* @throws {RequiredError}
|
|
41914
43172
|
*/
|
|
41915
|
-
|
|
41916
|
-
// verify required parameter '
|
|
41917
|
-
assertParamExists('
|
|
41918
|
-
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`;
|
|
41919
43177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41920
43178
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41921
43179
|
let baseOptions;
|
|
@@ -41934,124 +43192,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41934
43192
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41935
43193
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41936
43194
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41937
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
41938
|
-
|
|
41939
|
-
return {
|
|
41940
|
-
url: toPathString(localVarUrlObj),
|
|
41941
|
-
options: localVarRequestOptions,
|
|
41942
|
-
};
|
|
41943
|
-
},
|
|
41944
|
-
/**
|
|
41945
|
-
*
|
|
41946
|
-
* @summary Handle Supabase employee sync webhook
|
|
41947
|
-
* @param {*} [options] Override http request option.
|
|
41948
|
-
* @throws {RequiredError}
|
|
41949
|
-
*/
|
|
41950
|
-
handleLoadEmployee: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41951
|
-
const localVarPath = `/api/webhook/load-employee`;
|
|
41952
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41953
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41954
|
-
let baseOptions;
|
|
41955
|
-
if (configuration) {
|
|
41956
|
-
baseOptions = configuration.baseOptions;
|
|
41957
|
-
}
|
|
41958
|
-
|
|
41959
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41960
|
-
const localVarHeaderParameter = {} as any;
|
|
41961
|
-
const localVarQueryParameter = {} as any;
|
|
41962
|
-
|
|
41963
|
-
|
|
41964
|
-
|
|
41965
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41966
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41967
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41968
|
-
|
|
41969
|
-
return {
|
|
41970
|
-
url: toPathString(localVarUrlObj),
|
|
41971
|
-
options: localVarRequestOptions,
|
|
41972
|
-
};
|
|
41973
|
-
},
|
|
41974
|
-
/**
|
|
41975
|
-
*
|
|
41976
|
-
* @param {*} [options] Override http request option.
|
|
41977
|
-
* @throws {RequiredError}
|
|
41978
|
-
*/
|
|
41979
|
-
handleNetsEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41980
|
-
const localVarPath = `/api/webhook/nets`;
|
|
41981
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41982
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41983
|
-
let baseOptions;
|
|
41984
|
-
if (configuration) {
|
|
41985
|
-
baseOptions = configuration.baseOptions;
|
|
41986
|
-
}
|
|
41987
|
-
|
|
41988
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41989
|
-
const localVarHeaderParameter = {} as any;
|
|
41990
|
-
const localVarQueryParameter = {} as any;
|
|
41991
|
-
|
|
41992
|
-
|
|
41993
|
-
|
|
41994
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41995
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41996
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41997
|
-
|
|
41998
|
-
return {
|
|
41999
|
-
url: toPathString(localVarUrlObj),
|
|
42000
|
-
options: localVarRequestOptions,
|
|
42001
|
-
};
|
|
42002
|
-
},
|
|
42003
|
-
/**
|
|
42004
|
-
*
|
|
42005
|
-
* @param {*} [options] Override http request option.
|
|
42006
|
-
* @throws {RequiredError}
|
|
42007
|
-
*/
|
|
42008
|
-
handleNetsEventsV2: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42009
|
-
const localVarPath = `/api/webhook/v2/nets`;
|
|
42010
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42011
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42012
|
-
let baseOptions;
|
|
42013
|
-
if (configuration) {
|
|
42014
|
-
baseOptions = configuration.baseOptions;
|
|
42015
|
-
}
|
|
42016
|
-
|
|
42017
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42018
|
-
const localVarHeaderParameter = {} as any;
|
|
42019
|
-
const localVarQueryParameter = {} as any;
|
|
42020
|
-
|
|
42021
|
-
|
|
42022
|
-
|
|
42023
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42024
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42025
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42026
|
-
|
|
42027
|
-
return {
|
|
42028
|
-
url: toPathString(localVarUrlObj),
|
|
42029
|
-
options: localVarRequestOptions,
|
|
42030
|
-
};
|
|
42031
|
-
},
|
|
42032
|
-
/**
|
|
42033
|
-
*
|
|
42034
|
-
* @param {*} [options] Override http request option.
|
|
42035
|
-
* @throws {RequiredError}
|
|
42036
|
-
*/
|
|
42037
|
-
handleNetsRefundEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42038
|
-
const localVarPath = `/api/webhook/nets/refund`;
|
|
42039
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42040
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42041
|
-
let baseOptions;
|
|
42042
|
-
if (configuration) {
|
|
42043
|
-
baseOptions = configuration.baseOptions;
|
|
42044
|
-
}
|
|
42045
|
-
|
|
42046
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42047
|
-
const localVarHeaderParameter = {} as any;
|
|
42048
|
-
const localVarQueryParameter = {} as any;
|
|
42049
|
-
|
|
42050
|
-
|
|
42051
|
-
|
|
42052
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42053
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42054
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43195
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
42055
43196
|
|
|
42056
43197
|
return {
|
|
42057
43198
|
url: toPathString(localVarUrlObj),
|
|
@@ -42059,16 +43200,16 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42059
43200
|
};
|
|
42060
43201
|
},
|
|
42061
43202
|
/**
|
|
42062
|
-
*
|
|
42063
|
-
* @summary Handle
|
|
42064
|
-
* @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
|
|
42065
43206
|
* @param {*} [options] Override http request option.
|
|
42066
43207
|
* @throws {RequiredError}
|
|
42067
43208
|
*/
|
|
42068
|
-
|
|
42069
|
-
// verify required parameter '
|
|
42070
|
-
assertParamExists('
|
|
42071
|
-
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`;
|
|
42072
43213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42073
43214
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42074
43215
|
let baseOptions;
|
|
@@ -42087,36 +43228,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42087
43228
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42088
43229
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42089
43230
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42090
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
42091
|
-
|
|
42092
|
-
return {
|
|
42093
|
-
url: toPathString(localVarUrlObj),
|
|
42094
|
-
options: localVarRequestOptions,
|
|
42095
|
-
};
|
|
42096
|
-
},
|
|
42097
|
-
/**
|
|
42098
|
-
*
|
|
42099
|
-
* @param {*} [options] Override http request option.
|
|
42100
|
-
* @throws {RequiredError}
|
|
42101
|
-
*/
|
|
42102
|
-
handleRoleWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42103
|
-
const localVarPath = `/api/webhook/add-roles`;
|
|
42104
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42105
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42106
|
-
let baseOptions;
|
|
42107
|
-
if (configuration) {
|
|
42108
|
-
baseOptions = configuration.baseOptions;
|
|
42109
|
-
}
|
|
42110
|
-
|
|
42111
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42112
|
-
const localVarHeaderParameter = {} as any;
|
|
42113
|
-
const localVarQueryParameter = {} as any;
|
|
42114
|
-
|
|
42115
|
-
|
|
42116
|
-
|
|
42117
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42118
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42119
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43231
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
42120
43232
|
|
|
42121
43233
|
return {
|
|
42122
43234
|
url: toPathString(localVarUrlObj),
|
|
@@ -42128,8 +43240,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42128
43240
|
* @param {*} [options] Override http request option.
|
|
42129
43241
|
* @throws {RequiredError}
|
|
42130
43242
|
*/
|
|
42131
|
-
|
|
42132
|
-
const localVarPath = `/api/webhook/
|
|
43243
|
+
handleWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43244
|
+
const localVarPath = `/api/webhook/ship-day`;
|
|
42133
43245
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42134
43246
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42135
43247
|
let baseOptions;
|
|
@@ -42154,15 +43266,11 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42154
43266
|
},
|
|
42155
43267
|
/**
|
|
42156
43268
|
*
|
|
42157
|
-
* @summary Handle Viva payment webhook events
|
|
42158
|
-
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
42159
43269
|
* @param {*} [options] Override http request option.
|
|
42160
43270
|
* @throws {RequiredError}
|
|
42161
43271
|
*/
|
|
42162
|
-
|
|
42163
|
-
|
|
42164
|
-
assertParamExists('handleVivaEvents', 'vivaWebhookPayloadDto', vivaWebhookPayloadDto)
|
|
42165
|
-
const localVarPath = `/api/webhook/viva/verification`;
|
|
43272
|
+
handleWoltDriveEvent: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43273
|
+
const localVarPath = `/api/webhook/wolt-drive/event`;
|
|
42166
43274
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42167
43275
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42168
43276
|
let baseOptions;
|
|
@@ -42176,12 +43284,9 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42176
43284
|
|
|
42177
43285
|
|
|
42178
43286
|
|
|
42179
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42180
|
-
|
|
42181
43287
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42182
43288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42183
43289
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42184
|
-
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
42185
43290
|
|
|
42186
43291
|
return {
|
|
42187
43292
|
url: toPathString(localVarUrlObj),
|
|
@@ -42190,11 +43295,15 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42190
43295
|
},
|
|
42191
43296
|
/**
|
|
42192
43297
|
*
|
|
43298
|
+
* @param {string} country
|
|
42193
43299
|
* @param {*} [options] Override http request option.
|
|
42194
43300
|
* @throws {RequiredError}
|
|
42195
43301
|
*/
|
|
42196
|
-
|
|
42197
|
-
|
|
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)));
|
|
42198
43307
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42199
43308
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42200
43309
|
let baseOptions;
|
|
@@ -42222,8 +43331,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42222
43331
|
* @param {*} [options] Override http request option.
|
|
42223
43332
|
* @throws {RequiredError}
|
|
42224
43333
|
*/
|
|
42225
|
-
|
|
42226
|
-
const localVarPath = `/api/webhook/
|
|
43334
|
+
handleWorldlineEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43335
|
+
const localVarPath = `/api/webhook/worldline/events`;
|
|
42227
43336
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42228
43337
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42229
43338
|
let baseOptions;
|
|
@@ -42248,15 +43357,14 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42248
43357
|
},
|
|
42249
43358
|
/**
|
|
42250
43359
|
*
|
|
42251
|
-
* @param {
|
|
43360
|
+
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
42252
43361
|
* @param {*} [options] Override http request option.
|
|
42253
43362
|
* @throws {RequiredError}
|
|
42254
43363
|
*/
|
|
42255
|
-
|
|
42256
|
-
// verify required parameter '
|
|
42257
|
-
assertParamExists('
|
|
42258
|
-
const localVarPath = `/api/webhook/
|
|
42259
|
-
.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`;
|
|
42260
43368
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42261
43369
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42262
43370
|
let baseOptions;
|
|
@@ -42270,38 +43378,12 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42270
43378
|
|
|
42271
43379
|
|
|
42272
43380
|
|
|
42273
|
-
|
|
42274
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42275
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42276
|
-
|
|
42277
|
-
return {
|
|
42278
|
-
url: toPathString(localVarUrlObj),
|
|
42279
|
-
options: localVarRequestOptions,
|
|
42280
|
-
};
|
|
42281
|
-
},
|
|
42282
|
-
/**
|
|
42283
|
-
*
|
|
42284
|
-
* @param {*} [options] Override http request option.
|
|
42285
|
-
* @throws {RequiredError}
|
|
42286
|
-
*/
|
|
42287
|
-
handleWorldlineEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42288
|
-
const localVarPath = `/api/webhook/worldline/events`;
|
|
42289
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42290
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42291
|
-
let baseOptions;
|
|
42292
|
-
if (configuration) {
|
|
42293
|
-
baseOptions = configuration.baseOptions;
|
|
42294
|
-
}
|
|
42295
|
-
|
|
42296
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42297
|
-
const localVarHeaderParameter = {} as any;
|
|
42298
|
-
const localVarQueryParameter = {} as any;
|
|
42299
|
-
|
|
43381
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42300
43382
|
|
|
42301
|
-
|
|
42302
43383
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42303
43384
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42304
43385
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43386
|
+
localVarRequestOptions.data = serializeDataIfNeeded(processKioskRecoveryQueueDto, localVarRequestOptions, configuration)
|
|
42305
43387
|
|
|
42306
43388
|
return {
|
|
42307
43389
|
url: toPathString(localVarUrlObj),
|
|
@@ -42310,14 +43392,11 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42310
43392
|
},
|
|
42311
43393
|
/**
|
|
42312
43394
|
*
|
|
42313
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
42314
43395
|
* @param {*} [options] Override http request option.
|
|
42315
43396
|
* @throws {RequiredError}
|
|
42316
43397
|
*/
|
|
42317
|
-
|
|
42318
|
-
|
|
42319
|
-
assertParamExists('processKioskRecoveryQueue', 'processKioskRecoveryQueueDto', processKioskRecoveryQueueDto)
|
|
42320
|
-
const localVarPath = `/api/webhook/kiosk/recovery/process`;
|
|
43398
|
+
updateWoltProduct: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43399
|
+
const localVarPath = `/api/webhook/wolt/product/edit`;
|
|
42321
43400
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42322
43401
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42323
43402
|
let baseOptions;
|
|
@@ -42331,12 +43410,9 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42331
43410
|
|
|
42332
43411
|
|
|
42333
43412
|
|
|
42334
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42335
|
-
|
|
42336
43413
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42337
43414
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42338
43415
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42339
|
-
localVarRequestOptions.data = serializeDataIfNeeded(processKioskRecoveryQueueDto, localVarRequestOptions, configuration)
|
|
42340
43416
|
|
|
42341
43417
|
return {
|
|
42342
43418
|
url: toPathString(localVarUrlObj),
|
|
@@ -42344,12 +43420,13 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42344
43420
|
};
|
|
42345
43421
|
},
|
|
42346
43422
|
/**
|
|
42347
|
-
*
|
|
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
|
|
42348
43425
|
* @param {*} [options] Override http request option.
|
|
42349
43426
|
* @throws {RequiredError}
|
|
42350
43427
|
*/
|
|
42351
|
-
|
|
42352
|
-
const localVarPath = `/api/webhook/
|
|
43428
|
+
verifyVivaSessionWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43429
|
+
const localVarPath = `/api/webhook/viva/payments`;
|
|
42353
43430
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42354
43431
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42355
43432
|
let baseOptions;
|
|
@@ -42357,7 +43434,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42357
43434
|
baseOptions = configuration.baseOptions;
|
|
42358
43435
|
}
|
|
42359
43436
|
|
|
42360
|
-
const localVarRequestOptions = { method: '
|
|
43437
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
42361
43438
|
const localVarHeaderParameter = {} as any;
|
|
42362
43439
|
const localVarQueryParameter = {} as any;
|
|
42363
43440
|
|
|
@@ -42516,6 +43593,17 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
42516
43593
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleVivaEvents(vivaWebhookPayloadDto, options);
|
|
42517
43594
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42518
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
|
+
},
|
|
42519
43607
|
/**
|
|
42520
43608
|
*
|
|
42521
43609
|
* @param {*} [options] Override http request option.
|
|
@@ -42572,6 +43660,16 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
42572
43660
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWoltProduct(options);
|
|
42573
43661
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42574
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
|
+
},
|
|
42575
43673
|
/**
|
|
42576
43674
|
*
|
|
42577
43675
|
* @param {*} [options] Override http request option.
|
|
@@ -42685,6 +43783,16 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
42685
43783
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void> {
|
|
42686
43784
|
return localVarFp.handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
|
|
42687
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
|
+
},
|
|
42688
43796
|
/**
|
|
42689
43797
|
*
|
|
42690
43798
|
* @param {*} [options] Override http request option.
|
|
@@ -42735,6 +43843,15 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
42735
43843
|
updateWoltProduct(options?: any): AxiosPromise<void> {
|
|
42736
43844
|
return localVarFp.updateWoltProduct(options).then((request) => request(axios, basePath));
|
|
42737
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
|
+
},
|
|
42738
43855
|
/**
|
|
42739
43856
|
*
|
|
42740
43857
|
* @param {*} [options] Override http request option.
|
|
@@ -42846,6 +43963,16 @@ export interface WebhookApiInterface {
|
|
|
42846
43963
|
*/
|
|
42847
43964
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
42848
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
|
+
|
|
42849
43976
|
/**
|
|
42850
43977
|
*
|
|
42851
43978
|
* @param {*} [options] Override http request option.
|
|
@@ -42896,6 +44023,15 @@ export interface WebhookApiInterface {
|
|
|
42896
44023
|
*/
|
|
42897
44024
|
updateWoltProduct(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
42898
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
|
+
|
|
42899
44035
|
/**
|
|
42900
44036
|
*
|
|
42901
44037
|
* @param {*} [options] Override http request option.
|
|
@@ -43029,6 +44165,18 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
43029
44165
|
return WebhookApiFp(this.configuration).handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(this.axios, this.basePath));
|
|
43030
44166
|
}
|
|
43031
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
|
+
|
|
43032
44180
|
/**
|
|
43033
44181
|
*
|
|
43034
44182
|
* @param {*} [options] Override http request option.
|
|
@@ -43091,6 +44239,17 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
43091
44239
|
return WebhookApiFp(this.configuration).updateWoltProduct(options).then((request) => request(this.axios, this.basePath));
|
|
43092
44240
|
}
|
|
43093
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
|
+
|
|
43094
44253
|
/**
|
|
43095
44254
|
*
|
|
43096
44255
|
* @param {*} [options] Override http request option.
|