@munchi_oy/core 1.9.39 → 1.9.41
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 +954 -107
- 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 +1552 -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,610 @@ 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
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
37890
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
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
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
37926
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
37927
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
37928
|
+
* @param {*} [options] Override http request option.
|
|
37929
|
+
* @throws {RequiredError}
|
|
37930
|
+
*/
|
|
37931
|
+
revertVivaSession: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37932
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
37933
|
+
assertParamExists('revertVivaSession', 'reverseSessionDto', reverseSessionDto)
|
|
37934
|
+
const localVarPath = `/api/v1/payment-session/revert`;
|
|
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
|
+
* 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.
|
|
37962
|
+
* @summary Void a manual payment session
|
|
37963
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
37964
|
+
* @param {*} [options] Override http request option.
|
|
37965
|
+
* @throws {RequiredError}
|
|
37966
|
+
*/
|
|
37967
|
+
voidManualPayment: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37968
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
37969
|
+
assertParamExists('voidManualPayment', 'reverseSessionDto', reverseSessionDto)
|
|
37970
|
+
const localVarPath = `/api/v1/payment-session/void`;
|
|
37971
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37972
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37973
|
+
let baseOptions;
|
|
37974
|
+
if (configuration) {
|
|
37975
|
+
baseOptions = configuration.baseOptions;
|
|
37976
|
+
}
|
|
37977
|
+
|
|
37978
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37979
|
+
const localVarHeaderParameter = {} as any;
|
|
37980
|
+
const localVarQueryParameter = {} as any;
|
|
37981
|
+
|
|
37982
|
+
|
|
37983
|
+
|
|
37984
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37985
|
+
|
|
37986
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37987
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37988
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37989
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseSessionDto, localVarRequestOptions, configuration)
|
|
37990
|
+
|
|
37991
|
+
return {
|
|
37992
|
+
url: toPathString(localVarUrlObj),
|
|
37993
|
+
options: localVarRequestOptions,
|
|
37994
|
+
};
|
|
37995
|
+
},
|
|
37996
|
+
}
|
|
37997
|
+
};
|
|
37998
|
+
|
|
37999
|
+
/**
|
|
38000
|
+
* PaymentSessionApi - functional programming interface
|
|
38001
|
+
* @export
|
|
38002
|
+
*/
|
|
38003
|
+
export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
38004
|
+
const localVarAxiosParamCreator = PaymentSessionApiAxiosParamCreator(configuration)
|
|
38005
|
+
return {
|
|
38006
|
+
/**
|
|
38007
|
+
* 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.
|
|
38008
|
+
* @summary Cancel an in-flight Viva payment session
|
|
38009
|
+
* @param {string} clientToken
|
|
38010
|
+
* @param {*} [options] Override http request option.
|
|
38011
|
+
* @throws {RequiredError}
|
|
38012
|
+
*/
|
|
38013
|
+
async cancelVivaSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38014
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelVivaSession(clientToken, options);
|
|
38015
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38016
|
+
},
|
|
38017
|
+
/**
|
|
38018
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
38019
|
+
* @summary Get payment session status by clientToken
|
|
38020
|
+
* @param {string} clientToken
|
|
38021
|
+
* @param {*} [options] Override http request option.
|
|
38022
|
+
* @throws {RequiredError}
|
|
38023
|
+
*/
|
|
38024
|
+
async getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38025
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentSession(clientToken, options);
|
|
38026
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38027
|
+
},
|
|
38028
|
+
/**
|
|
38029
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38030
|
+
* @summary Initiate a Viva payment session
|
|
38031
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
38032
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
38033
|
+
* @param {*} [options] Override http request option.
|
|
38034
|
+
* @throws {RequiredError}
|
|
38035
|
+
*/
|
|
38036
|
+
async initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateVivaSessionResponseDto>> {
|
|
38037
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options);
|
|
38038
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38039
|
+
},
|
|
38040
|
+
/**
|
|
38041
|
+
* 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.
|
|
38042
|
+
* @summary Record a manual payment session
|
|
38043
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38044
|
+
* @param {*} [options] Override http request option.
|
|
38045
|
+
* @throws {RequiredError}
|
|
38046
|
+
*/
|
|
38047
|
+
async recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recordManualPayment(createManualSessionDto, options);
|
|
38049
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38050
|
+
},
|
|
38051
|
+
/**
|
|
38052
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
38053
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
38054
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38055
|
+
* @param {*} [options] Override http request option.
|
|
38056
|
+
* @throws {RequiredError}
|
|
38057
|
+
*/
|
|
38058
|
+
async refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38059
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaSession(reverseSessionDto, options);
|
|
38060
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38061
|
+
},
|
|
38062
|
+
/**
|
|
38063
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
38064
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
38065
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38066
|
+
* @param {*} [options] Override http request option.
|
|
38067
|
+
* @throws {RequiredError}
|
|
38068
|
+
*/
|
|
38069
|
+
async revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38070
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revertVivaSession(reverseSessionDto, options);
|
|
38071
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38072
|
+
},
|
|
38073
|
+
/**
|
|
38074
|
+
* 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.
|
|
38075
|
+
* @summary Void a manual payment session
|
|
38076
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38077
|
+
* @param {*} [options] Override http request option.
|
|
38078
|
+
* @throws {RequiredError}
|
|
38079
|
+
*/
|
|
38080
|
+
async voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
38081
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.voidManualPayment(reverseSessionDto, options);
|
|
38082
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38083
|
+
},
|
|
38084
|
+
}
|
|
38085
|
+
};
|
|
38086
|
+
|
|
38087
|
+
/**
|
|
38088
|
+
* PaymentSessionApi - factory interface
|
|
38089
|
+
* @export
|
|
38090
|
+
*/
|
|
38091
|
+
export const PaymentSessionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
38092
|
+
const localVarFp = PaymentSessionApiFp(configuration)
|
|
38093
|
+
return {
|
|
38094
|
+
/**
|
|
38095
|
+
* 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.
|
|
38096
|
+
* @summary Cancel an in-flight Viva payment session
|
|
38097
|
+
* @param {string} clientToken
|
|
38098
|
+
* @param {*} [options] Override http request option.
|
|
38099
|
+
* @throws {RequiredError}
|
|
38100
|
+
*/
|
|
38101
|
+
cancelVivaSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38102
|
+
return localVarFp.cancelVivaSession(clientToken, options).then((request) => request(axios, basePath));
|
|
38103
|
+
},
|
|
38104
|
+
/**
|
|
38105
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
38106
|
+
* @summary Get payment session status by clientToken
|
|
38107
|
+
* @param {string} clientToken
|
|
38108
|
+
* @param {*} [options] Override http request option.
|
|
38109
|
+
* @throws {RequiredError}
|
|
38110
|
+
*/
|
|
38111
|
+
getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38112
|
+
return localVarFp.getPaymentSession(clientToken, options).then((request) => request(axios, basePath));
|
|
38113
|
+
},
|
|
38114
|
+
/**
|
|
38115
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38116
|
+
* @summary Initiate a Viva payment session
|
|
38117
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
38118
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
38119
|
+
* @param {*} [options] Override http request option.
|
|
38120
|
+
* @throws {RequiredError}
|
|
38121
|
+
*/
|
|
38122
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateVivaSessionResponseDto> {
|
|
38123
|
+
return localVarFp.initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options).then((request) => request(axios, basePath));
|
|
38124
|
+
},
|
|
38125
|
+
/**
|
|
38126
|
+
* 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.
|
|
38127
|
+
* @summary Record a manual payment session
|
|
38128
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38129
|
+
* @param {*} [options] Override http request option.
|
|
38130
|
+
* @throws {RequiredError}
|
|
38131
|
+
*/
|
|
38132
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38133
|
+
return localVarFp.recordManualPayment(createManualSessionDto, options).then((request) => request(axios, basePath));
|
|
38134
|
+
},
|
|
38135
|
+
/**
|
|
38136
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
38137
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
38138
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38139
|
+
* @param {*} [options] Override http request option.
|
|
38140
|
+
* @throws {RequiredError}
|
|
38141
|
+
*/
|
|
38142
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38143
|
+
return localVarFp.refundVivaSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
38144
|
+
},
|
|
38145
|
+
/**
|
|
38146
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
38147
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
38148
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38149
|
+
* @param {*} [options] Override http request option.
|
|
38150
|
+
* @throws {RequiredError}
|
|
38151
|
+
*/
|
|
38152
|
+
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38153
|
+
return localVarFp.revertVivaSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
38154
|
+
},
|
|
38155
|
+
/**
|
|
38156
|
+
* 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.
|
|
38157
|
+
* @summary Void a manual payment session
|
|
38158
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38159
|
+
* @param {*} [options] Override http request option.
|
|
38160
|
+
* @throws {RequiredError}
|
|
38161
|
+
*/
|
|
38162
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38163
|
+
return localVarFp.voidManualPayment(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
38164
|
+
},
|
|
38165
|
+
};
|
|
38166
|
+
};
|
|
38167
|
+
|
|
38168
|
+
/**
|
|
38169
|
+
* PaymentSessionApi - interface
|
|
38170
|
+
* @export
|
|
38171
|
+
* @interface PaymentSessionApi
|
|
38172
|
+
*/
|
|
38173
|
+
export interface PaymentSessionApiInterface {
|
|
38174
|
+
/**
|
|
38175
|
+
* 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.
|
|
38176
|
+
* @summary Cancel an in-flight Viva payment session
|
|
38177
|
+
* @param {string} clientToken
|
|
38178
|
+
* @param {*} [options] Override http request option.
|
|
38179
|
+
* @throws {RequiredError}
|
|
38180
|
+
* @memberof PaymentSessionApiInterface
|
|
38181
|
+
*/
|
|
38182
|
+
cancelVivaSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38183
|
+
|
|
38184
|
+
/**
|
|
38185
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
38186
|
+
* @summary Get payment session status by clientToken
|
|
38187
|
+
* @param {string} clientToken
|
|
38188
|
+
* @param {*} [options] Override http request option.
|
|
38189
|
+
* @throws {RequiredError}
|
|
38190
|
+
* @memberof PaymentSessionApiInterface
|
|
38191
|
+
*/
|
|
38192
|
+
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38193
|
+
|
|
38194
|
+
/**
|
|
38195
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38196
|
+
* @summary Initiate a Viva payment session
|
|
38197
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
38198
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
38199
|
+
* @param {*} [options] Override http request option.
|
|
38200
|
+
* @throws {RequiredError}
|
|
38201
|
+
* @memberof PaymentSessionApiInterface
|
|
38202
|
+
*/
|
|
38203
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
38204
|
+
|
|
38205
|
+
/**
|
|
38206
|
+
* 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.
|
|
38207
|
+
* @summary Record a manual payment session
|
|
38208
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38209
|
+
* @param {*} [options] Override http request option.
|
|
38210
|
+
* @throws {RequiredError}
|
|
38211
|
+
* @memberof PaymentSessionApiInterface
|
|
38212
|
+
*/
|
|
38213
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38214
|
+
|
|
38215
|
+
/**
|
|
38216
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
38217
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
38218
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38219
|
+
* @param {*} [options] Override http request option.
|
|
38220
|
+
* @throws {RequiredError}
|
|
38221
|
+
* @memberof PaymentSessionApiInterface
|
|
38222
|
+
*/
|
|
38223
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38224
|
+
|
|
38225
|
+
/**
|
|
38226
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
38227
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
38228
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38229
|
+
* @param {*} [options] Override http request option.
|
|
38230
|
+
* @throws {RequiredError}
|
|
38231
|
+
* @memberof PaymentSessionApiInterface
|
|
38232
|
+
*/
|
|
38233
|
+
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38234
|
+
|
|
38235
|
+
/**
|
|
38236
|
+
* 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.
|
|
38237
|
+
* @summary Void a manual payment session
|
|
38238
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38239
|
+
* @param {*} [options] Override http request option.
|
|
38240
|
+
* @throws {RequiredError}
|
|
38241
|
+
* @memberof PaymentSessionApiInterface
|
|
38242
|
+
*/
|
|
38243
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38244
|
+
|
|
38245
|
+
}
|
|
38246
|
+
|
|
38247
|
+
/**
|
|
38248
|
+
* PaymentSessionApi - object-oriented interface
|
|
38249
|
+
* @export
|
|
38250
|
+
* @class PaymentSessionApi
|
|
38251
|
+
* @extends {BaseAPI}
|
|
38252
|
+
*/
|
|
38253
|
+
export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInterface {
|
|
38254
|
+
/**
|
|
38255
|
+
* 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.
|
|
38256
|
+
* @summary Cancel an in-flight Viva payment session
|
|
38257
|
+
* @param {string} clientToken
|
|
38258
|
+
* @param {*} [options] Override http request option.
|
|
38259
|
+
* @throws {RequiredError}
|
|
38260
|
+
* @memberof PaymentSessionApi
|
|
38261
|
+
*/
|
|
38262
|
+
public cancelVivaSession(clientToken: string, options?: AxiosRequestConfig) {
|
|
38263
|
+
return PaymentSessionApiFp(this.configuration).cancelVivaSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
38264
|
+
}
|
|
38265
|
+
|
|
38266
|
+
/**
|
|
38267
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
38268
|
+
* @summary Get payment session status by clientToken
|
|
38269
|
+
* @param {string} clientToken
|
|
38270
|
+
* @param {*} [options] Override http request option.
|
|
38271
|
+
* @throws {RequiredError}
|
|
38272
|
+
* @memberof PaymentSessionApi
|
|
38273
|
+
*/
|
|
38274
|
+
public getPaymentSession(clientToken: string, options?: AxiosRequestConfig) {
|
|
38275
|
+
return PaymentSessionApiFp(this.configuration).getPaymentSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
38276
|
+
}
|
|
38277
|
+
|
|
38278
|
+
/**
|
|
38279
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38280
|
+
* @summary Initiate a Viva payment session
|
|
38281
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
38282
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
38283
|
+
* @param {*} [options] Override http request option.
|
|
38284
|
+
* @throws {RequiredError}
|
|
38285
|
+
* @memberof PaymentSessionApi
|
|
38286
|
+
*/
|
|
38287
|
+
public initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) {
|
|
38288
|
+
return PaymentSessionApiFp(this.configuration).initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
38289
|
+
}
|
|
38290
|
+
|
|
38291
|
+
/**
|
|
38292
|
+
* 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.
|
|
38293
|
+
* @summary Record a manual payment session
|
|
38294
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
38295
|
+
* @param {*} [options] Override http request option.
|
|
38296
|
+
* @throws {RequiredError}
|
|
38297
|
+
* @memberof PaymentSessionApi
|
|
38298
|
+
*/
|
|
38299
|
+
public recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig) {
|
|
38300
|
+
return PaymentSessionApiFp(this.configuration).recordManualPayment(createManualSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38301
|
+
}
|
|
38302
|
+
|
|
38303
|
+
/**
|
|
38304
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
38305
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
38306
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38307
|
+
* @param {*} [options] Override http request option.
|
|
38308
|
+
* @throws {RequiredError}
|
|
38309
|
+
* @memberof PaymentSessionApi
|
|
38310
|
+
*/
|
|
38311
|
+
public refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
38312
|
+
return PaymentSessionApiFp(this.configuration).refundVivaSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38313
|
+
}
|
|
38314
|
+
|
|
38315
|
+
/**
|
|
38316
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
38317
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
38318
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38319
|
+
* @param {*} [options] Override http request option.
|
|
38320
|
+
* @throws {RequiredError}
|
|
38321
|
+
* @memberof PaymentSessionApi
|
|
38322
|
+
*/
|
|
38323
|
+
public revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
38324
|
+
return PaymentSessionApiFp(this.configuration).revertVivaSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38325
|
+
}
|
|
38326
|
+
|
|
38327
|
+
/**
|
|
38328
|
+
* 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.
|
|
38329
|
+
* @summary Void a manual payment session
|
|
38330
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
38331
|
+
* @param {*} [options] Override http request option.
|
|
38332
|
+
* @throws {RequiredError}
|
|
38333
|
+
* @memberof PaymentSessionApi
|
|
38334
|
+
*/
|
|
38335
|
+
public voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
38336
|
+
return PaymentSessionApiFp(this.configuration).voidManualPayment(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38337
|
+
}
|
|
38338
|
+
}
|
|
38339
|
+
|
|
38340
|
+
|
|
37251
38341
|
/**
|
|
37252
38342
|
* PluginApi - axios parameter creator
|
|
37253
38343
|
* @export
|
|
@@ -41908,14 +42998,261 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41908
42998
|
},
|
|
41909
42999
|
/**
|
|
41910
43000
|
*
|
|
41911
|
-
* @param {OrderUpdateDto} orderUpdateDto
|
|
43001
|
+
* @param {OrderUpdateDto} orderUpdateDto
|
|
43002
|
+
* @param {*} [options] Override http request option.
|
|
43003
|
+
* @throws {RequiredError}
|
|
43004
|
+
*/
|
|
43005
|
+
handleFoodoraEvent: async (orderUpdateDto: OrderUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43006
|
+
// verify required parameter 'orderUpdateDto' is not null or undefined
|
|
43007
|
+
assertParamExists('handleFoodoraEvent', 'orderUpdateDto', orderUpdateDto)
|
|
43008
|
+
const localVarPath = `/api/webhook/order/event`;
|
|
43009
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43010
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43011
|
+
let baseOptions;
|
|
43012
|
+
if (configuration) {
|
|
43013
|
+
baseOptions = configuration.baseOptions;
|
|
43014
|
+
}
|
|
43015
|
+
|
|
43016
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43017
|
+
const localVarHeaderParameter = {} as any;
|
|
43018
|
+
const localVarQueryParameter = {} as any;
|
|
43019
|
+
|
|
43020
|
+
|
|
43021
|
+
|
|
43022
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43023
|
+
|
|
43024
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43025
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43026
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43027
|
+
localVarRequestOptions.data = serializeDataIfNeeded(orderUpdateDto, localVarRequestOptions, configuration)
|
|
43028
|
+
|
|
43029
|
+
return {
|
|
43030
|
+
url: toPathString(localVarUrlObj),
|
|
43031
|
+
options: localVarRequestOptions,
|
|
43032
|
+
};
|
|
43033
|
+
},
|
|
43034
|
+
/**
|
|
43035
|
+
*
|
|
43036
|
+
* @summary Handle Supabase employee sync webhook
|
|
43037
|
+
* @param {*} [options] Override http request option.
|
|
43038
|
+
* @throws {RequiredError}
|
|
43039
|
+
*/
|
|
43040
|
+
handleLoadEmployee: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43041
|
+
const localVarPath = `/api/webhook/load-employee`;
|
|
43042
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43043
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43044
|
+
let baseOptions;
|
|
43045
|
+
if (configuration) {
|
|
43046
|
+
baseOptions = configuration.baseOptions;
|
|
43047
|
+
}
|
|
43048
|
+
|
|
43049
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43050
|
+
const localVarHeaderParameter = {} as any;
|
|
43051
|
+
const localVarQueryParameter = {} as any;
|
|
43052
|
+
|
|
43053
|
+
|
|
43054
|
+
|
|
43055
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43056
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43057
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43058
|
+
|
|
43059
|
+
return {
|
|
43060
|
+
url: toPathString(localVarUrlObj),
|
|
43061
|
+
options: localVarRequestOptions,
|
|
43062
|
+
};
|
|
43063
|
+
},
|
|
43064
|
+
/**
|
|
43065
|
+
*
|
|
43066
|
+
* @param {*} [options] Override http request option.
|
|
43067
|
+
* @throws {RequiredError}
|
|
43068
|
+
*/
|
|
43069
|
+
handleNetsEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43070
|
+
const localVarPath = `/api/webhook/nets`;
|
|
43071
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43072
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43073
|
+
let baseOptions;
|
|
43074
|
+
if (configuration) {
|
|
43075
|
+
baseOptions = configuration.baseOptions;
|
|
43076
|
+
}
|
|
43077
|
+
|
|
43078
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43079
|
+
const localVarHeaderParameter = {} as any;
|
|
43080
|
+
const localVarQueryParameter = {} as any;
|
|
43081
|
+
|
|
43082
|
+
|
|
43083
|
+
|
|
43084
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43085
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43086
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43087
|
+
|
|
43088
|
+
return {
|
|
43089
|
+
url: toPathString(localVarUrlObj),
|
|
43090
|
+
options: localVarRequestOptions,
|
|
43091
|
+
};
|
|
43092
|
+
},
|
|
43093
|
+
/**
|
|
43094
|
+
*
|
|
43095
|
+
* @param {*} [options] Override http request option.
|
|
43096
|
+
* @throws {RequiredError}
|
|
43097
|
+
*/
|
|
43098
|
+
handleNetsEventsV2: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43099
|
+
const localVarPath = `/api/webhook/v2/nets`;
|
|
43100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43102
|
+
let baseOptions;
|
|
43103
|
+
if (configuration) {
|
|
43104
|
+
baseOptions = configuration.baseOptions;
|
|
43105
|
+
}
|
|
43106
|
+
|
|
43107
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43108
|
+
const localVarHeaderParameter = {} as any;
|
|
43109
|
+
const localVarQueryParameter = {} as any;
|
|
43110
|
+
|
|
43111
|
+
|
|
43112
|
+
|
|
43113
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43115
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43116
|
+
|
|
43117
|
+
return {
|
|
43118
|
+
url: toPathString(localVarUrlObj),
|
|
43119
|
+
options: localVarRequestOptions,
|
|
43120
|
+
};
|
|
43121
|
+
},
|
|
43122
|
+
/**
|
|
43123
|
+
*
|
|
43124
|
+
* @param {*} [options] Override http request option.
|
|
43125
|
+
* @throws {RequiredError}
|
|
43126
|
+
*/
|
|
43127
|
+
handleNetsRefundEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43128
|
+
const localVarPath = `/api/webhook/nets/refund`;
|
|
43129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43131
|
+
let baseOptions;
|
|
43132
|
+
if (configuration) {
|
|
43133
|
+
baseOptions = configuration.baseOptions;
|
|
43134
|
+
}
|
|
43135
|
+
|
|
43136
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43137
|
+
const localVarHeaderParameter = {} as any;
|
|
43138
|
+
const localVarQueryParameter = {} as any;
|
|
43139
|
+
|
|
43140
|
+
|
|
43141
|
+
|
|
43142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43145
|
+
|
|
43146
|
+
return {
|
|
43147
|
+
url: toPathString(localVarUrlObj),
|
|
43148
|
+
options: localVarRequestOptions,
|
|
43149
|
+
};
|
|
43150
|
+
},
|
|
43151
|
+
/**
|
|
43152
|
+
*
|
|
43153
|
+
* @summary Handle preorder reminder (triggered by scheduler)
|
|
43154
|
+
* @param {PreOrderReminderDto} preOrderReminderDto
|
|
43155
|
+
* @param {*} [options] Override http request option.
|
|
43156
|
+
* @throws {RequiredError}
|
|
43157
|
+
*/
|
|
43158
|
+
handlePreorderReminder: async (preOrderReminderDto: PreOrderReminderDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43159
|
+
// verify required parameter 'preOrderReminderDto' is not null or undefined
|
|
43160
|
+
assertParamExists('handlePreorderReminder', 'preOrderReminderDto', preOrderReminderDto)
|
|
43161
|
+
const localVarPath = `/api/webhook/preorder-reminder`;
|
|
43162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43164
|
+
let baseOptions;
|
|
43165
|
+
if (configuration) {
|
|
43166
|
+
baseOptions = configuration.baseOptions;
|
|
43167
|
+
}
|
|
43168
|
+
|
|
43169
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43170
|
+
const localVarHeaderParameter = {} as any;
|
|
43171
|
+
const localVarQueryParameter = {} as any;
|
|
43172
|
+
|
|
43173
|
+
|
|
43174
|
+
|
|
43175
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43176
|
+
|
|
43177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43179
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43180
|
+
localVarRequestOptions.data = serializeDataIfNeeded(preOrderReminderDto, localVarRequestOptions, configuration)
|
|
43181
|
+
|
|
43182
|
+
return {
|
|
43183
|
+
url: toPathString(localVarUrlObj),
|
|
43184
|
+
options: localVarRequestOptions,
|
|
43185
|
+
};
|
|
43186
|
+
},
|
|
43187
|
+
/**
|
|
43188
|
+
*
|
|
43189
|
+
* @param {*} [options] Override http request option.
|
|
43190
|
+
* @throws {RequiredError}
|
|
43191
|
+
*/
|
|
43192
|
+
handleRoleWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43193
|
+
const localVarPath = `/api/webhook/add-roles`;
|
|
43194
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43195
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43196
|
+
let baseOptions;
|
|
43197
|
+
if (configuration) {
|
|
43198
|
+
baseOptions = configuration.baseOptions;
|
|
43199
|
+
}
|
|
43200
|
+
|
|
43201
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43202
|
+
const localVarHeaderParameter = {} as any;
|
|
43203
|
+
const localVarQueryParameter = {} as any;
|
|
43204
|
+
|
|
43205
|
+
|
|
43206
|
+
|
|
43207
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43209
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43210
|
+
|
|
43211
|
+
return {
|
|
43212
|
+
url: toPathString(localVarUrlObj),
|
|
43213
|
+
options: localVarRequestOptions,
|
|
43214
|
+
};
|
|
43215
|
+
},
|
|
43216
|
+
/**
|
|
43217
|
+
*
|
|
43218
|
+
* @param {*} [options] Override http request option.
|
|
43219
|
+
* @throws {RequiredError}
|
|
43220
|
+
*/
|
|
43221
|
+
handleShiftWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43222
|
+
const localVarPath = `/api/webhook/add-employee-shifts`;
|
|
43223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43224
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43225
|
+
let baseOptions;
|
|
43226
|
+
if (configuration) {
|
|
43227
|
+
baseOptions = configuration.baseOptions;
|
|
43228
|
+
}
|
|
43229
|
+
|
|
43230
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43231
|
+
const localVarHeaderParameter = {} as any;
|
|
43232
|
+
const localVarQueryParameter = {} as any;
|
|
43233
|
+
|
|
43234
|
+
|
|
43235
|
+
|
|
43236
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43237
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43238
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43239
|
+
|
|
43240
|
+
return {
|
|
43241
|
+
url: toPathString(localVarUrlObj),
|
|
43242
|
+
options: localVarRequestOptions,
|
|
43243
|
+
};
|
|
43244
|
+
},
|
|
43245
|
+
/**
|
|
43246
|
+
*
|
|
43247
|
+
* @summary Handle Viva payment webhook events
|
|
43248
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
41912
43249
|
* @param {*} [options] Override http request option.
|
|
41913
43250
|
* @throws {RequiredError}
|
|
41914
43251
|
*/
|
|
41915
|
-
|
|
41916
|
-
// verify required parameter '
|
|
41917
|
-
assertParamExists('
|
|
41918
|
-
const localVarPath = `/api/webhook/
|
|
43252
|
+
handleVivaEvents: async (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43253
|
+
// verify required parameter 'vivaWebhookPayloadDto' is not null or undefined
|
|
43254
|
+
assertParamExists('handleVivaEvents', 'vivaWebhookPayloadDto', vivaWebhookPayloadDto)
|
|
43255
|
+
const localVarPath = `/api/webhook/viva/verification`;
|
|
41919
43256
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41920
43257
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41921
43258
|
let baseOptions;
|
|
@@ -41934,124 +43271,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41934
43271
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41935
43272
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41936
43273
|
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};
|
|
43274
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
42055
43275
|
|
|
42056
43276
|
return {
|
|
42057
43277
|
url: toPathString(localVarUrlObj),
|
|
@@ -42059,16 +43279,16 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42059
43279
|
};
|
|
42060
43280
|
},
|
|
42061
43281
|
/**
|
|
42062
|
-
*
|
|
42063
|
-
* @summary Handle
|
|
42064
|
-
* @param {
|
|
43282
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
43283
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
43284
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
42065
43285
|
* @param {*} [options] Override http request option.
|
|
42066
43286
|
* @throws {RequiredError}
|
|
42067
43287
|
*/
|
|
42068
|
-
|
|
42069
|
-
// verify required parameter '
|
|
42070
|
-
assertParamExists('
|
|
42071
|
-
const localVarPath = `/api/webhook/
|
|
43288
|
+
handleVivaSessionEvents: async (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43289
|
+
// verify required parameter 'vivaWebhookPayloadDto' is not null or undefined
|
|
43290
|
+
assertParamExists('handleVivaSessionEvents', 'vivaWebhookPayloadDto', vivaWebhookPayloadDto)
|
|
43291
|
+
const localVarPath = `/api/webhook/viva/payments`;
|
|
42072
43292
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42073
43293
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42074
43294
|
let baseOptions;
|
|
@@ -42087,36 +43307,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42087
43307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42088
43308
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42089
43309
|
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};
|
|
43310
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
42120
43311
|
|
|
42121
43312
|
return {
|
|
42122
43313
|
url: toPathString(localVarUrlObj),
|
|
@@ -42128,8 +43319,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42128
43319
|
* @param {*} [options] Override http request option.
|
|
42129
43320
|
* @throws {RequiredError}
|
|
42130
43321
|
*/
|
|
42131
|
-
|
|
42132
|
-
const localVarPath = `/api/webhook/
|
|
43322
|
+
handleWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43323
|
+
const localVarPath = `/api/webhook/ship-day`;
|
|
42133
43324
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42134
43325
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42135
43326
|
let baseOptions;
|
|
@@ -42154,15 +43345,11 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42154
43345
|
},
|
|
42155
43346
|
/**
|
|
42156
43347
|
*
|
|
42157
|
-
* @summary Handle Viva payment webhook events
|
|
42158
|
-
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
42159
43348
|
* @param {*} [options] Override http request option.
|
|
42160
43349
|
* @throws {RequiredError}
|
|
42161
43350
|
*/
|
|
42162
|
-
|
|
42163
|
-
|
|
42164
|
-
assertParamExists('handleVivaEvents', 'vivaWebhookPayloadDto', vivaWebhookPayloadDto)
|
|
42165
|
-
const localVarPath = `/api/webhook/viva/verification`;
|
|
43351
|
+
handleWoltDriveEvent: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43352
|
+
const localVarPath = `/api/webhook/wolt-drive/event`;
|
|
42166
43353
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42167
43354
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42168
43355
|
let baseOptions;
|
|
@@ -42176,12 +43363,9 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42176
43363
|
|
|
42177
43364
|
|
|
42178
43365
|
|
|
42179
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42180
|
-
|
|
42181
43366
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42182
43367
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42183
43368
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42184
|
-
localVarRequestOptions.data = serializeDataIfNeeded(vivaWebhookPayloadDto, localVarRequestOptions, configuration)
|
|
42185
43369
|
|
|
42186
43370
|
return {
|
|
42187
43371
|
url: toPathString(localVarUrlObj),
|
|
@@ -42190,11 +43374,15 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42190
43374
|
},
|
|
42191
43375
|
/**
|
|
42192
43376
|
*
|
|
43377
|
+
* @param {string} country
|
|
42193
43378
|
* @param {*} [options] Override http request option.
|
|
42194
43379
|
* @throws {RequiredError}
|
|
42195
43380
|
*/
|
|
42196
|
-
|
|
42197
|
-
|
|
43381
|
+
handleWoltDriveEventByCountry: async (country: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43382
|
+
// verify required parameter 'country' is not null or undefined
|
|
43383
|
+
assertParamExists('handleWoltDriveEventByCountry', 'country', country)
|
|
43384
|
+
const localVarPath = `/api/webhook/wolt-drive/{country}/event`
|
|
43385
|
+
.replace(`{${"country"}}`, encodeURIComponent(String(country)));
|
|
42198
43386
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42199
43387
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42200
43388
|
let baseOptions;
|
|
@@ -42222,8 +43410,8 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42222
43410
|
* @param {*} [options] Override http request option.
|
|
42223
43411
|
* @throws {RequiredError}
|
|
42224
43412
|
*/
|
|
42225
|
-
|
|
42226
|
-
const localVarPath = `/api/webhook/
|
|
43413
|
+
handleWorldlineEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43414
|
+
const localVarPath = `/api/webhook/worldline/events`;
|
|
42227
43415
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42228
43416
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42229
43417
|
let baseOptions;
|
|
@@ -42248,15 +43436,14 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42248
43436
|
},
|
|
42249
43437
|
/**
|
|
42250
43438
|
*
|
|
42251
|
-
* @param {
|
|
43439
|
+
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
42252
43440
|
* @param {*} [options] Override http request option.
|
|
42253
43441
|
* @throws {RequiredError}
|
|
42254
43442
|
*/
|
|
42255
|
-
|
|
42256
|
-
// verify required parameter '
|
|
42257
|
-
assertParamExists('
|
|
42258
|
-
const localVarPath = `/api/webhook/
|
|
42259
|
-
.replace(`{${"country"}}`, encodeURIComponent(String(country)));
|
|
43443
|
+
processKioskRecoveryQueue: async (processKioskRecoveryQueueDto: ProcessKioskRecoveryQueueDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43444
|
+
// verify required parameter 'processKioskRecoveryQueueDto' is not null or undefined
|
|
43445
|
+
assertParamExists('processKioskRecoveryQueue', 'processKioskRecoveryQueueDto', processKioskRecoveryQueueDto)
|
|
43446
|
+
const localVarPath = `/api/webhook/kiosk/recovery/process`;
|
|
42260
43447
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42261
43448
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42262
43449
|
let baseOptions;
|
|
@@ -42270,38 +43457,12 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42270
43457
|
|
|
42271
43458
|
|
|
42272
43459
|
|
|
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
|
-
|
|
43460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42300
43461
|
|
|
42301
|
-
|
|
42302
43462
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42303
43463
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42304
43464
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43465
|
+
localVarRequestOptions.data = serializeDataIfNeeded(processKioskRecoveryQueueDto, localVarRequestOptions, configuration)
|
|
42305
43466
|
|
|
42306
43467
|
return {
|
|
42307
43468
|
url: toPathString(localVarUrlObj),
|
|
@@ -42310,14 +43471,11 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42310
43471
|
},
|
|
42311
43472
|
/**
|
|
42312
43473
|
*
|
|
42313
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
42314
43474
|
* @param {*} [options] Override http request option.
|
|
42315
43475
|
* @throws {RequiredError}
|
|
42316
43476
|
*/
|
|
42317
|
-
|
|
42318
|
-
|
|
42319
|
-
assertParamExists('processKioskRecoveryQueue', 'processKioskRecoveryQueueDto', processKioskRecoveryQueueDto)
|
|
42320
|
-
const localVarPath = `/api/webhook/kiosk/recovery/process`;
|
|
43477
|
+
updateWoltProduct: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43478
|
+
const localVarPath = `/api/webhook/wolt/product/edit`;
|
|
42321
43479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42322
43480
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42323
43481
|
let baseOptions;
|
|
@@ -42331,12 +43489,9 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42331
43489
|
|
|
42332
43490
|
|
|
42333
43491
|
|
|
42334
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42335
|
-
|
|
42336
43492
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42337
43493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42338
43494
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42339
|
-
localVarRequestOptions.data = serializeDataIfNeeded(processKioskRecoveryQueueDto, localVarRequestOptions, configuration)
|
|
42340
43495
|
|
|
42341
43496
|
return {
|
|
42342
43497
|
url: toPathString(localVarUrlObj),
|
|
@@ -42344,12 +43499,13 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42344
43499
|
};
|
|
42345
43500
|
},
|
|
42346
43501
|
/**
|
|
42347
|
-
*
|
|
43502
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
43503
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
42348
43504
|
* @param {*} [options] Override http request option.
|
|
42349
43505
|
* @throws {RequiredError}
|
|
42350
43506
|
*/
|
|
42351
|
-
|
|
42352
|
-
const localVarPath = `/api/webhook/
|
|
43507
|
+
verifyVivaSessionWebhook: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43508
|
+
const localVarPath = `/api/webhook/viva/payments`;
|
|
42353
43509
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42354
43510
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42355
43511
|
let baseOptions;
|
|
@@ -42357,7 +43513,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42357
43513
|
baseOptions = configuration.baseOptions;
|
|
42358
43514
|
}
|
|
42359
43515
|
|
|
42360
|
-
const localVarRequestOptions = { method: '
|
|
43516
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
42361
43517
|
const localVarHeaderParameter = {} as any;
|
|
42362
43518
|
const localVarQueryParameter = {} as any;
|
|
42363
43519
|
|
|
@@ -42516,6 +43672,17 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
42516
43672
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleVivaEvents(vivaWebhookPayloadDto, options);
|
|
42517
43673
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42518
43674
|
},
|
|
43675
|
+
/**
|
|
43676
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
43677
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
43678
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
43679
|
+
* @param {*} [options] Override http request option.
|
|
43680
|
+
* @throws {RequiredError}
|
|
43681
|
+
*/
|
|
43682
|
+
async handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleVivaSessionEvents(vivaWebhookPayloadDto, options);
|
|
43684
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43685
|
+
},
|
|
42519
43686
|
/**
|
|
42520
43687
|
*
|
|
42521
43688
|
* @param {*} [options] Override http request option.
|
|
@@ -42572,6 +43739,16 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
42572
43739
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWoltProduct(options);
|
|
42573
43740
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42574
43741
|
},
|
|
43742
|
+
/**
|
|
43743
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
43744
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
43745
|
+
* @param {*} [options] Override http request option.
|
|
43746
|
+
* @throws {RequiredError}
|
|
43747
|
+
*/
|
|
43748
|
+
async verifyVivaSessionWebhook(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyVivaSessionWebhook(options);
|
|
43750
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43751
|
+
},
|
|
42575
43752
|
/**
|
|
42576
43753
|
*
|
|
42577
43754
|
* @param {*} [options] Override http request option.
|
|
@@ -42685,6 +43862,16 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
42685
43862
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void> {
|
|
42686
43863
|
return localVarFp.handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
|
|
42687
43864
|
},
|
|
43865
|
+
/**
|
|
43866
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
43867
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
43868
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
43869
|
+
* @param {*} [options] Override http request option.
|
|
43870
|
+
* @throws {RequiredError}
|
|
43871
|
+
*/
|
|
43872
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void> {
|
|
43873
|
+
return localVarFp.handleVivaSessionEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
|
|
43874
|
+
},
|
|
42688
43875
|
/**
|
|
42689
43876
|
*
|
|
42690
43877
|
* @param {*} [options] Override http request option.
|
|
@@ -42735,6 +43922,15 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
42735
43922
|
updateWoltProduct(options?: any): AxiosPromise<void> {
|
|
42736
43923
|
return localVarFp.updateWoltProduct(options).then((request) => request(axios, basePath));
|
|
42737
43924
|
},
|
|
43925
|
+
/**
|
|
43926
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
43927
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
43928
|
+
* @param {*} [options] Override http request option.
|
|
43929
|
+
* @throws {RequiredError}
|
|
43930
|
+
*/
|
|
43931
|
+
verifyVivaSessionWebhook(options?: any): AxiosPromise<void> {
|
|
43932
|
+
return localVarFp.verifyVivaSessionWebhook(options).then((request) => request(axios, basePath));
|
|
43933
|
+
},
|
|
42738
43934
|
/**
|
|
42739
43935
|
*
|
|
42740
43936
|
* @param {*} [options] Override http request option.
|
|
@@ -42846,6 +44042,16 @@ export interface WebhookApiInterface {
|
|
|
42846
44042
|
*/
|
|
42847
44043
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
42848
44044
|
|
|
44045
|
+
/**
|
|
44046
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
44047
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
44048
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
44049
|
+
* @param {*} [options] Override http request option.
|
|
44050
|
+
* @throws {RequiredError}
|
|
44051
|
+
* @memberof WebhookApiInterface
|
|
44052
|
+
*/
|
|
44053
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
44054
|
+
|
|
42849
44055
|
/**
|
|
42850
44056
|
*
|
|
42851
44057
|
* @param {*} [options] Override http request option.
|
|
@@ -42896,6 +44102,15 @@ export interface WebhookApiInterface {
|
|
|
42896
44102
|
*/
|
|
42897
44103
|
updateWoltProduct(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
42898
44104
|
|
|
44105
|
+
/**
|
|
44106
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
44107
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
44108
|
+
* @param {*} [options] Override http request option.
|
|
44109
|
+
* @throws {RequiredError}
|
|
44110
|
+
* @memberof WebhookApiInterface
|
|
44111
|
+
*/
|
|
44112
|
+
verifyVivaSessionWebhook(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
44113
|
+
|
|
42899
44114
|
/**
|
|
42900
44115
|
*
|
|
42901
44116
|
* @param {*} [options] Override http request option.
|
|
@@ -43029,6 +44244,18 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
43029
44244
|
return WebhookApiFp(this.configuration).handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(this.axios, this.basePath));
|
|
43030
44245
|
}
|
|
43031
44246
|
|
|
44247
|
+
/**
|
|
44248
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
44249
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
44250
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
44251
|
+
* @param {*} [options] Override http request option.
|
|
44252
|
+
* @throws {RequiredError}
|
|
44253
|
+
* @memberof WebhookApi
|
|
44254
|
+
*/
|
|
44255
|
+
public handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig) {
|
|
44256
|
+
return WebhookApiFp(this.configuration).handleVivaSessionEvents(vivaWebhookPayloadDto, options).then((request) => request(this.axios, this.basePath));
|
|
44257
|
+
}
|
|
44258
|
+
|
|
43032
44259
|
/**
|
|
43033
44260
|
*
|
|
43034
44261
|
* @param {*} [options] Override http request option.
|
|
@@ -43091,6 +44318,17 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
43091
44318
|
return WebhookApiFp(this.configuration).updateWoltProduct(options).then((request) => request(this.axios, this.basePath));
|
|
43092
44319
|
}
|
|
43093
44320
|
|
|
44321
|
+
/**
|
|
44322
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
44323
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
44324
|
+
* @param {*} [options] Override http request option.
|
|
44325
|
+
* @throws {RequiredError}
|
|
44326
|
+
* @memberof WebhookApi
|
|
44327
|
+
*/
|
|
44328
|
+
public verifyVivaSessionWebhook(options?: AxiosRequestConfig) {
|
|
44329
|
+
return WebhookApiFp(this.configuration).verifyVivaSessionWebhook(options).then((request) => request(this.axios, this.basePath));
|
|
44330
|
+
}
|
|
44331
|
+
|
|
43094
44332
|
/**
|
|
43095
44333
|
*
|
|
43096
44334
|
* @param {*} [options] Override http request option.
|