@munchi_oy/core 1.9.73 → 1.9.74
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 +291 -20
- 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 +448 -24
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -6677,6 +6677,56 @@ export interface ImageBackgroundConfig {
|
|
|
6677
6677
|
}
|
|
6678
6678
|
|
|
6679
6679
|
|
|
6680
|
+
/**
|
|
6681
|
+
*
|
|
6682
|
+
* @export
|
|
6683
|
+
* @interface InitiateNetsSessionDto
|
|
6684
|
+
*/
|
|
6685
|
+
export interface InitiateNetsSessionDto {
|
|
6686
|
+
/**
|
|
6687
|
+
* The internal business ID.
|
|
6688
|
+
* @type {number}
|
|
6689
|
+
* @memberof InitiateNetsSessionDto
|
|
6690
|
+
*/
|
|
6691
|
+
'businessId': number;
|
|
6692
|
+
/**
|
|
6693
|
+
* The POS order ID this payment session is for.
|
|
6694
|
+
* @type {string}
|
|
6695
|
+
* @memberof InitiateNetsSessionDto
|
|
6696
|
+
*/
|
|
6697
|
+
'orderId': string;
|
|
6698
|
+
/**
|
|
6699
|
+
* Amount to charge in smallest currency unit (cents).
|
|
6700
|
+
* @type {number}
|
|
6701
|
+
* @memberof InitiateNetsSessionDto
|
|
6702
|
+
*/
|
|
6703
|
+
'amount': number;
|
|
6704
|
+
/**
|
|
6705
|
+
*
|
|
6706
|
+
* @type {InitiateVivaSessionDtoSplitContext}
|
|
6707
|
+
* @memberof InitiateNetsSessionDto
|
|
6708
|
+
*/
|
|
6709
|
+
'splitContext'?: InitiateVivaSessionDtoSplitContext;
|
|
6710
|
+
}
|
|
6711
|
+
/**
|
|
6712
|
+
*
|
|
6713
|
+
* @export
|
|
6714
|
+
* @interface InitiateNetsSessionResponseDto
|
|
6715
|
+
*/
|
|
6716
|
+
export interface InitiateNetsSessionResponseDto {
|
|
6717
|
+
/**
|
|
6718
|
+
* Opaque token returned to the client. Used by the client to poll/sync the session. Never sent to Nets.
|
|
6719
|
+
* @type {string}
|
|
6720
|
+
* @memberof InitiateNetsSessionResponseDto
|
|
6721
|
+
*/
|
|
6722
|
+
'clientToken': string;
|
|
6723
|
+
/**
|
|
6724
|
+
* Internal session ID — the Nets ConnectCloud request id the webhook resolves against.
|
|
6725
|
+
* @type {string}
|
|
6726
|
+
* @memberof InitiateNetsSessionResponseDto
|
|
6727
|
+
*/
|
|
6728
|
+
'sessionId': string;
|
|
6729
|
+
}
|
|
6680
6730
|
/**
|
|
6681
6731
|
*
|
|
6682
6732
|
* @export
|
|
@@ -10147,6 +10197,65 @@ export interface NetsPaymentMessageDtoData {
|
|
|
10147
10197
|
*/
|
|
10148
10198
|
'storeboxToken'?: string;
|
|
10149
10199
|
}
|
|
10200
|
+
/**
|
|
10201
|
+
*
|
|
10202
|
+
* @export
|
|
10203
|
+
* @enum {string}
|
|
10204
|
+
*/
|
|
10205
|
+
|
|
10206
|
+
export const NetsRevertMethod = {
|
|
10207
|
+
Reversal: 'REVERSAL',
|
|
10208
|
+
Refund: 'REFUND'
|
|
10209
|
+
} as const;
|
|
10210
|
+
|
|
10211
|
+
export type NetsRevertMethod = typeof NetsRevertMethod[keyof typeof NetsRevertMethod];
|
|
10212
|
+
|
|
10213
|
+
|
|
10214
|
+
/**
|
|
10215
|
+
*
|
|
10216
|
+
* @export
|
|
10217
|
+
* @interface NetsRevertResponseDto
|
|
10218
|
+
*/
|
|
10219
|
+
export interface NetsRevertResponseDto {
|
|
10220
|
+
/**
|
|
10221
|
+
*
|
|
10222
|
+
* @type {NetsRevertMethod}
|
|
10223
|
+
* @memberof NetsRevertResponseDto
|
|
10224
|
+
*/
|
|
10225
|
+
'method': NetsRevertMethod;
|
|
10226
|
+
/**
|
|
10227
|
+
* True when the customer must tap their card to complete (REFUND); false for a REVERSAL, which settles without a tap.
|
|
10228
|
+
* @type {boolean}
|
|
10229
|
+
* @memberof NetsRevertResponseDto
|
|
10230
|
+
*/
|
|
10231
|
+
'requiresCardTap': boolean;
|
|
10232
|
+
/**
|
|
10233
|
+
* Opaque token to poll GET /payment-session/:clientToken for the final outcome.
|
|
10234
|
+
* @type {string}
|
|
10235
|
+
* @memberof NetsRevertResponseDto
|
|
10236
|
+
*/
|
|
10237
|
+
'clientToken': string;
|
|
10238
|
+
/**
|
|
10239
|
+
* Internal session id — the Nets connectcloud-request-id the webhook resolves against.
|
|
10240
|
+
* @type {string}
|
|
10241
|
+
* @memberof NetsRevertResponseDto
|
|
10242
|
+
*/
|
|
10243
|
+
'sessionId': string;
|
|
10244
|
+
/**
|
|
10245
|
+
* Amount being reverted, in the smallest currency unit (cents).
|
|
10246
|
+
* @type {number}
|
|
10247
|
+
* @memberof NetsRevertResponseDto
|
|
10248
|
+
*/
|
|
10249
|
+
'amount': number;
|
|
10250
|
+
/**
|
|
10251
|
+
*
|
|
10252
|
+
* @type {PaymentSessionStatus}
|
|
10253
|
+
* @memberof NetsRevertResponseDto
|
|
10254
|
+
*/
|
|
10255
|
+
'status': PaymentSessionStatus;
|
|
10256
|
+
}
|
|
10257
|
+
|
|
10258
|
+
|
|
10150
10259
|
/**
|
|
10151
10260
|
*
|
|
10152
10261
|
* @export
|
|
@@ -40769,15 +40878,15 @@ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInter
|
|
|
40769
40878
|
export const PaymentSessionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40770
40879
|
return {
|
|
40771
40880
|
/**
|
|
40772
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
40773
|
-
* @summary Cancel an in-flight
|
|
40881
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
40882
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
40774
40883
|
* @param {string} clientToken
|
|
40775
40884
|
* @param {*} [options] Override http request option.
|
|
40776
40885
|
* @throws {RequiredError}
|
|
40777
40886
|
*/
|
|
40778
|
-
|
|
40887
|
+
cancelSession: async (clientToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40779
40888
|
// verify required parameter 'clientToken' is not null or undefined
|
|
40780
|
-
assertParamExists('
|
|
40889
|
+
assertParamExists('cancelSession', 'clientToken', clientToken)
|
|
40781
40890
|
const localVarPath = `/api/v1/payment-session/{clientToken}/cancel`
|
|
40782
40891
|
.replace(`{${"clientToken"}}`, encodeURIComponent(String(clientToken)));
|
|
40783
40892
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -40836,6 +40945,47 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
40836
40945
|
options: localVarRequestOptions,
|
|
40837
40946
|
};
|
|
40838
40947
|
},
|
|
40948
|
+
/**
|
|
40949
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
40950
|
+
* @summary Initiate a Nets terminal payment session
|
|
40951
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
40952
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
40953
|
+
* @param {*} [options] Override http request option.
|
|
40954
|
+
* @throws {RequiredError}
|
|
40955
|
+
*/
|
|
40956
|
+
initiateNetsSession: async (initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40957
|
+
// verify required parameter 'initiateNetsSessionDto' is not null or undefined
|
|
40958
|
+
assertParamExists('initiateNetsSession', 'initiateNetsSessionDto', initiateNetsSessionDto)
|
|
40959
|
+
const localVarPath = `/api/v1/payment-session/nets/initiate`;
|
|
40960
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40961
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40962
|
+
let baseOptions;
|
|
40963
|
+
if (configuration) {
|
|
40964
|
+
baseOptions = configuration.baseOptions;
|
|
40965
|
+
}
|
|
40966
|
+
|
|
40967
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40968
|
+
const localVarHeaderParameter = {} as any;
|
|
40969
|
+
const localVarQueryParameter = {} as any;
|
|
40970
|
+
|
|
40971
|
+
if (xIdempotencyKey != null) {
|
|
40972
|
+
localVarHeaderParameter['X-Idempotency-Key'] = String(xIdempotencyKey);
|
|
40973
|
+
}
|
|
40974
|
+
|
|
40975
|
+
|
|
40976
|
+
|
|
40977
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40978
|
+
|
|
40979
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40980
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40981
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40982
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateNetsSessionDto, localVarRequestOptions, configuration)
|
|
40983
|
+
|
|
40984
|
+
return {
|
|
40985
|
+
url: toPathString(localVarUrlObj),
|
|
40986
|
+
options: localVarRequestOptions,
|
|
40987
|
+
};
|
|
40988
|
+
},
|
|
40839
40989
|
/**
|
|
40840
40990
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
40841
40991
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -40985,6 +41135,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
40985
41135
|
options: localVarRequestOptions,
|
|
40986
41136
|
};
|
|
40987
41137
|
},
|
|
41138
|
+
/**
|
|
41139
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41140
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41141
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41142
|
+
* @param {*} [options] Override http request option.
|
|
41143
|
+
* @throws {RequiredError}
|
|
41144
|
+
*/
|
|
41145
|
+
refundNetsSession: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41146
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
41147
|
+
assertParamExists('refundNetsSession', 'reverseSessionDto', reverseSessionDto)
|
|
41148
|
+
const localVarPath = `/api/v1/payment-session/nets/refund`;
|
|
41149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41151
|
+
let baseOptions;
|
|
41152
|
+
if (configuration) {
|
|
41153
|
+
baseOptions = configuration.baseOptions;
|
|
41154
|
+
}
|
|
41155
|
+
|
|
41156
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41157
|
+
const localVarHeaderParameter = {} as any;
|
|
41158
|
+
const localVarQueryParameter = {} as any;
|
|
41159
|
+
|
|
41160
|
+
|
|
41161
|
+
|
|
41162
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41163
|
+
|
|
41164
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41166
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41167
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseSessionDto, localVarRequestOptions, configuration)
|
|
41168
|
+
|
|
41169
|
+
return {
|
|
41170
|
+
url: toPathString(localVarUrlObj),
|
|
41171
|
+
options: localVarRequestOptions,
|
|
41172
|
+
};
|
|
41173
|
+
},
|
|
40988
41174
|
/**
|
|
40989
41175
|
* 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.
|
|
40990
41176
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -41009,6 +41195,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
41009
41195
|
|
|
41010
41196
|
|
|
41011
41197
|
|
|
41198
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41199
|
+
|
|
41200
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41202
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41203
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseSessionDto, localVarRequestOptions, configuration)
|
|
41204
|
+
|
|
41205
|
+
return {
|
|
41206
|
+
url: toPathString(localVarUrlObj),
|
|
41207
|
+
options: localVarRequestOptions,
|
|
41208
|
+
};
|
|
41209
|
+
},
|
|
41210
|
+
/**
|
|
41211
|
+
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
41212
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41213
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41214
|
+
* @param {*} [options] Override http request option.
|
|
41215
|
+
* @throws {RequiredError}
|
|
41216
|
+
*/
|
|
41217
|
+
revertNetsSession: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41218
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
41219
|
+
assertParamExists('revertNetsSession', 'reverseSessionDto', reverseSessionDto)
|
|
41220
|
+
const localVarPath = `/api/v1/payment-session/nets/revert`;
|
|
41221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41222
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41223
|
+
let baseOptions;
|
|
41224
|
+
if (configuration) {
|
|
41225
|
+
baseOptions = configuration.baseOptions;
|
|
41226
|
+
}
|
|
41227
|
+
|
|
41228
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41229
|
+
const localVarHeaderParameter = {} as any;
|
|
41230
|
+
const localVarQueryParameter = {} as any;
|
|
41231
|
+
|
|
41232
|
+
|
|
41233
|
+
|
|
41012
41234
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41013
41235
|
|
|
41014
41236
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -41104,14 +41326,14 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
41104
41326
|
const localVarAxiosParamCreator = PaymentSessionApiAxiosParamCreator(configuration)
|
|
41105
41327
|
return {
|
|
41106
41328
|
/**
|
|
41107
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
41108
|
-
* @summary Cancel an in-flight
|
|
41329
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41330
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
41109
41331
|
* @param {string} clientToken
|
|
41110
41332
|
* @param {*} [options] Override http request option.
|
|
41111
41333
|
* @throws {RequiredError}
|
|
41112
41334
|
*/
|
|
41113
|
-
async
|
|
41114
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
41335
|
+
async cancelSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
41336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSession(clientToken, options);
|
|
41115
41337
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41116
41338
|
},
|
|
41117
41339
|
/**
|
|
@@ -41125,6 +41347,18 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
41125
41347
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentSession(clientToken, options);
|
|
41126
41348
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41127
41349
|
},
|
|
41350
|
+
/**
|
|
41351
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41352
|
+
* @summary Initiate a Nets terminal payment session
|
|
41353
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41354
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41355
|
+
* @param {*} [options] Override http request option.
|
|
41356
|
+
* @throws {RequiredError}
|
|
41357
|
+
*/
|
|
41358
|
+
async initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateNetsSessionResponseDto>> {
|
|
41359
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateNetsSession(initiateNetsSessionDto, xIdempotencyKey, options);
|
|
41360
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41361
|
+
},
|
|
41128
41362
|
/**
|
|
41129
41363
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
41130
41364
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -41170,6 +41404,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
41170
41404
|
const localVarAxiosArgs = await localVarAxiosParamCreator.recordManualPayment(createManualSessionDto, options);
|
|
41171
41405
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41172
41406
|
},
|
|
41407
|
+
/**
|
|
41408
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41409
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41410
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41411
|
+
* @param {*} [options] Override http request option.
|
|
41412
|
+
* @throws {RequiredError}
|
|
41413
|
+
*/
|
|
41414
|
+
async refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
41415
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refundNetsSession(reverseSessionDto, options);
|
|
41416
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41417
|
+
},
|
|
41173
41418
|
/**
|
|
41174
41419
|
* 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.
|
|
41175
41420
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -41181,6 +41426,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
41181
41426
|
const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaSession(reverseSessionDto, options);
|
|
41182
41427
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41183
41428
|
},
|
|
41429
|
+
/**
|
|
41430
|
+
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
41431
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41432
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41433
|
+
* @param {*} [options] Override http request option.
|
|
41434
|
+
* @throws {RequiredError}
|
|
41435
|
+
*/
|
|
41436
|
+
async revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NetsRevertResponseDto>> {
|
|
41437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revertNetsSession(reverseSessionDto, options);
|
|
41438
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41439
|
+
},
|
|
41184
41440
|
/**
|
|
41185
41441
|
* 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.
|
|
41186
41442
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -41214,14 +41470,14 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
41214
41470
|
const localVarFp = PaymentSessionApiFp(configuration)
|
|
41215
41471
|
return {
|
|
41216
41472
|
/**
|
|
41217
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
41218
|
-
* @summary Cancel an in-flight
|
|
41473
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41474
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
41219
41475
|
* @param {string} clientToken
|
|
41220
41476
|
* @param {*} [options] Override http request option.
|
|
41221
41477
|
* @throws {RequiredError}
|
|
41222
41478
|
*/
|
|
41223
|
-
|
|
41224
|
-
return localVarFp.
|
|
41479
|
+
cancelSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
41480
|
+
return localVarFp.cancelSession(clientToken, options).then((request) => request(axios, basePath));
|
|
41225
41481
|
},
|
|
41226
41482
|
/**
|
|
41227
41483
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
@@ -41233,6 +41489,17 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
41233
41489
|
getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
41234
41490
|
return localVarFp.getPaymentSession(clientToken, options).then((request) => request(axios, basePath));
|
|
41235
41491
|
},
|
|
41492
|
+
/**
|
|
41493
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41494
|
+
* @summary Initiate a Nets terminal payment session
|
|
41495
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41496
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41497
|
+
* @param {*} [options] Override http request option.
|
|
41498
|
+
* @throws {RequiredError}
|
|
41499
|
+
*/
|
|
41500
|
+
initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateNetsSessionResponseDto> {
|
|
41501
|
+
return localVarFp.initiateNetsSession(initiateNetsSessionDto, xIdempotencyKey, options).then((request) => request(axios, basePath));
|
|
41502
|
+
},
|
|
41236
41503
|
/**
|
|
41237
41504
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
41238
41505
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -41274,6 +41541,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
41274
41541
|
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<RecordManualPaymentResultDto> {
|
|
41275
41542
|
return localVarFp.recordManualPayment(createManualSessionDto, options).then((request) => request(axios, basePath));
|
|
41276
41543
|
},
|
|
41544
|
+
/**
|
|
41545
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41546
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41547
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41548
|
+
* @param {*} [options] Override http request option.
|
|
41549
|
+
* @throws {RequiredError}
|
|
41550
|
+
*/
|
|
41551
|
+
refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
41552
|
+
return localVarFp.refundNetsSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
41553
|
+
},
|
|
41277
41554
|
/**
|
|
41278
41555
|
* 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.
|
|
41279
41556
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -41284,6 +41561,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
41284
41561
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
41285
41562
|
return localVarFp.refundVivaSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
41286
41563
|
},
|
|
41564
|
+
/**
|
|
41565
|
+
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
41566
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41567
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41568
|
+
* @param {*} [options] Override http request option.
|
|
41569
|
+
* @throws {RequiredError}
|
|
41570
|
+
*/
|
|
41571
|
+
revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<NetsRevertResponseDto> {
|
|
41572
|
+
return localVarFp.revertNetsSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
41573
|
+
},
|
|
41287
41574
|
/**
|
|
41288
41575
|
* 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.
|
|
41289
41576
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -41314,14 +41601,14 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
41314
41601
|
*/
|
|
41315
41602
|
export interface PaymentSessionApiInterface {
|
|
41316
41603
|
/**
|
|
41317
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
41318
|
-
* @summary Cancel an in-flight
|
|
41604
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41605
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
41319
41606
|
* @param {string} clientToken
|
|
41320
41607
|
* @param {*} [options] Override http request option.
|
|
41321
41608
|
* @throws {RequiredError}
|
|
41322
41609
|
* @memberof PaymentSessionApiInterface
|
|
41323
41610
|
*/
|
|
41324
|
-
|
|
41611
|
+
cancelSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
41325
41612
|
|
|
41326
41613
|
/**
|
|
41327
41614
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
@@ -41333,6 +41620,17 @@ export interface PaymentSessionApiInterface {
|
|
|
41333
41620
|
*/
|
|
41334
41621
|
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
41335
41622
|
|
|
41623
|
+
/**
|
|
41624
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41625
|
+
* @summary Initiate a Nets terminal payment session
|
|
41626
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41627
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41628
|
+
* @param {*} [options] Override http request option.
|
|
41629
|
+
* @throws {RequiredError}
|
|
41630
|
+
* @memberof PaymentSessionApiInterface
|
|
41631
|
+
*/
|
|
41632
|
+
initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateNetsSessionResponseDto>;
|
|
41633
|
+
|
|
41336
41634
|
/**
|
|
41337
41635
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
41338
41636
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -41374,6 +41672,16 @@ export interface PaymentSessionApiInterface {
|
|
|
41374
41672
|
*/
|
|
41375
41673
|
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<RecordManualPaymentResultDto>;
|
|
41376
41674
|
|
|
41675
|
+
/**
|
|
41676
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41677
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41678
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41679
|
+
* @param {*} [options] Override http request option.
|
|
41680
|
+
* @throws {RequiredError}
|
|
41681
|
+
* @memberof PaymentSessionApiInterface
|
|
41682
|
+
*/
|
|
41683
|
+
refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
41684
|
+
|
|
41377
41685
|
/**
|
|
41378
41686
|
* 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.
|
|
41379
41687
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -41384,6 +41692,16 @@ export interface PaymentSessionApiInterface {
|
|
|
41384
41692
|
*/
|
|
41385
41693
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
41386
41694
|
|
|
41695
|
+
/**
|
|
41696
|
+
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
41697
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41698
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41699
|
+
* @param {*} [options] Override http request option.
|
|
41700
|
+
* @throws {RequiredError}
|
|
41701
|
+
* @memberof PaymentSessionApiInterface
|
|
41702
|
+
*/
|
|
41703
|
+
revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<NetsRevertResponseDto>;
|
|
41704
|
+
|
|
41387
41705
|
/**
|
|
41388
41706
|
* 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.
|
|
41389
41707
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -41414,15 +41732,15 @@ export interface PaymentSessionApiInterface {
|
|
|
41414
41732
|
*/
|
|
41415
41733
|
export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInterface {
|
|
41416
41734
|
/**
|
|
41417
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
41418
|
-
* @summary Cancel an in-flight
|
|
41735
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41736
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
41419
41737
|
* @param {string} clientToken
|
|
41420
41738
|
* @param {*} [options] Override http request option.
|
|
41421
41739
|
* @throws {RequiredError}
|
|
41422
41740
|
* @memberof PaymentSessionApi
|
|
41423
41741
|
*/
|
|
41424
|
-
public
|
|
41425
|
-
return PaymentSessionApiFp(this.configuration).
|
|
41742
|
+
public cancelSession(clientToken: string, options?: AxiosRequestConfig) {
|
|
41743
|
+
return PaymentSessionApiFp(this.configuration).cancelSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
41426
41744
|
}
|
|
41427
41745
|
|
|
41428
41746
|
/**
|
|
@@ -41437,6 +41755,19 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
41437
41755
|
return PaymentSessionApiFp(this.configuration).getPaymentSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
41438
41756
|
}
|
|
41439
41757
|
|
|
41758
|
+
/**
|
|
41759
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41760
|
+
* @summary Initiate a Nets terminal payment session
|
|
41761
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41762
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41763
|
+
* @param {*} [options] Override http request option.
|
|
41764
|
+
* @throws {RequiredError}
|
|
41765
|
+
* @memberof PaymentSessionApi
|
|
41766
|
+
*/
|
|
41767
|
+
public initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) {
|
|
41768
|
+
return PaymentSessionApiFp(this.configuration).initiateNetsSession(initiateNetsSessionDto, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
41769
|
+
}
|
|
41770
|
+
|
|
41440
41771
|
/**
|
|
41441
41772
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
41442
41773
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -41486,6 +41817,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
41486
41817
|
return PaymentSessionApiFp(this.configuration).recordManualPayment(createManualSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41487
41818
|
}
|
|
41488
41819
|
|
|
41820
|
+
/**
|
|
41821
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41822
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41823
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41824
|
+
* @param {*} [options] Override http request option.
|
|
41825
|
+
* @throws {RequiredError}
|
|
41826
|
+
* @memberof PaymentSessionApi
|
|
41827
|
+
*/
|
|
41828
|
+
public refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
41829
|
+
return PaymentSessionApiFp(this.configuration).refundNetsSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41830
|
+
}
|
|
41831
|
+
|
|
41489
41832
|
/**
|
|
41490
41833
|
* 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.
|
|
41491
41834
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -41498,6 +41841,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
41498
41841
|
return PaymentSessionApiFp(this.configuration).refundVivaSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41499
41842
|
}
|
|
41500
41843
|
|
|
41844
|
+
/**
|
|
41845
|
+
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
41846
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41847
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41848
|
+
* @param {*} [options] Override http request option.
|
|
41849
|
+
* @throws {RequiredError}
|
|
41850
|
+
* @memberof PaymentSessionApi
|
|
41851
|
+
*/
|
|
41852
|
+
public revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
41853
|
+
return PaymentSessionApiFp(this.configuration).revertNetsSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41854
|
+
}
|
|
41855
|
+
|
|
41501
41856
|
/**
|
|
41502
41857
|
* 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.
|
|
41503
41858
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -46666,6 +47021,36 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
46666
47021
|
|
|
46667
47022
|
|
|
46668
47023
|
|
|
47024
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47025
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47026
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
47027
|
+
|
|
47028
|
+
return {
|
|
47029
|
+
url: toPathString(localVarUrlObj),
|
|
47030
|
+
options: localVarRequestOptions,
|
|
47031
|
+
};
|
|
47032
|
+
},
|
|
47033
|
+
/**
|
|
47034
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47035
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47036
|
+
* @param {*} [options] Override http request option.
|
|
47037
|
+
* @throws {RequiredError}
|
|
47038
|
+
*/
|
|
47039
|
+
handleNetsSessionEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47040
|
+
const localVarPath = `/api/webhook/nets/payments`;
|
|
47041
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47042
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47043
|
+
let baseOptions;
|
|
47044
|
+
if (configuration) {
|
|
47045
|
+
baseOptions = configuration.baseOptions;
|
|
47046
|
+
}
|
|
47047
|
+
|
|
47048
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
47049
|
+
const localVarHeaderParameter = {} as any;
|
|
47050
|
+
const localVarQueryParameter = {} as any;
|
|
47051
|
+
|
|
47052
|
+
|
|
47053
|
+
|
|
46669
47054
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46670
47055
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46671
47056
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -46806,7 +47191,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
46806
47191
|
};
|
|
46807
47192
|
},
|
|
46808
47193
|
/**
|
|
46809
|
-
*
|
|
47194
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
46810
47195
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
46811
47196
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
46812
47197
|
* @param {*} [options] Override http request option.
|
|
@@ -47151,6 +47536,16 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
47151
47536
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleNetsEventsV2(options);
|
|
47152
47537
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47153
47538
|
},
|
|
47539
|
+
/**
|
|
47540
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47541
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47542
|
+
* @param {*} [options] Override http request option.
|
|
47543
|
+
* @throws {RequiredError}
|
|
47544
|
+
*/
|
|
47545
|
+
async handleNetsSessionEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
47546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleNetsSessionEvents(options);
|
|
47547
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47548
|
+
},
|
|
47154
47549
|
/**
|
|
47155
47550
|
*
|
|
47156
47551
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47192,7 +47587,7 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
47192
47587
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47193
47588
|
},
|
|
47194
47589
|
/**
|
|
47195
|
-
*
|
|
47590
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
47196
47591
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
47197
47592
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
47198
47593
|
* @param {*} [options] Override http request option.
|
|
@@ -47338,6 +47733,15 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
47338
47733
|
handleNetsEventsV2(options?: any): AxiosPromise<void> {
|
|
47339
47734
|
return localVarFp.handleNetsEventsV2(options).then((request) => request(axios, basePath));
|
|
47340
47735
|
},
|
|
47736
|
+
/**
|
|
47737
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47738
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47739
|
+
* @param {*} [options] Override http request option.
|
|
47740
|
+
* @throws {RequiredError}
|
|
47741
|
+
*/
|
|
47742
|
+
handleNetsSessionEvents(options?: any): AxiosPromise<void> {
|
|
47743
|
+
return localVarFp.handleNetsSessionEvents(options).then((request) => request(axios, basePath));
|
|
47744
|
+
},
|
|
47341
47745
|
/**
|
|
47342
47746
|
*
|
|
47343
47747
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47375,7 +47779,7 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
47375
47779
|
return localVarFp.handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
|
|
47376
47780
|
},
|
|
47377
47781
|
/**
|
|
47378
|
-
*
|
|
47782
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
47379
47783
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
47380
47784
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
47381
47785
|
* @param {*} [options] Override http request option.
|
|
@@ -47511,6 +47915,15 @@ export interface WebhookApiInterface {
|
|
|
47511
47915
|
*/
|
|
47512
47916
|
handleNetsEventsV2(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47513
47917
|
|
|
47918
|
+
/**
|
|
47919
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47920
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47921
|
+
* @param {*} [options] Override http request option.
|
|
47922
|
+
* @throws {RequiredError}
|
|
47923
|
+
* @memberof WebhookApiInterface
|
|
47924
|
+
*/
|
|
47925
|
+
handleNetsSessionEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47926
|
+
|
|
47514
47927
|
/**
|
|
47515
47928
|
*
|
|
47516
47929
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47548,7 +47961,7 @@ export interface WebhookApiInterface {
|
|
|
47548
47961
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47549
47962
|
|
|
47550
47963
|
/**
|
|
47551
|
-
*
|
|
47964
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
47552
47965
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
47553
47966
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
47554
47967
|
* @param {*} [options] Override http request option.
|
|
@@ -47696,6 +48109,17 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
47696
48109
|
return WebhookApiFp(this.configuration).handleNetsEventsV2(options).then((request) => request(this.axios, this.basePath));
|
|
47697
48110
|
}
|
|
47698
48111
|
|
|
48112
|
+
/**
|
|
48113
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
48114
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
48115
|
+
* @param {*} [options] Override http request option.
|
|
48116
|
+
* @throws {RequiredError}
|
|
48117
|
+
* @memberof WebhookApi
|
|
48118
|
+
*/
|
|
48119
|
+
public handleNetsSessionEvents(options?: AxiosRequestConfig) {
|
|
48120
|
+
return WebhookApiFp(this.configuration).handleNetsSessionEvents(options).then((request) => request(this.axios, this.basePath));
|
|
48121
|
+
}
|
|
48122
|
+
|
|
47699
48123
|
/**
|
|
47700
48124
|
*
|
|
47701
48125
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47741,7 +48165,7 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
47741
48165
|
}
|
|
47742
48166
|
|
|
47743
48167
|
/**
|
|
47744
|
-
*
|
|
48168
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
47745
48169
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
47746
48170
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
47747
48171
|
* @param {*} [options] Override http request option.
|