@finverse/sdk-typescript 0.0.129 → 0.0.130
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 +63 -0
- package/dist/api.js +65 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -653,6 +653,32 @@ 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
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @export
|
|
672
|
+
* @interface CreateFpsTokenResponse
|
|
673
|
+
*/
|
|
674
|
+
export interface CreateFpsTokenResponse {
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @type {PaymentLinkTokenResponse}
|
|
678
|
+
* @memberof CreateFpsTokenResponse
|
|
679
|
+
*/
|
|
680
|
+
fps_token: PaymentLinkTokenResponse;
|
|
681
|
+
}
|
|
656
682
|
/**
|
|
657
683
|
*
|
|
658
684
|
* @export
|
|
@@ -5831,6 +5857,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5831
5857
|
* @throws {RequiredError}
|
|
5832
5858
|
*/
|
|
5833
5859
|
confirmPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5860
|
+
/**
|
|
5861
|
+
* Create token for fps flow
|
|
5862
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
5863
|
+
* @param {*} [options] Override http request option.
|
|
5864
|
+
* @throws {RequiredError}
|
|
5865
|
+
*/
|
|
5866
|
+
createFpsToken: (createFpsTokenRequest: CreateFpsTokenRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5834
5867
|
/**
|
|
5835
5868
|
* CREATE Mandate for payment link
|
|
5836
5869
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5901,6 +5934,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5901
5934
|
* @throws {RequiredError}
|
|
5902
5935
|
*/
|
|
5903
5936
|
confirmPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentResponse>>;
|
|
5937
|
+
/**
|
|
5938
|
+
* Create token for fps flow
|
|
5939
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
5940
|
+
* @param {*} [options] Override http request option.
|
|
5941
|
+
* @throws {RequiredError}
|
|
5942
|
+
*/
|
|
5943
|
+
createFpsToken(createFpsTokenRequest: CreateFpsTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
|
|
5904
5944
|
/**
|
|
5905
5945
|
* CREATE Mandate for payment link
|
|
5906
5946
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5971,6 +6011,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
5971
6011
|
* @throws {RequiredError}
|
|
5972
6012
|
*/
|
|
5973
6013
|
confirmPayment(options?: any): AxiosPromise<ConfirmPaymentResponse>;
|
|
6014
|
+
/**
|
|
6015
|
+
* Create token for fps flow
|
|
6016
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6017
|
+
* @param {*} [options] Override http request option.
|
|
6018
|
+
* @throws {RequiredError}
|
|
6019
|
+
*/
|
|
6020
|
+
createFpsToken(createFpsTokenRequest: CreateFpsTokenRequest, options?: any): AxiosPromise<CreateFpsTokenResponse>;
|
|
5974
6021
|
/**
|
|
5975
6022
|
* CREATE Mandate for payment link
|
|
5976
6023
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6044,6 +6091,14 @@ export interface DefaultApiInterface {
|
|
|
6044
6091
|
* @memberof DefaultApiInterface
|
|
6045
6092
|
*/
|
|
6046
6093
|
confirmPayment(options?: AxiosRequestConfig): AxiosPromise<ConfirmPaymentResponse>;
|
|
6094
|
+
/**
|
|
6095
|
+
* Create token for fps flow
|
|
6096
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6097
|
+
* @param {*} [options] Override http request option.
|
|
6098
|
+
* @throws {RequiredError}
|
|
6099
|
+
* @memberof DefaultApiInterface
|
|
6100
|
+
*/
|
|
6101
|
+
createFpsToken(createFpsTokenRequest: CreateFpsTokenRequest, options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
|
|
6047
6102
|
/**
|
|
6048
6103
|
* CREATE Mandate for payment link
|
|
6049
6104
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6123,6 +6178,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6123
6178
|
* @memberof DefaultApi
|
|
6124
6179
|
*/
|
|
6125
6180
|
confirmPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentResponse>>;
|
|
6181
|
+
/**
|
|
6182
|
+
* Create token for fps flow
|
|
6183
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6184
|
+
* @param {*} [options] Override http request option.
|
|
6185
|
+
* @throws {RequiredError}
|
|
6186
|
+
* @memberof DefaultApi
|
|
6187
|
+
*/
|
|
6188
|
+
createFpsToken(createFpsTokenRequest: CreateFpsTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
|
|
6126
6189
|
/**
|
|
6127
6190
|
* CREATE Mandate for payment link
|
|
6128
6191
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
package/dist/api.js
CHANGED
|
@@ -1633,6 +1633,38 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1633
1633
|
options: localVarRequestOptions,
|
|
1634
1634
|
};
|
|
1635
1635
|
}),
|
|
1636
|
+
/**
|
|
1637
|
+
* Create token for fps flow
|
|
1638
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
1639
|
+
* @param {*} [options] Override http request option.
|
|
1640
|
+
* @throws {RequiredError}
|
|
1641
|
+
*/
|
|
1642
|
+
createFpsToken: (createFpsTokenRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1643
|
+
// verify required parameter 'createFpsTokenRequest' is not null or undefined
|
|
1644
|
+
common_1.assertParamExists('createFpsToken', 'createFpsTokenRequest', createFpsTokenRequest);
|
|
1645
|
+
const localVarPath = `/payment_links/fps/token`;
|
|
1646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1647
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1648
|
+
let baseOptions;
|
|
1649
|
+
if (configuration) {
|
|
1650
|
+
baseOptions = configuration.baseOptions;
|
|
1651
|
+
}
|
|
1652
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1653
|
+
const localVarHeaderParameter = {};
|
|
1654
|
+
const localVarQueryParameter = {};
|
|
1655
|
+
// authentication Oauth2 required
|
|
1656
|
+
// oauth required
|
|
1657
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1658
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1659
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1661
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1662
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFpsTokenRequest, localVarRequestOptions, configuration);
|
|
1663
|
+
return {
|
|
1664
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1665
|
+
options: localVarRequestOptions,
|
|
1666
|
+
};
|
|
1667
|
+
}),
|
|
1636
1668
|
/**
|
|
1637
1669
|
* CREATE Mandate for payment link
|
|
1638
1670
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -1890,6 +1922,18 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
1890
1922
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1891
1923
|
});
|
|
1892
1924
|
},
|
|
1925
|
+
/**
|
|
1926
|
+
* Create token for fps flow
|
|
1927
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
1928
|
+
* @param {*} [options] Override http request option.
|
|
1929
|
+
* @throws {RequiredError}
|
|
1930
|
+
*/
|
|
1931
|
+
createFpsToken(createFpsTokenRequest, options) {
|
|
1932
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1933
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFpsToken(createFpsTokenRequest, options);
|
|
1934
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1935
|
+
});
|
|
1936
|
+
},
|
|
1893
1937
|
/**
|
|
1894
1938
|
* CREATE Mandate for payment link
|
|
1895
1939
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -1994,6 +2038,15 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1994
2038
|
confirmPayment(options) {
|
|
1995
2039
|
return localVarFp.confirmPayment(options).then((request) => request(axios, basePath));
|
|
1996
2040
|
},
|
|
2041
|
+
/**
|
|
2042
|
+
* Create token for fps flow
|
|
2043
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
2044
|
+
* @param {*} [options] Override http request option.
|
|
2045
|
+
* @throws {RequiredError}
|
|
2046
|
+
*/
|
|
2047
|
+
createFpsToken(createFpsTokenRequest, options) {
|
|
2048
|
+
return localVarFp.createFpsToken(createFpsTokenRequest, options).then((request) => request(axios, basePath));
|
|
2049
|
+
},
|
|
1997
2050
|
/**
|
|
1998
2051
|
* CREATE Mandate for payment link
|
|
1999
2052
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -2095,6 +2148,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2095
2148
|
.confirmPayment(options)
|
|
2096
2149
|
.then((request) => request(this.axios, this.basePath));
|
|
2097
2150
|
}
|
|
2151
|
+
/**
|
|
2152
|
+
* Create token for fps flow
|
|
2153
|
+
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
2154
|
+
* @param {*} [options] Override http request option.
|
|
2155
|
+
* @throws {RequiredError}
|
|
2156
|
+
* @memberof DefaultApi
|
|
2157
|
+
*/
|
|
2158
|
+
createFpsToken(createFpsTokenRequest, options) {
|
|
2159
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2160
|
+
.createFpsToken(createFpsTokenRequest, options)
|
|
2161
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2162
|
+
}
|
|
2098
2163
|
/**
|
|
2099
2164
|
* CREATE Mandate for payment link
|
|
2100
2165
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|