@finverse/sdk-typescript 0.0.130 → 0.0.131
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 +5 -23
- package/dist/api.js +7 -15
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -653,19 +653,6 @@ export interface ConfirmPaymentResponse {
|
|
|
653
653
|
*/
|
|
654
654
|
success: boolean;
|
|
655
655
|
}
|
|
656
|
-
/**
|
|
657
|
-
*
|
|
658
|
-
* @export
|
|
659
|
-
* @interface CreateFpsTokenRequest
|
|
660
|
-
*/
|
|
661
|
-
export interface CreateFpsTokenRequest {
|
|
662
|
-
/**
|
|
663
|
-
*
|
|
664
|
-
* @type {string}
|
|
665
|
-
* @memberof CreateFpsTokenRequest
|
|
666
|
-
*/
|
|
667
|
-
invoice_id: string;
|
|
668
|
-
}
|
|
669
656
|
/**
|
|
670
657
|
*
|
|
671
658
|
* @export
|
|
@@ -5859,11 +5846,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5859
5846
|
confirmPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5860
5847
|
/**
|
|
5861
5848
|
* Create token for fps flow
|
|
5862
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
5863
5849
|
* @param {*} [options] Override http request option.
|
|
5864
5850
|
* @throws {RequiredError}
|
|
5865
5851
|
*/
|
|
5866
|
-
createFpsToken: (
|
|
5852
|
+
createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5867
5853
|
/**
|
|
5868
5854
|
* CREATE Mandate for payment link
|
|
5869
5855
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5936,11 +5922,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5936
5922
|
confirmPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentResponse>>;
|
|
5937
5923
|
/**
|
|
5938
5924
|
* Create token for fps flow
|
|
5939
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
5940
5925
|
* @param {*} [options] Override http request option.
|
|
5941
5926
|
* @throws {RequiredError}
|
|
5942
5927
|
*/
|
|
5943
|
-
createFpsToken(
|
|
5928
|
+
createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
|
|
5944
5929
|
/**
|
|
5945
5930
|
* CREATE Mandate for payment link
|
|
5946
5931
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6013,11 +5998,10 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
6013
5998
|
confirmPayment(options?: any): AxiosPromise<ConfirmPaymentResponse>;
|
|
6014
5999
|
/**
|
|
6015
6000
|
* Create token for fps flow
|
|
6016
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6017
6001
|
* @param {*} [options] Override http request option.
|
|
6018
6002
|
* @throws {RequiredError}
|
|
6019
6003
|
*/
|
|
6020
|
-
createFpsToken(
|
|
6004
|
+
createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
|
|
6021
6005
|
/**
|
|
6022
6006
|
* CREATE Mandate for payment link
|
|
6023
6007
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6093,12 +6077,11 @@ export interface DefaultApiInterface {
|
|
|
6093
6077
|
confirmPayment(options?: AxiosRequestConfig): AxiosPromise<ConfirmPaymentResponse>;
|
|
6094
6078
|
/**
|
|
6095
6079
|
* Create token for fps flow
|
|
6096
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6097
6080
|
* @param {*} [options] Override http request option.
|
|
6098
6081
|
* @throws {RequiredError}
|
|
6099
6082
|
* @memberof DefaultApiInterface
|
|
6100
6083
|
*/
|
|
6101
|
-
createFpsToken(
|
|
6084
|
+
createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
|
|
6102
6085
|
/**
|
|
6103
6086
|
* CREATE Mandate for payment link
|
|
6104
6087
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6180,12 +6163,11 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6180
6163
|
confirmPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentResponse>>;
|
|
6181
6164
|
/**
|
|
6182
6165
|
* Create token for fps flow
|
|
6183
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6184
6166
|
* @param {*} [options] Override http request option.
|
|
6185
6167
|
* @throws {RequiredError}
|
|
6186
6168
|
* @memberof DefaultApi
|
|
6187
6169
|
*/
|
|
6188
|
-
createFpsToken(
|
|
6170
|
+
createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
|
|
6189
6171
|
/**
|
|
6190
6172
|
* CREATE Mandate for payment link
|
|
6191
6173
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
package/dist/api.js
CHANGED
|
@@ -1635,13 +1635,10 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1635
1635
|
}),
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Create token for fps flow
|
|
1638
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
1639
1638
|
* @param {*} [options] Override http request option.
|
|
1640
1639
|
* @throws {RequiredError}
|
|
1641
1640
|
*/
|
|
1642
|
-
createFpsToken: (
|
|
1643
|
-
// verify required parameter 'createFpsTokenRequest' is not null or undefined
|
|
1644
|
-
common_1.assertParamExists('createFpsToken', 'createFpsTokenRequest', createFpsTokenRequest);
|
|
1641
|
+
createFpsToken: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1645
1642
|
const localVarPath = `/payment_links/fps/token`;
|
|
1646
1643
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1647
1644
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1655,11 +1652,9 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1655
1652
|
// authentication Oauth2 required
|
|
1656
1653
|
// oauth required
|
|
1657
1654
|
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1658
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1659
1655
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1660
1656
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1661
1657
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1662
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFpsTokenRequest, localVarRequestOptions, configuration);
|
|
1663
1658
|
return {
|
|
1664
1659
|
url: common_1.toPathString(localVarUrlObj),
|
|
1665
1660
|
options: localVarRequestOptions,
|
|
@@ -1924,13 +1919,12 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
1924
1919
|
},
|
|
1925
1920
|
/**
|
|
1926
1921
|
* Create token for fps flow
|
|
1927
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
1928
1922
|
* @param {*} [options] Override http request option.
|
|
1929
1923
|
* @throws {RequiredError}
|
|
1930
1924
|
*/
|
|
1931
|
-
createFpsToken(
|
|
1925
|
+
createFpsToken(options) {
|
|
1932
1926
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1933
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFpsToken(
|
|
1927
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFpsToken(options);
|
|
1934
1928
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1935
1929
|
});
|
|
1936
1930
|
},
|
|
@@ -2040,12 +2034,11 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2040
2034
|
},
|
|
2041
2035
|
/**
|
|
2042
2036
|
* Create token for fps flow
|
|
2043
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
2044
2037
|
* @param {*} [options] Override http request option.
|
|
2045
2038
|
* @throws {RequiredError}
|
|
2046
2039
|
*/
|
|
2047
|
-
createFpsToken(
|
|
2048
|
-
return localVarFp.createFpsToken(
|
|
2040
|
+
createFpsToken(options) {
|
|
2041
|
+
return localVarFp.createFpsToken(options).then((request) => request(axios, basePath));
|
|
2049
2042
|
},
|
|
2050
2043
|
/**
|
|
2051
2044
|
* CREATE Mandate for payment link
|
|
@@ -2150,14 +2143,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2150
2143
|
}
|
|
2151
2144
|
/**
|
|
2152
2145
|
* Create token for fps flow
|
|
2153
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
2154
2146
|
* @param {*} [options] Override http request option.
|
|
2155
2147
|
* @throws {RequiredError}
|
|
2156
2148
|
* @memberof DefaultApi
|
|
2157
2149
|
*/
|
|
2158
|
-
createFpsToken(
|
|
2150
|
+
createFpsToken(options) {
|
|
2159
2151
|
return exports.DefaultApiFp(this.configuration)
|
|
2160
|
-
.createFpsToken(
|
|
2152
|
+
.createFpsToken(options)
|
|
2161
2153
|
.then((request) => request(this.axios, this.basePath));
|
|
2162
2154
|
}
|
|
2163
2155
|
/**
|