@finverse/sdk-typescript 0.0.128 → 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 +80 -4
- 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
|
|
@@ -3579,6 +3605,19 @@ export interface ManualPaymentConfirmationRequest {
|
|
|
3579
3605
|
*/
|
|
3580
3606
|
account_number_last4: string;
|
|
3581
3607
|
}
|
|
3608
|
+
/**
|
|
3609
|
+
*
|
|
3610
|
+
* @export
|
|
3611
|
+
* @interface ManualPaymentConfirmationResponse
|
|
3612
|
+
*/
|
|
3613
|
+
export interface ManualPaymentConfirmationResponse {
|
|
3614
|
+
/**
|
|
3615
|
+
*
|
|
3616
|
+
* @type {string}
|
|
3617
|
+
* @memberof ManualPaymentConfirmationResponse
|
|
3618
|
+
*/
|
|
3619
|
+
payment_id?: string;
|
|
3620
|
+
}
|
|
3582
3621
|
/**
|
|
3583
3622
|
*
|
|
3584
3623
|
* @export
|
|
@@ -5818,6 +5857,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5818
5857
|
* @throws {RequiredError}
|
|
5819
5858
|
*/
|
|
5820
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>;
|
|
5821
5867
|
/**
|
|
5822
5868
|
* CREATE Mandate for payment link
|
|
5823
5869
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5881,13 +5927,20 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
5881
5927
|
* @param {*} [options] Override http request option.
|
|
5882
5928
|
* @throws {RequiredError}
|
|
5883
5929
|
*/
|
|
5884
|
-
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
5930
|
+
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManualPaymentConfirmationResponse>>;
|
|
5885
5931
|
/**
|
|
5886
5932
|
* Confirm a payment against a payment Link
|
|
5887
5933
|
* @param {*} [options] Override http request option.
|
|
5888
5934
|
* @throws {RequiredError}
|
|
5889
5935
|
*/
|
|
5890
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>>;
|
|
5891
5944
|
/**
|
|
5892
5945
|
* CREATE Mandate for payment link
|
|
5893
5946
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -5951,13 +6004,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
5951
6004
|
* @param {*} [options] Override http request option.
|
|
5952
6005
|
* @throws {RequiredError}
|
|
5953
6006
|
*/
|
|
5954
|
-
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: any): AxiosPromise<
|
|
6007
|
+
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: any): AxiosPromise<ManualPaymentConfirmationResponse>;
|
|
5955
6008
|
/**
|
|
5956
6009
|
* Confirm a payment against a payment Link
|
|
5957
6010
|
* @param {*} [options] Override http request option.
|
|
5958
6011
|
* @throws {RequiredError}
|
|
5959
6012
|
*/
|
|
5960
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>;
|
|
5961
6021
|
/**
|
|
5962
6022
|
* CREATE Mandate for payment link
|
|
5963
6023
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6023,7 +6083,7 @@ export interface DefaultApiInterface {
|
|
|
6023
6083
|
* @throws {RequiredError}
|
|
6024
6084
|
* @memberof DefaultApiInterface
|
|
6025
6085
|
*/
|
|
6026
|
-
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: AxiosRequestConfig): AxiosPromise<
|
|
6086
|
+
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: AxiosRequestConfig): AxiosPromise<ManualPaymentConfirmationResponse>;
|
|
6027
6087
|
/**
|
|
6028
6088
|
* Confirm a payment against a payment Link
|
|
6029
6089
|
* @param {*} [options] Override http request option.
|
|
@@ -6031,6 +6091,14 @@ export interface DefaultApiInterface {
|
|
|
6031
6091
|
* @memberof DefaultApiInterface
|
|
6032
6092
|
*/
|
|
6033
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>;
|
|
6034
6102
|
/**
|
|
6035
6103
|
* CREATE Mandate for payment link
|
|
6036
6104
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -6102,7 +6170,7 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6102
6170
|
* @throws {RequiredError}
|
|
6103
6171
|
* @memberof DefaultApi
|
|
6104
6172
|
*/
|
|
6105
|
-
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
6173
|
+
confirmManualPayment(manualPaymentIdentifiers: ManualPaymentConfirmationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ManualPaymentConfirmationResponse>>;
|
|
6106
6174
|
/**
|
|
6107
6175
|
* Confirm a payment against a payment Link
|
|
6108
6176
|
* @param {*} [options] Override http request option.
|
|
@@ -6110,6 +6178,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6110
6178
|
* @memberof DefaultApi
|
|
6111
6179
|
*/
|
|
6112
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>>;
|
|
6113
6189
|
/**
|
|
6114
6190
|
* CREATE Mandate for payment link
|
|
6115
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
|