@finverse/sdk-typescript 0.0.131 → 0.0.133
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 +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -833,6 +833,19 @@ export interface CreatePaymentInstructionResponse {
|
|
|
833
833
|
*/
|
|
834
834
|
payment_instruction_id?: string;
|
|
835
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @export
|
|
839
|
+
* @interface CreatePaymentLinkCardPaymentResponse
|
|
840
|
+
*/
|
|
841
|
+
export interface CreatePaymentLinkCardPaymentResponse {
|
|
842
|
+
/**
|
|
843
|
+
* URL to redirect to for making the card payment (e.g. Stripe)
|
|
844
|
+
* @type {string}
|
|
845
|
+
* @memberof CreatePaymentLinkCardPaymentResponse
|
|
846
|
+
*/
|
|
847
|
+
card_processor_redirect_uri: string;
|
|
848
|
+
}
|
|
836
849
|
/**
|
|
837
850
|
*
|
|
838
851
|
* @export
|
|
@@ -5850,6 +5863,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5850
5863
|
* @throws {RequiredError}
|
|
5851
5864
|
*/
|
|
5852
5865
|
createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5866
|
+
/**
|
|
5867
|
+
* Initiate Card Payment for a Payment Link
|
|
5868
|
+
* @param {*} [options] Override http request option.
|
|
5869
|
+
* @throws {RequiredError}
|
|
5870
|
+
*/
|
|
5871
|
+
createPaymentLinkCardPayment: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5853
5872
|
/**
|
|
5854
5873
|
* CREATE Mandate for payment link
|
|
5855
5874
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5926,6 +5945,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5926
5945
|
* @throws {RequiredError}
|
|
5927
5946
|
*/
|
|
5928
5947
|
createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
|
|
5948
|
+
/**
|
|
5949
|
+
* Initiate Card Payment for a Payment Link
|
|
5950
|
+
* @param {*} [options] Override http request option.
|
|
5951
|
+
* @throws {RequiredError}
|
|
5952
|
+
*/
|
|
5953
|
+
createPaymentLinkCardPayment(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkCardPaymentResponse>>;
|
|
5929
5954
|
/**
|
|
5930
5955
|
* CREATE Mandate for payment link
|
|
5931
5956
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6002,6 +6027,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
6002
6027
|
* @throws {RequiredError}
|
|
6003
6028
|
*/
|
|
6004
6029
|
createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
|
|
6030
|
+
/**
|
|
6031
|
+
* Initiate Card Payment for a Payment Link
|
|
6032
|
+
* @param {*} [options] Override http request option.
|
|
6033
|
+
* @throws {RequiredError}
|
|
6034
|
+
*/
|
|
6035
|
+
createPaymentLinkCardPayment(options?: any): AxiosPromise<CreatePaymentLinkCardPaymentResponse>;
|
|
6005
6036
|
/**
|
|
6006
6037
|
* CREATE Mandate for payment link
|
|
6007
6038
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6082,6 +6113,13 @@ export interface DefaultApiInterface {
|
|
|
6082
6113
|
* @memberof DefaultApiInterface
|
|
6083
6114
|
*/
|
|
6084
6115
|
createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
|
|
6116
|
+
/**
|
|
6117
|
+
* Initiate Card Payment for a Payment Link
|
|
6118
|
+
* @param {*} [options] Override http request option.
|
|
6119
|
+
* @throws {RequiredError}
|
|
6120
|
+
* @memberof DefaultApiInterface
|
|
6121
|
+
*/
|
|
6122
|
+
createPaymentLinkCardPayment(options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkCardPaymentResponse>;
|
|
6085
6123
|
/**
|
|
6086
6124
|
* CREATE Mandate for payment link
|
|
6087
6125
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6168,6 +6206,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6168
6206
|
* @memberof DefaultApi
|
|
6169
6207
|
*/
|
|
6170
6208
|
createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
|
|
6209
|
+
/**
|
|
6210
|
+
* Initiate Card Payment for a Payment Link
|
|
6211
|
+
* @param {*} [options] Override http request option.
|
|
6212
|
+
* @throws {RequiredError}
|
|
6213
|
+
* @memberof DefaultApi
|
|
6214
|
+
*/
|
|
6215
|
+
createPaymentLinkCardPayment(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkCardPaymentResponse>>;
|
|
6171
6216
|
/**
|
|
6172
6217
|
* CREATE Mandate for payment link
|
|
6173
6218
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
package/dist/api.js
CHANGED
|
@@ -1660,6 +1660,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1660
1660
|
options: localVarRequestOptions,
|
|
1661
1661
|
};
|
|
1662
1662
|
}),
|
|
1663
|
+
/**
|
|
1664
|
+
* Initiate Card Payment for a Payment Link
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
*/
|
|
1668
|
+
createPaymentLinkCardPayment: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1669
|
+
const localVarPath = `/payment_links/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);
|
|
1685
|
+
return {
|
|
1686
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1687
|
+
options: localVarRequestOptions,
|
|
1688
|
+
};
|
|
1689
|
+
}),
|
|
1663
1690
|
/**
|
|
1664
1691
|
* CREATE Mandate for payment link
|
|
1665
1692
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -1928,6 +1955,17 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
1928
1955
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1929
1956
|
});
|
|
1930
1957
|
},
|
|
1958
|
+
/**
|
|
1959
|
+
* Initiate Card Payment for a Payment Link
|
|
1960
|
+
* @param {*} [options] Override http request option.
|
|
1961
|
+
* @throws {RequiredError}
|
|
1962
|
+
*/
|
|
1963
|
+
createPaymentLinkCardPayment(options) {
|
|
1964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1965
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentLinkCardPayment(options);
|
|
1966
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1967
|
+
});
|
|
1968
|
+
},
|
|
1931
1969
|
/**
|
|
1932
1970
|
* CREATE Mandate for payment link
|
|
1933
1971
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -2040,6 +2078,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2040
2078
|
createFpsToken(options) {
|
|
2041
2079
|
return localVarFp.createFpsToken(options).then((request) => request(axios, basePath));
|
|
2042
2080
|
},
|
|
2081
|
+
/**
|
|
2082
|
+
* Initiate Card Payment for a Payment Link
|
|
2083
|
+
* @param {*} [options] Override http request option.
|
|
2084
|
+
* @throws {RequiredError}
|
|
2085
|
+
*/
|
|
2086
|
+
createPaymentLinkCardPayment(options) {
|
|
2087
|
+
return localVarFp.createPaymentLinkCardPayment(options).then((request) => request(axios, basePath));
|
|
2088
|
+
},
|
|
2043
2089
|
/**
|
|
2044
2090
|
* CREATE Mandate for payment link
|
|
2045
2091
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -2152,6 +2198,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2152
2198
|
.createFpsToken(options)
|
|
2153
2199
|
.then((request) => request(this.axios, this.basePath));
|
|
2154
2200
|
}
|
|
2201
|
+
/**
|
|
2202
|
+
* Initiate Card Payment for a Payment Link
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
* @memberof DefaultApi
|
|
2206
|
+
*/
|
|
2207
|
+
createPaymentLinkCardPayment(options) {
|
|
2208
|
+
return exports.DefaultApiFp(this.configuration)
|
|
2209
|
+
.createPaymentLinkCardPayment(options)
|
|
2210
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2211
|
+
}
|
|
2155
2212
|
/**
|
|
2156
2213
|
* CREATE Mandate for payment link
|
|
2157
2214
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.133",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"axios": "^0.21.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/chai": "^4.3.
|
|
24
|
+
"@types/chai": "^4.3.5",
|
|
25
25
|
"@types/mocha": "^10.0.1",
|
|
26
26
|
"@types/node": "^12.11.5",
|
|
27
27
|
"axios-mock-adapter": "^1.21.2",
|