@finverse/sdk-typescript 0.0.129 → 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 +45 -0
- package/dist/api.js +57 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -653,6 +653,19 @@ export interface ConfirmPaymentResponse {
|
|
|
653
653
|
*/
|
|
654
654
|
success: boolean;
|
|
655
655
|
}
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @export
|
|
659
|
+
* @interface CreateFpsTokenResponse
|
|
660
|
+
*/
|
|
661
|
+
export interface CreateFpsTokenResponse {
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @type {PaymentLinkTokenResponse}
|
|
665
|
+
* @memberof CreateFpsTokenResponse
|
|
666
|
+
*/
|
|
667
|
+
fps_token: PaymentLinkTokenResponse;
|
|
668
|
+
}
|
|
656
669
|
/**
|
|
657
670
|
*
|
|
658
671
|
* @export
|
|
@@ -5831,6 +5844,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5831
5844
|
* @throws {RequiredError}
|
|
5832
5845
|
*/
|
|
5833
5846
|
confirmPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5847
|
+
/**
|
|
5848
|
+
* Create token for fps flow
|
|
5849
|
+
* @param {*} [options] Override http request option.
|
|
5850
|
+
* @throws {RequiredError}
|
|
5851
|
+
*/
|
|
5852
|
+
createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5834
5853
|
/**
|
|
5835
5854
|
* CREATE Mandate for payment link
|
|
5836
5855
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5901,6 +5920,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5901
5920
|
* @throws {RequiredError}
|
|
5902
5921
|
*/
|
|
5903
5922
|
confirmPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentResponse>>;
|
|
5923
|
+
/**
|
|
5924
|
+
* Create token for fps flow
|
|
5925
|
+
* @param {*} [options] Override http request option.
|
|
5926
|
+
* @throws {RequiredError}
|
|
5927
|
+
*/
|
|
5928
|
+
createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
|
|
5904
5929
|
/**
|
|
5905
5930
|
* CREATE Mandate for payment link
|
|
5906
5931
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5971,6 +5996,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
5971
5996
|
* @throws {RequiredError}
|
|
5972
5997
|
*/
|
|
5973
5998
|
confirmPayment(options?: any): AxiosPromise<ConfirmPaymentResponse>;
|
|
5999
|
+
/**
|
|
6000
|
+
* Create token for fps flow
|
|
6001
|
+
* @param {*} [options] Override http request option.
|
|
6002
|
+
* @throws {RequiredError}
|
|
6003
|
+
*/
|
|
6004
|
+
createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
|
|
5974
6005
|
/**
|
|
5975
6006
|
* CREATE Mandate for payment link
|
|
5976
6007
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6044,6 +6075,13 @@ export interface DefaultApiInterface {
|
|
|
6044
6075
|
* @memberof DefaultApiInterface
|
|
6045
6076
|
*/
|
|
6046
6077
|
confirmPayment(options?: AxiosRequestConfig): AxiosPromise<ConfirmPaymentResponse>;
|
|
6078
|
+
/**
|
|
6079
|
+
* Create token for fps flow
|
|
6080
|
+
* @param {*} [options] Override http request option.
|
|
6081
|
+
* @throws {RequiredError}
|
|
6082
|
+
* @memberof DefaultApiInterface
|
|
6083
|
+
*/
|
|
6084
|
+
createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
|
|
6047
6085
|
/**
|
|
6048
6086
|
* CREATE Mandate for payment link
|
|
6049
6087
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6123,6 +6161,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6123
6161
|
* @memberof DefaultApi
|
|
6124
6162
|
*/
|
|
6125
6163
|
confirmPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentResponse>>;
|
|
6164
|
+
/**
|
|
6165
|
+
* Create token for fps flow
|
|
6166
|
+
* @param {*} [options] Override http request option.
|
|
6167
|
+
* @throws {RequiredError}
|
|
6168
|
+
* @memberof DefaultApi
|
|
6169
|
+
*/
|
|
6170
|
+
createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
|
|
6126
6171
|
/**
|
|
6127
6172
|
* CREATE Mandate for payment link
|
|
6128
6173
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
package/dist/api.js
CHANGED
|
@@ -1633,6 +1633,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1633
1633
|
options: localVarRequestOptions,
|
|
1634
1634
|
};
|
|
1635
1635
|
}),
|
|
1636
|
+
/**
|
|
1637
|
+
* Create token for fps flow
|
|
1638
|
+
* @param {*} [options] Override http request option.
|
|
1639
|
+
* @throws {RequiredError}
|
|
1640
|
+
*/
|
|
1641
|
+
createFpsToken: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1642
|
+
const localVarPath = `/payment_links/fps/token`;
|
|
1643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1644
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1645
|
+
let baseOptions;
|
|
1646
|
+
if (configuration) {
|
|
1647
|
+
baseOptions = configuration.baseOptions;
|
|
1648
|
+
}
|
|
1649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1650
|
+
const localVarHeaderParameter = {};
|
|
1651
|
+
const localVarQueryParameter = {};
|
|
1652
|
+
// authentication Oauth2 required
|
|
1653
|
+
// oauth required
|
|
1654
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1655
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1656
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1657
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1658
|
+
return {
|
|
1659
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1660
|
+
options: localVarRequestOptions,
|
|
1661
|
+
};
|
|
1662
|
+
}),
|
|
1636
1663
|
/**
|
|
1637
1664
|
* CREATE Mandate for payment link
|
|
1638
1665
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -1890,6 +1917,17 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
1890
1917
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1891
1918
|
});
|
|
1892
1919
|
},
|
|
1920
|
+
/**
|
|
1921
|
+
* Create token for fps flow
|
|
1922
|
+
* @param {*} [options] Override http request option.
|
|
1923
|
+
* @throws {RequiredError}
|
|
1924
|
+
*/
|
|
1925
|
+
createFpsToken(options) {
|
|
1926
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1927
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFpsToken(options);
|
|
1928
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1929
|
+
});
|
|
1930
|
+
},
|
|
1893
1931
|
/**
|
|
1894
1932
|
* CREATE Mandate for payment link
|
|
1895
1933
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -1994,6 +2032,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1994
2032
|
confirmPayment(options) {
|
|
1995
2033
|
return localVarFp.confirmPayment(options).then((request) => request(axios, basePath));
|
|
1996
2034
|
},
|
|
2035
|
+
/**
|
|
2036
|
+
* Create token for fps flow
|
|
2037
|
+
* @param {*} [options] Override http request option.
|
|
2038
|
+
* @throws {RequiredError}
|
|
2039
|
+
*/
|
|
2040
|
+
createFpsToken(options) {
|
|
2041
|
+
return localVarFp.createFpsToken(options).then((request) => request(axios, basePath));
|
|
2042
|
+
},
|
|
1997
2043
|
/**
|
|
1998
2044
|
* CREATE Mandate for payment link
|
|
1999
2045
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -2095,6 +2141,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2095
2141
|
.confirmPayment(options)
|
|
2096
2142
|
.then((request) => request(this.axios, this.basePath));
|
|
2097
2143
|
}
|
|
2144
|
+
/**
|
|
2145
|
+
* Create token for fps flow
|
|
2146
|
+
* @param {*} [options] Override http request option.
|
|
2147
|
+
* @throws {RequiredError}
|
|
2148
|
+
* @memberof DefaultApi
|
|
2149
|
+
*/
|
|
2150
|
+
createFpsToken(options) {
|
|
2151
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2152
|
+
.createFpsToken(options)
|
|
2153
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2154
|
+
}
|
|
2098
2155
|
/**
|
|
2099
2156
|
* CREATE Mandate for payment link
|
|
2100
2157
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|