@finverse/sdk-typescript 0.0.269 → 0.0.271
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 +49 -0
- package/dist/api.js +63 -0
- package/package.json +1 -1
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}
|
|
@@ -8674,6 +8686,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
8674
8686
|
* @throws {RequiredError}
|
|
8675
8687
|
*/
|
|
8676
8688
|
getPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8689
|
+
/**
|
|
8690
|
+
* Get a payment method
|
|
8691
|
+
* @param {string} paymentMethodId
|
|
8692
|
+
* @param {*} [options] Override http request option.
|
|
8693
|
+
* @throws {RequiredError}
|
|
8694
|
+
*/
|
|
8695
|
+
getPaymentMethod: (paymentMethodId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8677
8696
|
/**
|
|
8678
8697
|
* Get payment method in payment link flow
|
|
8679
8698
|
* @param {*} [options] Override http request option.
|
|
@@ -8895,6 +8914,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
8895
8914
|
* @throws {RequiredError}
|
|
8896
8915
|
*/
|
|
8897
8916
|
getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
|
|
8917
|
+
/**
|
|
8918
|
+
* Get a payment method
|
|
8919
|
+
* @param {string} paymentMethodId
|
|
8920
|
+
* @param {*} [options] Override http request option.
|
|
8921
|
+
* @throws {RequiredError}
|
|
8922
|
+
*/
|
|
8923
|
+
getPaymentMethod(paymentMethodId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodResponse>>;
|
|
8898
8924
|
/**
|
|
8899
8925
|
* Get payment method in payment link flow
|
|
8900
8926
|
* @param {*} [options] Override http request option.
|
|
@@ -9116,6 +9142,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
9116
9142
|
* @throws {RequiredError}
|
|
9117
9143
|
*/
|
|
9118
9144
|
getPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
|
|
9145
|
+
/**
|
|
9146
|
+
* Get a payment method
|
|
9147
|
+
* @param {string} paymentMethodId
|
|
9148
|
+
* @param {*} [options] Override http request option.
|
|
9149
|
+
* @throws {RequiredError}
|
|
9150
|
+
*/
|
|
9151
|
+
getPaymentMethod(paymentMethodId: string, options?: any): AxiosPromise<PaymentMethodResponse>;
|
|
9119
9152
|
/**
|
|
9120
9153
|
* Get payment method in payment link flow
|
|
9121
9154
|
* @param {*} [options] Override http request option.
|
|
@@ -9355,6 +9388,14 @@ export interface DefaultApiInterface {
|
|
|
9355
9388
|
* @memberof DefaultApiInterface
|
|
9356
9389
|
*/
|
|
9357
9390
|
getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
|
|
9391
|
+
/**
|
|
9392
|
+
* Get a payment method
|
|
9393
|
+
* @param {string} paymentMethodId
|
|
9394
|
+
* @param {*} [options] Override http request option.
|
|
9395
|
+
* @throws {RequiredError}
|
|
9396
|
+
* @memberof DefaultApiInterface
|
|
9397
|
+
*/
|
|
9398
|
+
getPaymentMethod(paymentMethodId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodResponse>;
|
|
9358
9399
|
/**
|
|
9359
9400
|
* Get payment method in payment link flow
|
|
9360
9401
|
* @param {*} [options] Override http request option.
|
|
@@ -9606,6 +9647,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
9606
9647
|
* @memberof DefaultApi
|
|
9607
9648
|
*/
|
|
9608
9649
|
getPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
|
|
9650
|
+
/**
|
|
9651
|
+
* Get a payment method
|
|
9652
|
+
* @param {string} paymentMethodId
|
|
9653
|
+
* @param {*} [options] Override http request option.
|
|
9654
|
+
* @throws {RequiredError}
|
|
9655
|
+
* @memberof DefaultApi
|
|
9656
|
+
*/
|
|
9657
|
+
getPaymentMethod(paymentMethodId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentMethodResponse>>;
|
|
9609
9658
|
/**
|
|
9610
9659
|
* Get payment method in payment link flow
|
|
9611
9660
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -2565,6 +2565,36 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2565
2565
|
options: localVarRequestOptions,
|
|
2566
2566
|
};
|
|
2567
2567
|
}),
|
|
2568
|
+
/**
|
|
2569
|
+
* Get a payment method
|
|
2570
|
+
* @param {string} paymentMethodId
|
|
2571
|
+
* @param {*} [options] Override http request option.
|
|
2572
|
+
* @throws {RequiredError}
|
|
2573
|
+
*/
|
|
2574
|
+
getPaymentMethod: (paymentMethodId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2575
|
+
// verify required parameter 'paymentMethodId' is not null or undefined
|
|
2576
|
+
common_1.assertParamExists('getPaymentMethod', 'paymentMethodId', paymentMethodId);
|
|
2577
|
+
const localVarPath = `/payment_methods/{paymentMethodId}`.replace(`{${'paymentMethodId'}}`, encodeURIComponent(String(paymentMethodId)));
|
|
2578
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2579
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2580
|
+
let baseOptions;
|
|
2581
|
+
if (configuration) {
|
|
2582
|
+
baseOptions = configuration.baseOptions;
|
|
2583
|
+
}
|
|
2584
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2585
|
+
const localVarHeaderParameter = {};
|
|
2586
|
+
const localVarQueryParameter = {};
|
|
2587
|
+
// authentication Oauth2 required
|
|
2588
|
+
// oauth required
|
|
2589
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2590
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2592
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2593
|
+
return {
|
|
2594
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2595
|
+
options: localVarRequestOptions,
|
|
2596
|
+
};
|
|
2597
|
+
}),
|
|
2568
2598
|
/**
|
|
2569
2599
|
* Get payment method in payment link flow
|
|
2570
2600
|
* @param {*} [options] Override http request option.
|
|
@@ -3206,6 +3236,18 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
3206
3236
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3207
3237
|
});
|
|
3208
3238
|
},
|
|
3239
|
+
/**
|
|
3240
|
+
* Get a payment method
|
|
3241
|
+
* @param {string} paymentMethodId
|
|
3242
|
+
* @param {*} [options] Override http request option.
|
|
3243
|
+
* @throws {RequiredError}
|
|
3244
|
+
*/
|
|
3245
|
+
getPaymentMethod(paymentMethodId, options) {
|
|
3246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3247
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentMethod(paymentMethodId, options);
|
|
3248
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3249
|
+
});
|
|
3250
|
+
},
|
|
3209
3251
|
/**
|
|
3210
3252
|
* Get payment method in payment link flow
|
|
3211
3253
|
* @param {*} [options] Override http request option.
|
|
@@ -3533,6 +3575,15 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3533
3575
|
getPaymentLink(paymentLinkId, options) {
|
|
3534
3576
|
return localVarFp.getPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
|
|
3535
3577
|
},
|
|
3578
|
+
/**
|
|
3579
|
+
* Get a payment method
|
|
3580
|
+
* @param {string} paymentMethodId
|
|
3581
|
+
* @param {*} [options] Override http request option.
|
|
3582
|
+
* @throws {RequiredError}
|
|
3583
|
+
*/
|
|
3584
|
+
getPaymentMethod(paymentMethodId, options) {
|
|
3585
|
+
return localVarFp.getPaymentMethod(paymentMethodId, options).then((request) => request(axios, basePath));
|
|
3586
|
+
},
|
|
3536
3587
|
/**
|
|
3537
3588
|
* Get payment method in payment link flow
|
|
3538
3589
|
* @param {*} [options] Override http request option.
|
|
@@ -3874,6 +3925,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3874
3925
|
.getPaymentLink(paymentLinkId, options)
|
|
3875
3926
|
.then((request) => request(this.axios, this.basePath));
|
|
3876
3927
|
}
|
|
3928
|
+
/**
|
|
3929
|
+
* Get a payment method
|
|
3930
|
+
* @param {string} paymentMethodId
|
|
3931
|
+
* @param {*} [options] Override http request option.
|
|
3932
|
+
* @throws {RequiredError}
|
|
3933
|
+
* @memberof DefaultApi
|
|
3934
|
+
*/
|
|
3935
|
+
getPaymentMethod(paymentMethodId, options) {
|
|
3936
|
+
return exports.DefaultApiFp(this.configuration)
|
|
3937
|
+
.getPaymentMethod(paymentMethodId, options)
|
|
3938
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3939
|
+
}
|
|
3877
3940
|
/**
|
|
3878
3941
|
* Get payment method in payment link flow
|
|
3879
3942
|
* @param {*} [options] Override http request option.
|