@finverse/sdk-typescript 0.0.320 → 0.0.321
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 +23 -5
- package/dist/api.js +15 -7
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1509,6 +1509,19 @@ export interface CreatePaymentInstructionResponse {
|
|
|
1509
1509
|
*/
|
|
1510
1510
|
payment_instruction_id?: string;
|
|
1511
1511
|
}
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @export
|
|
1515
|
+
* @interface CreatePaymentLinkCardPaymentRequest
|
|
1516
|
+
*/
|
|
1517
|
+
export interface CreatePaymentLinkCardPaymentRequest {
|
|
1518
|
+
/**
|
|
1519
|
+
* Whether the request is from a mobile device
|
|
1520
|
+
* @type {boolean}
|
|
1521
|
+
* @memberof CreatePaymentLinkCardPaymentRequest
|
|
1522
|
+
*/
|
|
1523
|
+
is_mobile?: boolean;
|
|
1524
|
+
}
|
|
1512
1525
|
/**
|
|
1513
1526
|
*
|
|
1514
1527
|
* @export
|
|
@@ -9837,10 +9850,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9837
9850
|
createPaymentLink: (createPaymentLinkRequest: CreatePaymentLinkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9838
9851
|
/**
|
|
9839
9852
|
* Initiate Card Payment for a Payment Link
|
|
9853
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
9840
9854
|
* @param {*} [options] Override http request option.
|
|
9841
9855
|
* @throws {RequiredError}
|
|
9842
9856
|
*/
|
|
9843
|
-
createPaymentLinkCardPayment: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9857
|
+
createPaymentLinkCardPayment: (createPaymentLinkCardPaymentRequest?: CreatePaymentLinkCardPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9844
9858
|
/**
|
|
9845
9859
|
* CREATE Mandate for payment link
|
|
9846
9860
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -10103,10 +10117,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
10103
10117
|
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
|
|
10104
10118
|
/**
|
|
10105
10119
|
* Initiate Card Payment for a Payment Link
|
|
10120
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
10106
10121
|
* @param {*} [options] Override http request option.
|
|
10107
10122
|
* @throws {RequiredError}
|
|
10108
10123
|
*/
|
|
10109
|
-
createPaymentLinkCardPayment(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkCardPaymentResponse>>;
|
|
10124
|
+
createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest?: CreatePaymentLinkCardPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkCardPaymentResponse>>;
|
|
10110
10125
|
/**
|
|
10111
10126
|
* CREATE Mandate for payment link
|
|
10112
10127
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -10369,10 +10384,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
10369
10384
|
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
|
|
10370
10385
|
/**
|
|
10371
10386
|
* Initiate Card Payment for a Payment Link
|
|
10387
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
10372
10388
|
* @param {*} [options] Override http request option.
|
|
10373
10389
|
* @throws {RequiredError}
|
|
10374
10390
|
*/
|
|
10375
|
-
createPaymentLinkCardPayment(options?: RawAxiosRequestConfig): AxiosPromise<CreatePaymentLinkCardPaymentResponse>;
|
|
10391
|
+
createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest?: CreatePaymentLinkCardPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreatePaymentLinkCardPaymentResponse>;
|
|
10376
10392
|
/**
|
|
10377
10393
|
* CREATE Mandate for payment link
|
|
10378
10394
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -10645,11 +10661,12 @@ export interface DefaultApiInterface {
|
|
|
10645
10661
|
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
|
|
10646
10662
|
/**
|
|
10647
10663
|
* Initiate Card Payment for a Payment Link
|
|
10664
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
10648
10665
|
* @param {*} [options] Override http request option.
|
|
10649
10666
|
* @throws {RequiredError}
|
|
10650
10667
|
* @memberof DefaultApiInterface
|
|
10651
10668
|
*/
|
|
10652
|
-
createPaymentLinkCardPayment(options?: RawAxiosRequestConfig): AxiosPromise<CreatePaymentLinkCardPaymentResponse>;
|
|
10669
|
+
createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest?: CreatePaymentLinkCardPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreatePaymentLinkCardPaymentResponse>;
|
|
10653
10670
|
/**
|
|
10654
10671
|
* CREATE Mandate for payment link
|
|
10655
10672
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
|
@@ -10945,11 +10962,12 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
10945
10962
|
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse, any, {}>>;
|
|
10946
10963
|
/**
|
|
10947
10964
|
* Initiate Card Payment for a Payment Link
|
|
10965
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
10948
10966
|
* @param {*} [options] Override http request option.
|
|
10949
10967
|
* @throws {RequiredError}
|
|
10950
10968
|
* @memberof DefaultApi
|
|
10951
10969
|
*/
|
|
10952
|
-
createPaymentLinkCardPayment(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkCardPaymentResponse, any, {}>>;
|
|
10970
|
+
createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest?: CreatePaymentLinkCardPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkCardPaymentResponse, any, {}>>;
|
|
10953
10971
|
/**
|
|
10954
10972
|
* CREATE Mandate for payment link
|
|
10955
10973
|
* @param {CreatePaymentLinkMandateRequest} createPaymentLinkMandateRequest request body for creating mandate for payment-link
|
package/dist/api.js
CHANGED
|
@@ -2657,10 +2657,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2657
2657
|
}),
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Initiate Card Payment for a Payment Link
|
|
2660
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
2660
2661
|
* @param {*} [options] Override http request option.
|
|
2661
2662
|
* @throws {RequiredError}
|
|
2662
2663
|
*/
|
|
2663
|
-
createPaymentLinkCardPayment: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2664
|
+
createPaymentLinkCardPayment: (createPaymentLinkCardPaymentRequest_1, ...args_1) => __awaiter(this, [createPaymentLinkCardPaymentRequest_1, ...args_1], void 0, function* (createPaymentLinkCardPaymentRequest, options = {}) {
|
|
2664
2665
|
const localVarPath = `/payment_links/card`;
|
|
2665
2666
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2666
2667
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2674,9 +2675,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2674
2675
|
// authentication Oauth2 required
|
|
2675
2676
|
// oauth required
|
|
2676
2677
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2678
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2677
2679
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2678
2680
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2679
2681
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2682
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentLinkCardPaymentRequest, localVarRequestOptions, configuration);
|
|
2680
2683
|
return {
|
|
2681
2684
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2682
2685
|
options: localVarRequestOptions,
|
|
@@ -3678,13 +3681,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
3678
3681
|
},
|
|
3679
3682
|
/**
|
|
3680
3683
|
* Initiate Card Payment for a Payment Link
|
|
3684
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
3681
3685
|
* @param {*} [options] Override http request option.
|
|
3682
3686
|
* @throws {RequiredError}
|
|
3683
3687
|
*/
|
|
3684
|
-
createPaymentLinkCardPayment(options) {
|
|
3688
|
+
createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest, options) {
|
|
3685
3689
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3686
3690
|
var _a, _b, _c;
|
|
3687
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentLinkCardPayment(options);
|
|
3691
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest, options);
|
|
3688
3692
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3689
3693
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.createPaymentLinkCardPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3690
3694
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4158,11 +4162,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4158
4162
|
},
|
|
4159
4163
|
/**
|
|
4160
4164
|
* Initiate Card Payment for a Payment Link
|
|
4165
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
4161
4166
|
* @param {*} [options] Override http request option.
|
|
4162
4167
|
* @throws {RequiredError}
|
|
4163
4168
|
*/
|
|
4164
|
-
createPaymentLinkCardPayment(options) {
|
|
4165
|
-
return localVarFp
|
|
4169
|
+
createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest, options) {
|
|
4170
|
+
return localVarFp
|
|
4171
|
+
.createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest, options)
|
|
4172
|
+
.then((request) => request(axios, basePath));
|
|
4166
4173
|
},
|
|
4167
4174
|
/**
|
|
4168
4175
|
* CREATE Mandate for payment link
|
|
@@ -4541,13 +4548,14 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4541
4548
|
}
|
|
4542
4549
|
/**
|
|
4543
4550
|
* Initiate Card Payment for a Payment Link
|
|
4551
|
+
* @param {CreatePaymentLinkCardPaymentRequest} [createPaymentLinkCardPaymentRequest] request body for initiating card payment for a payment link
|
|
4544
4552
|
* @param {*} [options] Override http request option.
|
|
4545
4553
|
* @throws {RequiredError}
|
|
4546
4554
|
* @memberof DefaultApi
|
|
4547
4555
|
*/
|
|
4548
|
-
createPaymentLinkCardPayment(options) {
|
|
4556
|
+
createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest, options) {
|
|
4549
4557
|
return (0, exports.DefaultApiFp)(this.configuration)
|
|
4550
|
-
.createPaymentLinkCardPayment(options)
|
|
4558
|
+
.createPaymentLinkCardPayment(createPaymentLinkCardPaymentRequest, options)
|
|
4551
4559
|
.then((request) => request(this.axios, this.basePath));
|
|
4552
4560
|
}
|
|
4553
4561
|
/**
|