@finverse/sdk-typescript 0.0.268 → 0.0.270
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 +44 -0
- package/dist/api.js +57 -0
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -5836,6 +5836,18 @@ export interface PaymentResponse {
|
|
|
5836
5836
|
* @memberof PaymentResponse
|
|
5837
5837
|
*/
|
|
5838
5838
|
amount: number;
|
|
5839
|
+
/**
|
|
5840
|
+
* Surcharge amount in minor
|
|
5841
|
+
* @type {number}
|
|
5842
|
+
* @memberof PaymentResponse
|
|
5843
|
+
*/
|
|
5844
|
+
surcharge_amount: number;
|
|
5845
|
+
/**
|
|
5846
|
+
* Amount with all fees and surcharges applied in minor
|
|
5847
|
+
* @type {number}
|
|
5848
|
+
* @memberof PaymentResponse
|
|
5849
|
+
*/
|
|
5850
|
+
amount_total_with_surcharge: number;
|
|
5839
5851
|
/**
|
|
5840
5852
|
* The currency code as defined in ISO 4217.
|
|
5841
5853
|
* @type {string}
|
|
@@ -8564,6 +8576,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
8564
8576
|
* @throws {RequiredError}
|
|
8565
8577
|
*/
|
|
8566
8578
|
cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8579
|
+
/**
|
|
8580
|
+
* cancel payment on payment link
|
|
8581
|
+
* @param {*} [options] Override http request option.
|
|
8582
|
+
* @throws {RequiredError}
|
|
8583
|
+
*/
|
|
8584
|
+
cancelPaymentPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8567
8585
|
/**
|
|
8568
8586
|
* Cancel Payout by payout_id
|
|
8569
8587
|
* @param {string} payoutId payout id
|
|
@@ -8779,6 +8797,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
8779
8797
|
* @throws {RequiredError}
|
|
8780
8798
|
*/
|
|
8781
8799
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
|
|
8800
|
+
/**
|
|
8801
|
+
* cancel payment on payment link
|
|
8802
|
+
* @param {*} [options] Override http request option.
|
|
8803
|
+
* @throws {RequiredError}
|
|
8804
|
+
*/
|
|
8805
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8782
8806
|
/**
|
|
8783
8807
|
* Cancel Payout by payout_id
|
|
8784
8808
|
* @param {string} payoutId payout id
|
|
@@ -8994,6 +9018,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
8994
9018
|
* @throws {RequiredError}
|
|
8995
9019
|
*/
|
|
8996
9020
|
cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
|
|
9021
|
+
/**
|
|
9022
|
+
* cancel payment on payment link
|
|
9023
|
+
* @param {*} [options] Override http request option.
|
|
9024
|
+
* @throws {RequiredError}
|
|
9025
|
+
*/
|
|
9026
|
+
cancelPaymentPaymentLink(options?: any): AxiosPromise<void>;
|
|
8997
9027
|
/**
|
|
8998
9028
|
* Cancel Payout by payout_id
|
|
8999
9029
|
* @param {string} payoutId payout id
|
|
@@ -9211,6 +9241,13 @@ export interface DefaultApiInterface {
|
|
|
9211
9241
|
* @memberof DefaultApiInterface
|
|
9212
9242
|
*/
|
|
9213
9243
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
|
|
9244
|
+
/**
|
|
9245
|
+
* cancel payment on payment link
|
|
9246
|
+
* @param {*} [options] Override http request option.
|
|
9247
|
+
* @throws {RequiredError}
|
|
9248
|
+
* @memberof DefaultApiInterface
|
|
9249
|
+
*/
|
|
9250
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
9214
9251
|
/**
|
|
9215
9252
|
* Cancel Payout by payout_id
|
|
9216
9253
|
* @param {string} payoutId payout id
|
|
@@ -9455,6 +9492,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
9455
9492
|
* @memberof DefaultApi
|
|
9456
9493
|
*/
|
|
9457
9494
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
|
|
9495
|
+
/**
|
|
9496
|
+
* cancel payment on payment link
|
|
9497
|
+
* @param {*} [options] Override http request option.
|
|
9498
|
+
* @throws {RequiredError}
|
|
9499
|
+
* @memberof DefaultApi
|
|
9500
|
+
*/
|
|
9501
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
9458
9502
|
/**
|
|
9459
9503
|
* Cancel Payout by payout_id
|
|
9460
9504
|
* @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.270",
|
|
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
|
},
|