@munchi_oy/core 1.9.70 → 1.9.72
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 +77 -116
- 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 +123 -206
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -13492,6 +13492,7 @@ export const PaymentSessionStatus = {
|
|
|
13492
13492
|
Failed: 'FAILED',
|
|
13493
13493
|
Cancelled: 'CANCELLED',
|
|
13494
13494
|
Closed: 'CLOSED',
|
|
13495
|
+
VoidPending: 'VOID_PENDING',
|
|
13495
13496
|
Voiding: 'VOIDING',
|
|
13496
13497
|
Voided: 'VOIDED',
|
|
13497
13498
|
VoidFailed: 'VOID_FAILED',
|
|
@@ -13982,6 +13983,19 @@ export interface PointsUpdateResponseDto {
|
|
|
13982
13983
|
*/
|
|
13983
13984
|
'_links': { [key: string]: LoyaltyInfoResponseDtoLinksValue; };
|
|
13984
13985
|
}
|
|
13986
|
+
/**
|
|
13987
|
+
*
|
|
13988
|
+
* @export
|
|
13989
|
+
* @interface PollVivaSessionDto
|
|
13990
|
+
*/
|
|
13991
|
+
export interface PollVivaSessionDto {
|
|
13992
|
+
/**
|
|
13993
|
+
* The Viva session id (B) to poll.
|
|
13994
|
+
* @type {string}
|
|
13995
|
+
* @memberof PollVivaSessionDto
|
|
13996
|
+
*/
|
|
13997
|
+
'sessionId': string;
|
|
13998
|
+
}
|
|
13985
13999
|
/**
|
|
13986
14000
|
*
|
|
13987
14001
|
* @export
|
|
@@ -16264,19 +16278,6 @@ export const PrinterTypeEnum = {
|
|
|
16264
16278
|
export type PrinterTypeEnum = typeof PrinterTypeEnum[keyof typeof PrinterTypeEnum];
|
|
16265
16279
|
|
|
16266
16280
|
|
|
16267
|
-
/**
|
|
16268
|
-
*
|
|
16269
|
-
* @export
|
|
16270
|
-
* @interface ProcessKioskRecoveryQueueDto
|
|
16271
|
-
*/
|
|
16272
|
-
export interface ProcessKioskRecoveryQueueDto {
|
|
16273
|
-
/**
|
|
16274
|
-
* Maximum number of kiosk recovery jobs to process in one run.
|
|
16275
|
-
* @type {number}
|
|
16276
|
-
* @memberof ProcessKioskRecoveryQueueDto
|
|
16277
|
-
*/
|
|
16278
|
-
'batchSize'?: number;
|
|
16279
|
-
}
|
|
16280
16281
|
/**
|
|
16281
16282
|
*
|
|
16282
16283
|
* @export
|
|
@@ -18730,7 +18731,8 @@ export const SYNCKEY = {
|
|
|
18730
18731
|
PosSession: 'POS_SESSION',
|
|
18731
18732
|
InvoiceCompanies: 'INVOICE_COMPANIES',
|
|
18732
18733
|
BusinessTax: 'BUSINESS_TAX',
|
|
18733
|
-
Transaction: 'TRANSACTION'
|
|
18734
|
+
Transaction: 'TRANSACTION',
|
|
18735
|
+
PaymentMethods: 'PAYMENT_METHODS'
|
|
18734
18736
|
} as const;
|
|
18735
18737
|
|
|
18736
18738
|
export type SYNCKEY = typeof SYNCKEY[keyof typeof SYNCKEY];
|
|
@@ -22497,7 +22499,7 @@ export interface UpsertNetsDto {
|
|
|
22497
22499
|
* @type {string}
|
|
22498
22500
|
* @memberof UpsertNetsDto
|
|
22499
22501
|
*/
|
|
22500
|
-
'name'
|
|
22502
|
+
'name'?: string;
|
|
22501
22503
|
/**
|
|
22502
22504
|
*
|
|
22503
22505
|
* @type {boolean}
|
|
@@ -22745,7 +22747,7 @@ export interface UpsertProvidersDto {
|
|
|
22745
22747
|
* @type {string}
|
|
22746
22748
|
* @memberof UpsertProvidersDto
|
|
22747
22749
|
*/
|
|
22748
|
-
'name'
|
|
22750
|
+
'name'?: string;
|
|
22749
22751
|
/**
|
|
22750
22752
|
*
|
|
22751
22753
|
* @type {boolean}
|
|
@@ -22853,7 +22855,7 @@ export interface UpsertStripeDto {
|
|
|
22853
22855
|
* @type {string}
|
|
22854
22856
|
* @memberof UpsertStripeDto
|
|
22855
22857
|
*/
|
|
22856
|
-
'name'
|
|
22858
|
+
'name'?: string;
|
|
22857
22859
|
/**
|
|
22858
22860
|
*
|
|
22859
22861
|
* @type {boolean}
|
|
@@ -22884,7 +22886,7 @@ export interface UpsertVivaDto {
|
|
|
22884
22886
|
* @type {string}
|
|
22885
22887
|
* @memberof UpsertVivaDto
|
|
22886
22888
|
*/
|
|
22887
|
-
'name'
|
|
22889
|
+
'name'?: string;
|
|
22888
22890
|
/**
|
|
22889
22891
|
*
|
|
22890
22892
|
* @type {boolean}
|
|
@@ -23322,6 +23324,12 @@ export interface VivaConfigResponseDto {
|
|
|
23322
23324
|
* @memberof VivaConfigResponseDto
|
|
23323
23325
|
*/
|
|
23324
23326
|
'rate': number | null;
|
|
23327
|
+
/**
|
|
23328
|
+
* Additional fixed surcharge amount.
|
|
23329
|
+
* @type {number}
|
|
23330
|
+
* @memberof VivaConfigResponseDto
|
|
23331
|
+
*/
|
|
23332
|
+
'additionalAmount': number | null;
|
|
23325
23333
|
}
|
|
23326
23334
|
/**
|
|
23327
23335
|
*
|
|
@@ -39763,20 +39771,12 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
39763
39771
|
},
|
|
39764
39772
|
/**
|
|
39765
39773
|
*
|
|
39766
|
-
* @param {ProviderEnum} channel
|
|
39767
|
-
* @param {number} businessId
|
|
39768
39774
|
* @param {any} [locale]
|
|
39769
39775
|
* @param {*} [options] Override http request option.
|
|
39770
39776
|
* @throws {RequiredError}
|
|
39771
39777
|
*/
|
|
39772
|
-
getGlobalCatalog: async (
|
|
39773
|
-
|
|
39774
|
-
assertParamExists('getGlobalCatalog', 'channel', channel)
|
|
39775
|
-
// verify required parameter 'businessId' is not null or undefined
|
|
39776
|
-
assertParamExists('getGlobalCatalog', 'businessId', businessId)
|
|
39777
|
-
const localVarPath = `/api/v1/payment-methods/catalog`
|
|
39778
|
-
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
39779
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
39778
|
+
getGlobalCatalog: async (locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39779
|
+
const localVarPath = `/api/v1/payment-methods/catalog`;
|
|
39780
39780
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39781
39781
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39782
39782
|
let baseOptions;
|
|
@@ -39847,19 +39847,11 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
39847
39847
|
},
|
|
39848
39848
|
/**
|
|
39849
39849
|
*
|
|
39850
|
-
* @param {ProviderEnum} channel
|
|
39851
|
-
* @param {number} businessId
|
|
39852
39850
|
* @param {*} [options] Override http request option.
|
|
39853
39851
|
* @throws {RequiredError}
|
|
39854
39852
|
*/
|
|
39855
|
-
getTypes: async (
|
|
39856
|
-
|
|
39857
|
-
assertParamExists('getTypes', 'channel', channel)
|
|
39858
|
-
// verify required parameter 'businessId' is not null or undefined
|
|
39859
|
-
assertParamExists('getTypes', 'businessId', businessId)
|
|
39860
|
-
const localVarPath = `/api/v1/payment-methods/types`
|
|
39861
|
-
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
39862
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
39853
|
+
getTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39854
|
+
const localVarPath = `/api/v1/payment-methods/types`;
|
|
39863
39855
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39864
39856
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39865
39857
|
let baseOptions;
|
|
@@ -40020,14 +40012,12 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
40020
40012
|
},
|
|
40021
40013
|
/**
|
|
40022
40014
|
*
|
|
40023
|
-
* @param {ProviderEnum} channel
|
|
40024
|
-
* @param {number} businessId
|
|
40025
40015
|
* @param {any} [locale]
|
|
40026
40016
|
* @param {*} [options] Override http request option.
|
|
40027
40017
|
* @throws {RequiredError}
|
|
40028
40018
|
*/
|
|
40029
|
-
async getGlobalCatalog(
|
|
40030
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalCatalog(
|
|
40019
|
+
async getGlobalCatalog(locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CatalogMethodDto>>> {
|
|
40020
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalCatalog(locale, options);
|
|
40031
40021
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40032
40022
|
},
|
|
40033
40023
|
/**
|
|
@@ -40044,13 +40034,11 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
40044
40034
|
},
|
|
40045
40035
|
/**
|
|
40046
40036
|
*
|
|
40047
|
-
* @param {ProviderEnum} channel
|
|
40048
|
-
* @param {number} businessId
|
|
40049
40037
|
* @param {*} [options] Override http request option.
|
|
40050
40038
|
* @throws {RequiredError}
|
|
40051
40039
|
*/
|
|
40052
|
-
async getTypes(
|
|
40053
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTypes(
|
|
40040
|
+
async getTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodTypeDto>>> {
|
|
40041
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTypes(options);
|
|
40054
40042
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40055
40043
|
},
|
|
40056
40044
|
/**
|
|
@@ -40123,14 +40111,12 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
40123
40111
|
},
|
|
40124
40112
|
/**
|
|
40125
40113
|
*
|
|
40126
|
-
* @param {ProviderEnum} channel
|
|
40127
|
-
* @param {number} businessId
|
|
40128
40114
|
* @param {any} [locale]
|
|
40129
40115
|
* @param {*} [options] Override http request option.
|
|
40130
40116
|
* @throws {RequiredError}
|
|
40131
40117
|
*/
|
|
40132
|
-
getGlobalCatalog(
|
|
40133
|
-
return localVarFp.getGlobalCatalog(
|
|
40118
|
+
getGlobalCatalog(locale?: any, options?: any): AxiosPromise<Array<CatalogMethodDto>> {
|
|
40119
|
+
return localVarFp.getGlobalCatalog(locale, options).then((request) => request(axios, basePath));
|
|
40134
40120
|
},
|
|
40135
40121
|
/**
|
|
40136
40122
|
*
|
|
@@ -40145,13 +40131,11 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
40145
40131
|
},
|
|
40146
40132
|
/**
|
|
40147
40133
|
*
|
|
40148
|
-
* @param {ProviderEnum} channel
|
|
40149
|
-
* @param {number} businessId
|
|
40150
40134
|
* @param {*} [options] Override http request option.
|
|
40151
40135
|
* @throws {RequiredError}
|
|
40152
40136
|
*/
|
|
40153
|
-
getTypes(
|
|
40154
|
-
return localVarFp.getTypes(
|
|
40137
|
+
getTypes(options?: any): AxiosPromise<Array<PaymentMethodTypeDto>> {
|
|
40138
|
+
return localVarFp.getTypes(options).then((request) => request(axios, basePath));
|
|
40155
40139
|
},
|
|
40156
40140
|
/**
|
|
40157
40141
|
*
|
|
@@ -40220,14 +40204,12 @@ export interface PaymentMethodsApiInterface {
|
|
|
40220
40204
|
|
|
40221
40205
|
/**
|
|
40222
40206
|
*
|
|
40223
|
-
* @param {ProviderEnum} channel
|
|
40224
|
-
* @param {number} businessId
|
|
40225
40207
|
* @param {any} [locale]
|
|
40226
40208
|
* @param {*} [options] Override http request option.
|
|
40227
40209
|
* @throws {RequiredError}
|
|
40228
40210
|
* @memberof PaymentMethodsApiInterface
|
|
40229
40211
|
*/
|
|
40230
|
-
getGlobalCatalog(
|
|
40212
|
+
getGlobalCatalog(locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<CatalogMethodDto>>;
|
|
40231
40213
|
|
|
40232
40214
|
/**
|
|
40233
40215
|
*
|
|
@@ -40242,13 +40224,11 @@ export interface PaymentMethodsApiInterface {
|
|
|
40242
40224
|
|
|
40243
40225
|
/**
|
|
40244
40226
|
*
|
|
40245
|
-
* @param {ProviderEnum} channel
|
|
40246
|
-
* @param {number} businessId
|
|
40247
40227
|
* @param {*} [options] Override http request option.
|
|
40248
40228
|
* @throws {RequiredError}
|
|
40249
40229
|
* @memberof PaymentMethodsApiInterface
|
|
40250
40230
|
*/
|
|
40251
|
-
getTypes(
|
|
40231
|
+
getTypes(options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodTypeDto>>;
|
|
40252
40232
|
|
|
40253
40233
|
/**
|
|
40254
40234
|
*
|
|
@@ -40323,15 +40303,13 @@ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInter
|
|
|
40323
40303
|
|
|
40324
40304
|
/**
|
|
40325
40305
|
*
|
|
40326
|
-
* @param {ProviderEnum} channel
|
|
40327
|
-
* @param {number} businessId
|
|
40328
40306
|
* @param {any} [locale]
|
|
40329
40307
|
* @param {*} [options] Override http request option.
|
|
40330
40308
|
* @throws {RequiredError}
|
|
40331
40309
|
* @memberof PaymentMethodsApi
|
|
40332
40310
|
*/
|
|
40333
|
-
public getGlobalCatalog(
|
|
40334
|
-
return PaymentMethodsApiFp(this.configuration).getGlobalCatalog(
|
|
40311
|
+
public getGlobalCatalog(locale?: any, options?: AxiosRequestConfig) {
|
|
40312
|
+
return PaymentMethodsApiFp(this.configuration).getGlobalCatalog(locale, options).then((request) => request(this.axios, this.basePath));
|
|
40335
40313
|
}
|
|
40336
40314
|
|
|
40337
40315
|
/**
|
|
@@ -40349,14 +40327,12 @@ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInter
|
|
|
40349
40327
|
|
|
40350
40328
|
/**
|
|
40351
40329
|
*
|
|
40352
|
-
* @param {ProviderEnum} channel
|
|
40353
|
-
* @param {number} businessId
|
|
40354
40330
|
* @param {*} [options] Override http request option.
|
|
40355
40331
|
* @throws {RequiredError}
|
|
40356
40332
|
* @memberof PaymentMethodsApi
|
|
40357
40333
|
*/
|
|
40358
|
-
public getTypes(
|
|
40359
|
-
return PaymentMethodsApiFp(this.configuration).getTypes(
|
|
40334
|
+
public getTypes(options?: AxiosRequestConfig) {
|
|
40335
|
+
return PaymentMethodsApiFp(this.configuration).getTypes(options).then((request) => request(this.axios, this.basePath));
|
|
40360
40336
|
}
|
|
40361
40337
|
|
|
40362
40338
|
/**
|
|
@@ -40539,6 +40515,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
40539
40515
|
options: localVarRequestOptions,
|
|
40540
40516
|
};
|
|
40541
40517
|
},
|
|
40518
|
+
/**
|
|
40519
|
+
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
40520
|
+
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
40521
|
+
* @param {PollVivaSessionDto} pollVivaSessionDto
|
|
40522
|
+
* @param {*} [options] Override http request option.
|
|
40523
|
+
* @throws {RequiredError}
|
|
40524
|
+
*/
|
|
40525
|
+
pollVivaSession: async (pollVivaSessionDto: PollVivaSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40526
|
+
// verify required parameter 'pollVivaSessionDto' is not null or undefined
|
|
40527
|
+
assertParamExists('pollVivaSession', 'pollVivaSessionDto', pollVivaSessionDto)
|
|
40528
|
+
const localVarPath = `/api/v1/payment-session/poll`;
|
|
40529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40530
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40531
|
+
let baseOptions;
|
|
40532
|
+
if (configuration) {
|
|
40533
|
+
baseOptions = configuration.baseOptions;
|
|
40534
|
+
}
|
|
40535
|
+
|
|
40536
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40537
|
+
const localVarHeaderParameter = {} as any;
|
|
40538
|
+
const localVarQueryParameter = {} as any;
|
|
40539
|
+
|
|
40540
|
+
|
|
40541
|
+
|
|
40542
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40543
|
+
|
|
40544
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40545
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40546
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40547
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pollVivaSessionDto, localVarRequestOptions, configuration)
|
|
40548
|
+
|
|
40549
|
+
return {
|
|
40550
|
+
url: toPathString(localVarUrlObj),
|
|
40551
|
+
options: localVarRequestOptions,
|
|
40552
|
+
};
|
|
40553
|
+
},
|
|
40542
40554
|
/**
|
|
40543
40555
|
* 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.
|
|
40544
40556
|
* @summary Record a manual payment session
|
|
@@ -40738,6 +40750,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
40738
40750
|
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options);
|
|
40739
40751
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40740
40752
|
},
|
|
40753
|
+
/**
|
|
40754
|
+
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
40755
|
+
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
40756
|
+
* @param {PollVivaSessionDto} pollVivaSessionDto
|
|
40757
|
+
* @param {*} [options] Override http request option.
|
|
40758
|
+
* @throws {RequiredError}
|
|
40759
|
+
*/
|
|
40760
|
+
async pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
40761
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pollVivaSession(pollVivaSessionDto, options);
|
|
40762
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40763
|
+
},
|
|
40741
40764
|
/**
|
|
40742
40765
|
* 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.
|
|
40743
40766
|
* @summary Record a manual payment session
|
|
@@ -40833,6 +40856,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
40833
40856
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateVivaSessionResponseDto> {
|
|
40834
40857
|
return localVarFp.initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options).then((request) => request(axios, basePath));
|
|
40835
40858
|
},
|
|
40859
|
+
/**
|
|
40860
|
+
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
40861
|
+
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
40862
|
+
* @param {PollVivaSessionDto} pollVivaSessionDto
|
|
40863
|
+
* @param {*} [options] Override http request option.
|
|
40864
|
+
* @throws {RequiredError}
|
|
40865
|
+
*/
|
|
40866
|
+
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: any): AxiosPromise<void> {
|
|
40867
|
+
return localVarFp.pollVivaSession(pollVivaSessionDto, options).then((request) => request(axios, basePath));
|
|
40868
|
+
},
|
|
40836
40869
|
/**
|
|
40837
40870
|
* 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.
|
|
40838
40871
|
* @summary Record a manual payment session
|
|
@@ -40923,6 +40956,16 @@ export interface PaymentSessionApiInterface {
|
|
|
40923
40956
|
*/
|
|
40924
40957
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
40925
40958
|
|
|
40959
|
+
/**
|
|
40960
|
+
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
40961
|
+
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
40962
|
+
* @param {PollVivaSessionDto} pollVivaSessionDto
|
|
40963
|
+
* @param {*} [options] Override http request option.
|
|
40964
|
+
* @throws {RequiredError}
|
|
40965
|
+
* @memberof PaymentSessionApiInterface
|
|
40966
|
+
*/
|
|
40967
|
+
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
40968
|
+
|
|
40926
40969
|
/**
|
|
40927
40970
|
* 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.
|
|
40928
40971
|
* @summary Record a manual payment session
|
|
@@ -41021,6 +41064,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
41021
41064
|
return PaymentSessionApiFp(this.configuration).initiateVivaSession(initiateVivaSessionDto, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
41022
41065
|
}
|
|
41023
41066
|
|
|
41067
|
+
/**
|
|
41068
|
+
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
41069
|
+
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
41070
|
+
* @param {PollVivaSessionDto} pollVivaSessionDto
|
|
41071
|
+
* @param {*} [options] Override http request option.
|
|
41072
|
+
* @throws {RequiredError}
|
|
41073
|
+
* @memberof PaymentSessionApi
|
|
41074
|
+
*/
|
|
41075
|
+
public pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig) {
|
|
41076
|
+
return PaymentSessionApiFp(this.configuration).pollVivaSession(pollVivaSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41077
|
+
}
|
|
41078
|
+
|
|
41024
41079
|
/**
|
|
41025
41080
|
* 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.
|
|
41026
41081
|
* @summary Record a manual payment session
|
|
@@ -46213,35 +46268,6 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
46213
46268
|
|
|
46214
46269
|
|
|
46215
46270
|
|
|
46216
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46217
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46218
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46219
|
-
|
|
46220
|
-
return {
|
|
46221
|
-
url: toPathString(localVarUrlObj),
|
|
46222
|
-
options: localVarRequestOptions,
|
|
46223
|
-
};
|
|
46224
|
-
},
|
|
46225
|
-
/**
|
|
46226
|
-
*
|
|
46227
|
-
* @param {*} [options] Override http request option.
|
|
46228
|
-
* @throws {RequiredError}
|
|
46229
|
-
*/
|
|
46230
|
-
handleNetsRefundEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46231
|
-
const localVarPath = `/api/webhook/nets/refund`;
|
|
46232
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46233
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46234
|
-
let baseOptions;
|
|
46235
|
-
if (configuration) {
|
|
46236
|
-
baseOptions = configuration.baseOptions;
|
|
46237
|
-
}
|
|
46238
|
-
|
|
46239
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
46240
|
-
const localVarHeaderParameter = {} as any;
|
|
46241
|
-
const localVarQueryParameter = {} as any;
|
|
46242
|
-
|
|
46243
|
-
|
|
46244
|
-
|
|
46245
46271
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46246
46272
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46247
46273
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -46537,41 +46563,6 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
46537
46563
|
options: localVarRequestOptions,
|
|
46538
46564
|
};
|
|
46539
46565
|
},
|
|
46540
|
-
/**
|
|
46541
|
-
*
|
|
46542
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
46543
|
-
* @param {*} [options] Override http request option.
|
|
46544
|
-
* @throws {RequiredError}
|
|
46545
|
-
*/
|
|
46546
|
-
processKioskRecoveryQueue: async (processKioskRecoveryQueueDto: ProcessKioskRecoveryQueueDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46547
|
-
// verify required parameter 'processKioskRecoveryQueueDto' is not null or undefined
|
|
46548
|
-
assertParamExists('processKioskRecoveryQueue', 'processKioskRecoveryQueueDto', processKioskRecoveryQueueDto)
|
|
46549
|
-
const localVarPath = `/api/webhook/kiosk/recovery/process`;
|
|
46550
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46551
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46552
|
-
let baseOptions;
|
|
46553
|
-
if (configuration) {
|
|
46554
|
-
baseOptions = configuration.baseOptions;
|
|
46555
|
-
}
|
|
46556
|
-
|
|
46557
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
46558
|
-
const localVarHeaderParameter = {} as any;
|
|
46559
|
-
const localVarQueryParameter = {} as any;
|
|
46560
|
-
|
|
46561
|
-
|
|
46562
|
-
|
|
46563
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
46564
|
-
|
|
46565
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46566
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46567
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46568
|
-
localVarRequestOptions.data = serializeDataIfNeeded(processKioskRecoveryQueueDto, localVarRequestOptions, configuration)
|
|
46569
|
-
|
|
46570
|
-
return {
|
|
46571
|
-
url: toPathString(localVarUrlObj),
|
|
46572
|
-
options: localVarRequestOptions,
|
|
46573
|
-
};
|
|
46574
|
-
},
|
|
46575
46566
|
/**
|
|
46576
46567
|
*
|
|
46577
46568
|
* @param {*} [options] Override http request option.
|
|
@@ -46726,15 +46717,6 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
46726
46717
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleNetsEventsV2(options);
|
|
46727
46718
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46728
46719
|
},
|
|
46729
|
-
/**
|
|
46730
|
-
*
|
|
46731
|
-
* @param {*} [options] Override http request option.
|
|
46732
|
-
* @throws {RequiredError}
|
|
46733
|
-
*/
|
|
46734
|
-
async handleNetsRefundEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46735
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.handleNetsRefundEvents(options);
|
|
46736
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46737
|
-
},
|
|
46738
46720
|
/**
|
|
46739
46721
|
*
|
|
46740
46722
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -46823,16 +46805,6 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
46823
46805
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleWorldlineEvents(options);
|
|
46824
46806
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46825
46807
|
},
|
|
46826
|
-
/**
|
|
46827
|
-
*
|
|
46828
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
46829
|
-
* @param {*} [options] Override http request option.
|
|
46830
|
-
* @throws {RequiredError}
|
|
46831
|
-
*/
|
|
46832
|
-
async processKioskRecoveryQueue(processKioskRecoveryQueueDto: ProcessKioskRecoveryQueueDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46833
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.processKioskRecoveryQueue(processKioskRecoveryQueueDto, options);
|
|
46834
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46835
|
-
},
|
|
46836
46808
|
/**
|
|
46837
46809
|
*
|
|
46838
46810
|
* @param {*} [options] Override http request option.
|
|
@@ -46921,14 +46893,6 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
46921
46893
|
handleNetsEventsV2(options?: any): AxiosPromise<void> {
|
|
46922
46894
|
return localVarFp.handleNetsEventsV2(options).then((request) => request(axios, basePath));
|
|
46923
46895
|
},
|
|
46924
|
-
/**
|
|
46925
|
-
*
|
|
46926
|
-
* @param {*} [options] Override http request option.
|
|
46927
|
-
* @throws {RequiredError}
|
|
46928
|
-
*/
|
|
46929
|
-
handleNetsRefundEvents(options?: any): AxiosPromise<void> {
|
|
46930
|
-
return localVarFp.handleNetsRefundEvents(options).then((request) => request(axios, basePath));
|
|
46931
|
-
},
|
|
46932
46896
|
/**
|
|
46933
46897
|
*
|
|
46934
46898
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47008,15 +46972,6 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
47008
46972
|
handleWorldlineEvents(options?: any): AxiosPromise<void> {
|
|
47009
46973
|
return localVarFp.handleWorldlineEvents(options).then((request) => request(axios, basePath));
|
|
47010
46974
|
},
|
|
47011
|
-
/**
|
|
47012
|
-
*
|
|
47013
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
47014
|
-
* @param {*} [options] Override http request option.
|
|
47015
|
-
* @throws {RequiredError}
|
|
47016
|
-
*/
|
|
47017
|
-
processKioskRecoveryQueue(processKioskRecoveryQueueDto: ProcessKioskRecoveryQueueDto, options?: any): AxiosPromise<void> {
|
|
47018
|
-
return localVarFp.processKioskRecoveryQueue(processKioskRecoveryQueueDto, options).then((request) => request(axios, basePath));
|
|
47019
|
-
},
|
|
47020
46975
|
/**
|
|
47021
46976
|
*
|
|
47022
46977
|
* @param {*} [options] Override http request option.
|
|
@@ -47101,14 +47056,6 @@ export interface WebhookApiInterface {
|
|
|
47101
47056
|
*/
|
|
47102
47057
|
handleNetsEventsV2(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47103
47058
|
|
|
47104
|
-
/**
|
|
47105
|
-
*
|
|
47106
|
-
* @param {*} [options] Override http request option.
|
|
47107
|
-
* @throws {RequiredError}
|
|
47108
|
-
* @memberof WebhookApiInterface
|
|
47109
|
-
*/
|
|
47110
|
-
handleNetsRefundEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47111
|
-
|
|
47112
47059
|
/**
|
|
47113
47060
|
*
|
|
47114
47061
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47188,15 +47135,6 @@ export interface WebhookApiInterface {
|
|
|
47188
47135
|
*/
|
|
47189
47136
|
handleWorldlineEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47190
47137
|
|
|
47191
|
-
/**
|
|
47192
|
-
*
|
|
47193
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
47194
|
-
* @param {*} [options] Override http request option.
|
|
47195
|
-
* @throws {RequiredError}
|
|
47196
|
-
* @memberof WebhookApiInterface
|
|
47197
|
-
*/
|
|
47198
|
-
processKioskRecoveryQueue(processKioskRecoveryQueueDto: ProcessKioskRecoveryQueueDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47199
|
-
|
|
47200
47138
|
/**
|
|
47201
47139
|
*
|
|
47202
47140
|
* @param {*} [options] Override http request option.
|
|
@@ -47293,16 +47231,6 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
47293
47231
|
return WebhookApiFp(this.configuration).handleNetsEventsV2(options).then((request) => request(this.axios, this.basePath));
|
|
47294
47232
|
}
|
|
47295
47233
|
|
|
47296
|
-
/**
|
|
47297
|
-
*
|
|
47298
|
-
* @param {*} [options] Override http request option.
|
|
47299
|
-
* @throws {RequiredError}
|
|
47300
|
-
* @memberof WebhookApi
|
|
47301
|
-
*/
|
|
47302
|
-
public handleNetsRefundEvents(options?: AxiosRequestConfig) {
|
|
47303
|
-
return WebhookApiFp(this.configuration).handleNetsRefundEvents(options).then((request) => request(this.axios, this.basePath));
|
|
47304
|
-
}
|
|
47305
|
-
|
|
47306
47234
|
/**
|
|
47307
47235
|
*
|
|
47308
47236
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47400,17 +47328,6 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
47400
47328
|
return WebhookApiFp(this.configuration).handleWorldlineEvents(options).then((request) => request(this.axios, this.basePath));
|
|
47401
47329
|
}
|
|
47402
47330
|
|
|
47403
|
-
/**
|
|
47404
|
-
*
|
|
47405
|
-
* @param {ProcessKioskRecoveryQueueDto} processKioskRecoveryQueueDto
|
|
47406
|
-
* @param {*} [options] Override http request option.
|
|
47407
|
-
* @throws {RequiredError}
|
|
47408
|
-
* @memberof WebhookApi
|
|
47409
|
-
*/
|
|
47410
|
-
public processKioskRecoveryQueue(processKioskRecoveryQueueDto: ProcessKioskRecoveryQueueDto, options?: AxiosRequestConfig) {
|
|
47411
|
-
return WebhookApiFp(this.configuration).processKioskRecoveryQueue(processKioskRecoveryQueueDto, options).then((request) => request(this.axios, this.basePath));
|
|
47412
|
-
}
|
|
47413
|
-
|
|
47414
47331
|
/**
|
|
47415
47332
|
*
|
|
47416
47333
|
* @param {*} [options] Override http request option.
|
package/package.json
CHANGED
package/src/version.ts
CHANGED