@finverse/sdk-typescript 0.0.111 → 0.0.112
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/api.d.ts +45 -0
- package/dist/api.js +57 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -640,6 +640,19 @@ export interface CompositeStatementLink {
|
|
|
640
640
|
*/
|
|
641
641
|
expiry: string;
|
|
642
642
|
}
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @export
|
|
646
|
+
* @interface ConfirmPaymentResponse
|
|
647
|
+
*/
|
|
648
|
+
export interface ConfirmPaymentResponse {
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* @type {boolean}
|
|
652
|
+
* @memberof ConfirmPaymentResponse
|
|
653
|
+
*/
|
|
654
|
+
success: boolean;
|
|
655
|
+
}
|
|
643
656
|
/**
|
|
644
657
|
*
|
|
645
658
|
* @export
|
|
@@ -6205,6 +6218,12 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6205
6218
|
* @export
|
|
6206
6219
|
*/
|
|
6207
6220
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6221
|
+
/**
|
|
6222
|
+
* Confirm a payment against a payment Link
|
|
6223
|
+
* @param {*} [options] Override http request option.
|
|
6224
|
+
* @throws {RequiredError}
|
|
6225
|
+
*/
|
|
6226
|
+
confirmPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6208
6227
|
/**
|
|
6209
6228
|
* List mandates
|
|
6210
6229
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6242,6 +6261,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
6242
6261
|
* @export
|
|
6243
6262
|
*/
|
|
6244
6263
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
6264
|
+
/**
|
|
6265
|
+
* Confirm a payment against a payment Link
|
|
6266
|
+
* @param {*} [options] Override http request option.
|
|
6267
|
+
* @throws {RequiredError}
|
|
6268
|
+
*/
|
|
6269
|
+
confirmPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentResponse>>;
|
|
6245
6270
|
/**
|
|
6246
6271
|
* List mandates
|
|
6247
6272
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6279,6 +6304,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
6279
6304
|
* @export
|
|
6280
6305
|
*/
|
|
6281
6306
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6307
|
+
/**
|
|
6308
|
+
* Confirm a payment against a payment Link
|
|
6309
|
+
* @param {*} [options] Override http request option.
|
|
6310
|
+
* @throws {RequiredError}
|
|
6311
|
+
*/
|
|
6312
|
+
confirmPayment(options?: any): AxiosPromise<ConfirmPaymentResponse>;
|
|
6282
6313
|
/**
|
|
6283
6314
|
* List mandates
|
|
6284
6315
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6317,6 +6348,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
6317
6348
|
* @interface DefaultApi
|
|
6318
6349
|
*/
|
|
6319
6350
|
export interface DefaultApiInterface {
|
|
6351
|
+
/**
|
|
6352
|
+
* Confirm a payment against a payment Link
|
|
6353
|
+
* @param {*} [options] Override http request option.
|
|
6354
|
+
* @throws {RequiredError}
|
|
6355
|
+
* @memberof DefaultApiInterface
|
|
6356
|
+
*/
|
|
6357
|
+
confirmPayment(options?: AxiosRequestConfig): AxiosPromise<ConfirmPaymentResponse>;
|
|
6320
6358
|
/**
|
|
6321
6359
|
* List mandates
|
|
6322
6360
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6358,6 +6396,13 @@ export interface DefaultApiInterface {
|
|
|
6358
6396
|
* @extends {BaseAPI}
|
|
6359
6397
|
*/
|
|
6360
6398
|
export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
6399
|
+
/**
|
|
6400
|
+
* Confirm a payment against a payment Link
|
|
6401
|
+
* @param {*} [options] Override http request option.
|
|
6402
|
+
* @throws {RequiredError}
|
|
6403
|
+
* @memberof DefaultApi
|
|
6404
|
+
*/
|
|
6405
|
+
confirmPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentResponse>>;
|
|
6361
6406
|
/**
|
|
6362
6407
|
* List mandates
|
|
6363
6408
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
package/dist/api.js
CHANGED
|
@@ -2085,6 +2085,33 @@ exports.CustomerApi = CustomerApi;
|
|
|
2085
2085
|
*/
|
|
2086
2086
|
exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
2087
2087
|
return {
|
|
2088
|
+
/**
|
|
2089
|
+
* Confirm a payment against a payment Link
|
|
2090
|
+
* @param {*} [options] Override http request option.
|
|
2091
|
+
* @throws {RequiredError}
|
|
2092
|
+
*/
|
|
2093
|
+
confirmPayment: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2094
|
+
const localVarPath = `/payments/confirm`;
|
|
2095
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2096
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2097
|
+
let baseOptions;
|
|
2098
|
+
if (configuration) {
|
|
2099
|
+
baseOptions = configuration.baseOptions;
|
|
2100
|
+
}
|
|
2101
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2102
|
+
const localVarHeaderParameter = {};
|
|
2103
|
+
const localVarQueryParameter = {};
|
|
2104
|
+
// authentication Oauth2 required
|
|
2105
|
+
// oauth required
|
|
2106
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2107
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2109
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2110
|
+
return {
|
|
2111
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2112
|
+
options: localVarRequestOptions,
|
|
2113
|
+
};
|
|
2114
|
+
}),
|
|
2088
2115
|
/**
|
|
2089
2116
|
* List mandates
|
|
2090
2117
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -2228,6 +2255,17 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2228
2255
|
exports.DefaultApiFp = function (configuration) {
|
|
2229
2256
|
const localVarAxiosParamCreator = exports.DefaultApiAxiosParamCreator(configuration);
|
|
2230
2257
|
return {
|
|
2258
|
+
/**
|
|
2259
|
+
* Confirm a payment against a payment Link
|
|
2260
|
+
* @param {*} [options] Override http request option.
|
|
2261
|
+
* @throws {RequiredError}
|
|
2262
|
+
*/
|
|
2263
|
+
confirmPayment(options) {
|
|
2264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2265
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPayment(options);
|
|
2266
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2267
|
+
});
|
|
2268
|
+
},
|
|
2231
2269
|
/**
|
|
2232
2270
|
* List mandates
|
|
2233
2271
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -2278,6 +2316,14 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2278
2316
|
exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
2279
2317
|
const localVarFp = exports.DefaultApiFp(configuration);
|
|
2280
2318
|
return {
|
|
2319
|
+
/**
|
|
2320
|
+
* Confirm a payment against a payment Link
|
|
2321
|
+
* @param {*} [options] Override http request option.
|
|
2322
|
+
* @throws {RequiredError}
|
|
2323
|
+
*/
|
|
2324
|
+
confirmPayment(options) {
|
|
2325
|
+
return localVarFp.confirmPayment(options).then((request) => request(axios, basePath));
|
|
2326
|
+
},
|
|
2281
2327
|
/**
|
|
2282
2328
|
* List mandates
|
|
2283
2329
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -2326,6 +2372,17 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2326
2372
|
* @extends {BaseAPI}
|
|
2327
2373
|
*/
|
|
2328
2374
|
class DefaultApi extends base_1.BaseAPI {
|
|
2375
|
+
/**
|
|
2376
|
+
* Confirm a payment against a payment Link
|
|
2377
|
+
* @param {*} [options] Override http request option.
|
|
2378
|
+
* @throws {RequiredError}
|
|
2379
|
+
* @memberof DefaultApi
|
|
2380
|
+
*/
|
|
2381
|
+
confirmPayment(options) {
|
|
2382
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2383
|
+
.confirmPayment(options)
|
|
2384
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2385
|
+
}
|
|
2329
2386
|
/**
|
|
2330
2387
|
* List mandates
|
|
2331
2388
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|