@finverse/sdk-typescript 0.0.268 → 0.0.269
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 +32 -0
- package/dist/api.js +57 -0
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -8564,6 +8564,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
8564
8564
|
* @throws {RequiredError}
|
|
8565
8565
|
*/
|
|
8566
8566
|
cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8567
|
+
/**
|
|
8568
|
+
* cancel payment on payment link
|
|
8569
|
+
* @param {*} [options] Override http request option.
|
|
8570
|
+
* @throws {RequiredError}
|
|
8571
|
+
*/
|
|
8572
|
+
cancelPaymentPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8567
8573
|
/**
|
|
8568
8574
|
* Cancel Payout by payout_id
|
|
8569
8575
|
* @param {string} payoutId payout id
|
|
@@ -8779,6 +8785,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
8779
8785
|
* @throws {RequiredError}
|
|
8780
8786
|
*/
|
|
8781
8787
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
|
|
8788
|
+
/**
|
|
8789
|
+
* cancel payment on payment link
|
|
8790
|
+
* @param {*} [options] Override http request option.
|
|
8791
|
+
* @throws {RequiredError}
|
|
8792
|
+
*/
|
|
8793
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8782
8794
|
/**
|
|
8783
8795
|
* Cancel Payout by payout_id
|
|
8784
8796
|
* @param {string} payoutId payout id
|
|
@@ -8994,6 +9006,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
8994
9006
|
* @throws {RequiredError}
|
|
8995
9007
|
*/
|
|
8996
9008
|
cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
|
|
9009
|
+
/**
|
|
9010
|
+
* cancel payment on payment link
|
|
9011
|
+
* @param {*} [options] Override http request option.
|
|
9012
|
+
* @throws {RequiredError}
|
|
9013
|
+
*/
|
|
9014
|
+
cancelPaymentPaymentLink(options?: any): AxiosPromise<void>;
|
|
8997
9015
|
/**
|
|
8998
9016
|
* Cancel Payout by payout_id
|
|
8999
9017
|
* @param {string} payoutId payout id
|
|
@@ -9211,6 +9229,13 @@ export interface DefaultApiInterface {
|
|
|
9211
9229
|
* @memberof DefaultApiInterface
|
|
9212
9230
|
*/
|
|
9213
9231
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
|
|
9232
|
+
/**
|
|
9233
|
+
* cancel payment on payment link
|
|
9234
|
+
* @param {*} [options] Override http request option.
|
|
9235
|
+
* @throws {RequiredError}
|
|
9236
|
+
* @memberof DefaultApiInterface
|
|
9237
|
+
*/
|
|
9238
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
9214
9239
|
/**
|
|
9215
9240
|
* Cancel Payout by payout_id
|
|
9216
9241
|
* @param {string} payoutId payout id
|
|
@@ -9455,6 +9480,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
9455
9480
|
* @memberof DefaultApi
|
|
9456
9481
|
*/
|
|
9457
9482
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
|
|
9483
|
+
/**
|
|
9484
|
+
* cancel payment on payment link
|
|
9485
|
+
* @param {*} [options] Override http request option.
|
|
9486
|
+
* @throws {RequiredError}
|
|
9487
|
+
* @memberof DefaultApi
|
|
9488
|
+
*/
|
|
9489
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
9458
9490
|
/**
|
|
9459
9491
|
* Cancel Payout by payout_id
|
|
9460
9492
|
* @param {string} payoutId payout id
|
package/dist/api.js
CHANGED
|
@@ -2068,6 +2068,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2068
2068
|
options: localVarRequestOptions,
|
|
2069
2069
|
};
|
|
2070
2070
|
}),
|
|
2071
|
+
/**
|
|
2072
|
+
* cancel payment on payment link
|
|
2073
|
+
* @param {*} [options] Override http request option.
|
|
2074
|
+
* @throws {RequiredError}
|
|
2075
|
+
*/
|
|
2076
|
+
cancelPaymentPaymentLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2077
|
+
const localVarPath = `/payment_link/fvlink/payment/cancel`;
|
|
2078
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2079
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2080
|
+
let baseOptions;
|
|
2081
|
+
if (configuration) {
|
|
2082
|
+
baseOptions = configuration.baseOptions;
|
|
2083
|
+
}
|
|
2084
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2085
|
+
const localVarHeaderParameter = {};
|
|
2086
|
+
const localVarQueryParameter = {};
|
|
2087
|
+
// authentication Oauth2 required
|
|
2088
|
+
// oauth required
|
|
2089
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2090
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2092
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2093
|
+
return {
|
|
2094
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2095
|
+
options: localVarRequestOptions,
|
|
2096
|
+
};
|
|
2097
|
+
}),
|
|
2071
2098
|
/**
|
|
2072
2099
|
* Cancel Payout by payout_id
|
|
2073
2100
|
* @param {string} payoutId payout id
|
|
@@ -2989,6 +3016,17 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2989
3016
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2990
3017
|
});
|
|
2991
3018
|
},
|
|
3019
|
+
/**
|
|
3020
|
+
* cancel payment on payment link
|
|
3021
|
+
* @param {*} [options] Override http request option.
|
|
3022
|
+
* @throws {RequiredError}
|
|
3023
|
+
*/
|
|
3024
|
+
cancelPaymentPaymentLink(options) {
|
|
3025
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPaymentPaymentLink(options);
|
|
3027
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3028
|
+
});
|
|
3029
|
+
},
|
|
2992
3030
|
/**
|
|
2993
3031
|
* Cancel Payout by payout_id
|
|
2994
3032
|
* @param {string} payoutId payout id
|
|
@@ -3339,6 +3377,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3339
3377
|
cancelPaymentLink(paymentLinkId, options) {
|
|
3340
3378
|
return localVarFp.cancelPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
|
|
3341
3379
|
},
|
|
3380
|
+
/**
|
|
3381
|
+
* cancel payment on payment link
|
|
3382
|
+
* @param {*} [options] Override http request option.
|
|
3383
|
+
* @throws {RequiredError}
|
|
3384
|
+
*/
|
|
3385
|
+
cancelPaymentPaymentLink(options) {
|
|
3386
|
+
return localVarFp.cancelPaymentPaymentLink(options).then((request) => request(axios, basePath));
|
|
3387
|
+
},
|
|
3342
3388
|
/**
|
|
3343
3389
|
* Cancel Payout by payout_id
|
|
3344
3390
|
* @param {string} payoutId payout id
|
|
@@ -3638,6 +3684,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3638
3684
|
.cancelPaymentLink(paymentLinkId, options)
|
|
3639
3685
|
.then((request) => request(this.axios, this.basePath));
|
|
3640
3686
|
}
|
|
3687
|
+
/**
|
|
3688
|
+
* cancel payment on payment link
|
|
3689
|
+
* @param {*} [options] Override http request option.
|
|
3690
|
+
* @throws {RequiredError}
|
|
3691
|
+
* @memberof DefaultApi
|
|
3692
|
+
*/
|
|
3693
|
+
cancelPaymentPaymentLink(options) {
|
|
3694
|
+
return exports.DefaultApiFp(this.configuration)
|
|
3695
|
+
.cancelPaymentPaymentLink(options)
|
|
3696
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3697
|
+
}
|
|
3641
3698
|
/**
|
|
3642
3699
|
* Cancel Payout by payout_id
|
|
3643
3700
|
* @param {string} payoutId payout id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.269",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"axios": "^0.21.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/chai": "^5.0.
|
|
24
|
+
"@types/chai": "^5.0.1",
|
|
25
25
|
"@types/mocha": "^10.0.9",
|
|
26
26
|
"@types/node": "^12.11.5",
|
|
27
27
|
"axios-mock-adapter": "^1.21.2",
|
|
28
28
|
"chai": "^5.1.2",
|
|
29
|
-
"mocha": "^10.
|
|
29
|
+
"mocha": "^10.8.2",
|
|
30
30
|
"ts-node": "^10.9.2",
|
|
31
31
|
"typescript": "^3.6.4"
|
|
32
32
|
},
|