@finverse/sdk-typescript 0.0.130 → 0.0.132
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 +50 -23
- package/dist/api.js +64 -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
|
|
@@ -846,6 +833,19 @@ export interface CreatePaymentInstructionResponse {
|
|
|
846
833
|
*/
|
|
847
834
|
payment_instruction_id?: string;
|
|
848
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @export
|
|
839
|
+
* @interface CreatePaymentLinkCreditCardPaymentResponse
|
|
840
|
+
*/
|
|
841
|
+
export interface CreatePaymentLinkCreditCardPaymentResponse {
|
|
842
|
+
/**
|
|
843
|
+
* URL to redirect to for making the CC payment (e.g. Stripe)
|
|
844
|
+
* @type {string}
|
|
845
|
+
* @memberof CreatePaymentLinkCreditCardPaymentResponse
|
|
846
|
+
*/
|
|
847
|
+
cc_processor_redirect_uri: string;
|
|
848
|
+
}
|
|
849
849
|
/**
|
|
850
850
|
*
|
|
851
851
|
* @export
|
|
@@ -5859,11 +5859,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5859
5859
|
confirmPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5860
5860
|
/**
|
|
5861
5861
|
* Create token for fps flow
|
|
5862
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
5863
5862
|
* @param {*} [options] Override http request option.
|
|
5864
5863
|
* @throws {RequiredError}
|
|
5865
5864
|
*/
|
|
5866
|
-
createFpsToken: (
|
|
5865
|
+
createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5866
|
+
/**
|
|
5867
|
+
* Initiate CC Payment for a Payment Link
|
|
5868
|
+
* @param {*} [options] Override http request option.
|
|
5869
|
+
* @throws {RequiredError}
|
|
5870
|
+
*/
|
|
5871
|
+
createPaymentLinkCreditCardPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5867
5872
|
/**
|
|
5868
5873
|
* CREATE Mandate for payment link
|
|
5869
5874
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5936,11 +5941,16 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5936
5941
|
confirmPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentResponse>>;
|
|
5937
5942
|
/**
|
|
5938
5943
|
* Create token for fps flow
|
|
5939
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
5940
5944
|
* @param {*} [options] Override http request option.
|
|
5941
5945
|
* @throws {RequiredError}
|
|
5942
5946
|
*/
|
|
5943
|
-
createFpsToken(
|
|
5947
|
+
createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
|
|
5948
|
+
/**
|
|
5949
|
+
* Initiate CC Payment for a Payment Link
|
|
5950
|
+
* @param {*} [options] Override http request option.
|
|
5951
|
+
* @throws {RequiredError}
|
|
5952
|
+
*/
|
|
5953
|
+
createPaymentLinkCreditCardPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkCreditCardPaymentResponse>>;
|
|
5944
5954
|
/**
|
|
5945
5955
|
* CREATE Mandate for payment link
|
|
5946
5956
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6013,11 +6023,16 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
6013
6023
|
confirmPayment(options?: any): AxiosPromise<ConfirmPaymentResponse>;
|
|
6014
6024
|
/**
|
|
6015
6025
|
* Create token for fps flow
|
|
6016
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6017
6026
|
* @param {*} [options] Override http request option.
|
|
6018
6027
|
* @throws {RequiredError}
|
|
6019
6028
|
*/
|
|
6020
|
-
createFpsToken(
|
|
6029
|
+
createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
|
|
6030
|
+
/**
|
|
6031
|
+
* Initiate CC Payment for a Payment Link
|
|
6032
|
+
* @param {*} [options] Override http request option.
|
|
6033
|
+
* @throws {RequiredError}
|
|
6034
|
+
*/
|
|
6035
|
+
createPaymentLinkCreditCardPayment(options?: any): AxiosPromise<CreatePaymentLinkCreditCardPaymentResponse>;
|
|
6021
6036
|
/**
|
|
6022
6037
|
* CREATE Mandate for payment link
|
|
6023
6038
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6093,12 +6108,18 @@ export interface DefaultApiInterface {
|
|
|
6093
6108
|
confirmPayment(options?: AxiosRequestConfig): AxiosPromise<ConfirmPaymentResponse>;
|
|
6094
6109
|
/**
|
|
6095
6110
|
* Create token for fps flow
|
|
6096
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6097
6111
|
* @param {*} [options] Override http request option.
|
|
6098
6112
|
* @throws {RequiredError}
|
|
6099
6113
|
* @memberof DefaultApiInterface
|
|
6100
6114
|
*/
|
|
6101
|
-
createFpsToken(
|
|
6115
|
+
createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
|
|
6116
|
+
/**
|
|
6117
|
+
* Initiate CC Payment for a Payment Link
|
|
6118
|
+
* @param {*} [options] Override http request option.
|
|
6119
|
+
* @throws {RequiredError}
|
|
6120
|
+
* @memberof DefaultApiInterface
|
|
6121
|
+
*/
|
|
6122
|
+
createPaymentLinkCreditCardPayment(options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkCreditCardPaymentResponse>;
|
|
6102
6123
|
/**
|
|
6103
6124
|
* CREATE Mandate for payment link
|
|
6104
6125
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6180,12 +6201,18 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6180
6201
|
confirmPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentResponse>>;
|
|
6181
6202
|
/**
|
|
6182
6203
|
* Create token for fps flow
|
|
6183
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
6184
6204
|
* @param {*} [options] Override http request option.
|
|
6185
6205
|
* @throws {RequiredError}
|
|
6186
6206
|
* @memberof DefaultApi
|
|
6187
6207
|
*/
|
|
6188
|
-
createFpsToken(
|
|
6208
|
+
createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
|
|
6209
|
+
/**
|
|
6210
|
+
* Initiate CC Payment for a Payment Link
|
|
6211
|
+
* @param {*} [options] Override http request option.
|
|
6212
|
+
* @throws {RequiredError}
|
|
6213
|
+
* @memberof DefaultApi
|
|
6214
|
+
*/
|
|
6215
|
+
createPaymentLinkCreditCardPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkCreditCardPaymentResponse>>;
|
|
6189
6216
|
/**
|
|
6190
6217
|
* CREATE Mandate for payment link
|
|
6191
6218
|
* @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,36 @@ 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
|
-
|
|
1658
|
+
return {
|
|
1659
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1660
|
+
options: localVarRequestOptions,
|
|
1661
|
+
};
|
|
1662
|
+
}),
|
|
1663
|
+
/**
|
|
1664
|
+
* Initiate CC Payment for a Payment Link
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
*/
|
|
1668
|
+
createPaymentLinkCreditCardPayment: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1669
|
+
const localVarPath = `/payment_links/credit_card`;
|
|
1670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1671
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1672
|
+
let baseOptions;
|
|
1673
|
+
if (configuration) {
|
|
1674
|
+
baseOptions = configuration.baseOptions;
|
|
1675
|
+
}
|
|
1676
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1677
|
+
const localVarHeaderParameter = {};
|
|
1678
|
+
const localVarQueryParameter = {};
|
|
1679
|
+
// authentication Oauth2 required
|
|
1680
|
+
// oauth required
|
|
1681
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1682
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1663
1685
|
return {
|
|
1664
1686
|
url: common_1.toPathString(localVarUrlObj),
|
|
1665
1687
|
options: localVarRequestOptions,
|
|
@@ -1924,13 +1946,23 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
1924
1946
|
},
|
|
1925
1947
|
/**
|
|
1926
1948
|
* Create token for fps flow
|
|
1927
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
1928
1949
|
* @param {*} [options] Override http request option.
|
|
1929
1950
|
* @throws {RequiredError}
|
|
1930
1951
|
*/
|
|
1931
|
-
createFpsToken(
|
|
1952
|
+
createFpsToken(options) {
|
|
1953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1954
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFpsToken(options);
|
|
1955
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1956
|
+
});
|
|
1957
|
+
},
|
|
1958
|
+
/**
|
|
1959
|
+
* Initiate CC Payment for a Payment Link
|
|
1960
|
+
* @param {*} [options] Override http request option.
|
|
1961
|
+
* @throws {RequiredError}
|
|
1962
|
+
*/
|
|
1963
|
+
createPaymentLinkCreditCardPayment(options) {
|
|
1932
1964
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1933
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1965
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentLinkCreditCardPayment(options);
|
|
1934
1966
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1935
1967
|
});
|
|
1936
1968
|
},
|
|
@@ -2040,12 +2072,19 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2040
2072
|
},
|
|
2041
2073
|
/**
|
|
2042
2074
|
* Create token for fps flow
|
|
2043
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
2044
2075
|
* @param {*} [options] Override http request option.
|
|
2045
2076
|
* @throws {RequiredError}
|
|
2046
2077
|
*/
|
|
2047
|
-
createFpsToken(
|
|
2048
|
-
return localVarFp.createFpsToken(
|
|
2078
|
+
createFpsToken(options) {
|
|
2079
|
+
return localVarFp.createFpsToken(options).then((request) => request(axios, basePath));
|
|
2080
|
+
},
|
|
2081
|
+
/**
|
|
2082
|
+
* Initiate CC Payment for a Payment Link
|
|
2083
|
+
* @param {*} [options] Override http request option.
|
|
2084
|
+
* @throws {RequiredError}
|
|
2085
|
+
*/
|
|
2086
|
+
createPaymentLinkCreditCardPayment(options) {
|
|
2087
|
+
return localVarFp.createPaymentLinkCreditCardPayment(options).then((request) => request(axios, basePath));
|
|
2049
2088
|
},
|
|
2050
2089
|
/**
|
|
2051
2090
|
* CREATE Mandate for payment link
|
|
@@ -2150,14 +2189,24 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2150
2189
|
}
|
|
2151
2190
|
/**
|
|
2152
2191
|
* Create token for fps flow
|
|
2153
|
-
* @param {CreateFpsTokenRequest} createFpsTokenRequest request body for creating fps token for payment-link
|
|
2154
2192
|
* @param {*} [options] Override http request option.
|
|
2155
2193
|
* @throws {RequiredError}
|
|
2156
2194
|
* @memberof DefaultApi
|
|
2157
2195
|
*/
|
|
2158
|
-
createFpsToken(
|
|
2196
|
+
createFpsToken(options) {
|
|
2197
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2198
|
+
.createFpsToken(options)
|
|
2199
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2200
|
+
}
|
|
2201
|
+
/**
|
|
2202
|
+
* Initiate CC Payment for a Payment Link
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
* @memberof DefaultApi
|
|
2206
|
+
*/
|
|
2207
|
+
createPaymentLinkCreditCardPayment(options) {
|
|
2159
2208
|
return exports.DefaultApiFp(this.configuration)
|
|
2160
|
-
.
|
|
2209
|
+
.createPaymentLinkCreditCardPayment(options)
|
|
2161
2210
|
.then((request) => request(this.axios, this.basePath));
|
|
2162
2211
|
}
|
|
2163
2212
|
/**
|