@finverse/sdk-typescript 0.0.111 → 0.0.113
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 +51 -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
|
|
@@ -4205,6 +4218,12 @@ export interface Principal {
|
|
|
4205
4218
|
* @memberof Principal
|
|
4206
4219
|
*/
|
|
4207
4220
|
expires_in?: number;
|
|
4221
|
+
/**
|
|
4222
|
+
*
|
|
4223
|
+
* @type {string}
|
|
4224
|
+
* @memberof Principal
|
|
4225
|
+
*/
|
|
4226
|
+
invoice_id?: string;
|
|
4208
4227
|
/**
|
|
4209
4228
|
*
|
|
4210
4229
|
* @type {Array<string>}
|
|
@@ -6205,6 +6224,12 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6205
6224
|
* @export
|
|
6206
6225
|
*/
|
|
6207
6226
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6227
|
+
/**
|
|
6228
|
+
* Confirm a payment against a payment Link
|
|
6229
|
+
* @param {*} [options] Override http request option.
|
|
6230
|
+
* @throws {RequiredError}
|
|
6231
|
+
*/
|
|
6232
|
+
confirmPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6208
6233
|
/**
|
|
6209
6234
|
* List mandates
|
|
6210
6235
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6242,6 +6267,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
6242
6267
|
* @export
|
|
6243
6268
|
*/
|
|
6244
6269
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
6270
|
+
/**
|
|
6271
|
+
* Confirm a payment against a payment Link
|
|
6272
|
+
* @param {*} [options] Override http request option.
|
|
6273
|
+
* @throws {RequiredError}
|
|
6274
|
+
*/
|
|
6275
|
+
confirmPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentResponse>>;
|
|
6245
6276
|
/**
|
|
6246
6277
|
* List mandates
|
|
6247
6278
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6279,6 +6310,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
6279
6310
|
* @export
|
|
6280
6311
|
*/
|
|
6281
6312
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6313
|
+
/**
|
|
6314
|
+
* Confirm a payment against a payment Link
|
|
6315
|
+
* @param {*} [options] Override http request option.
|
|
6316
|
+
* @throws {RequiredError}
|
|
6317
|
+
*/
|
|
6318
|
+
confirmPayment(options?: any): AxiosPromise<ConfirmPaymentResponse>;
|
|
6282
6319
|
/**
|
|
6283
6320
|
* List mandates
|
|
6284
6321
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6317,6 +6354,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
6317
6354
|
* @interface DefaultApi
|
|
6318
6355
|
*/
|
|
6319
6356
|
export interface DefaultApiInterface {
|
|
6357
|
+
/**
|
|
6358
|
+
* Confirm a payment against a payment Link
|
|
6359
|
+
* @param {*} [options] Override http request option.
|
|
6360
|
+
* @throws {RequiredError}
|
|
6361
|
+
* @memberof DefaultApiInterface
|
|
6362
|
+
*/
|
|
6363
|
+
confirmPayment(options?: AxiosRequestConfig): AxiosPromise<ConfirmPaymentResponse>;
|
|
6320
6364
|
/**
|
|
6321
6365
|
* List mandates
|
|
6322
6366
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -6358,6 +6402,13 @@ export interface DefaultApiInterface {
|
|
|
6358
6402
|
* @extends {BaseAPI}
|
|
6359
6403
|
*/
|
|
6360
6404
|
export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
6405
|
+
/**
|
|
6406
|
+
* Confirm a payment against a payment Link
|
|
6407
|
+
* @param {*} [options] Override http request option.
|
|
6408
|
+
* @throws {RequiredError}
|
|
6409
|
+
* @memberof DefaultApi
|
|
6410
|
+
*/
|
|
6411
|
+
confirmPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentResponse>>;
|
|
6361
6412
|
/**
|
|
6362
6413
|
* List mandates
|
|
6363
6414
|
* @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)
|