@finverse/sdk-typescript 0.0.169 → 0.0.170
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 +56 -15
- package/dist/api.js +12 -18
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1021,6 +1021,39 @@ export declare const CreateMandateSenderUserTypeEnum: {
|
|
|
1021
1021
|
readonly Business: "BUSINESS";
|
|
1022
1022
|
};
|
|
1023
1023
|
export declare type CreateMandateSenderUserTypeEnum = (typeof CreateMandateSenderUserTypeEnum)[keyof typeof CreateMandateSenderUserTypeEnum];
|
|
1024
|
+
/**
|
|
1025
|
+
*
|
|
1026
|
+
* @export
|
|
1027
|
+
* @interface CreateMandateWithSenderAccountRequest
|
|
1028
|
+
*/
|
|
1029
|
+
export interface CreateMandateWithSenderAccountRequest {
|
|
1030
|
+
/**
|
|
1031
|
+
*
|
|
1032
|
+
* @type {MandateRecipientRequest}
|
|
1033
|
+
* @memberof CreateMandateWithSenderAccountRequest
|
|
1034
|
+
*/
|
|
1035
|
+
recipient_account: MandateRecipientRequest;
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
* @type {MandateSenderAccountRequest}
|
|
1039
|
+
* @memberof CreateMandateWithSenderAccountRequest
|
|
1040
|
+
*/
|
|
1041
|
+
sender_account: MandateSenderAccountRequest;
|
|
1042
|
+
/**
|
|
1043
|
+
*
|
|
1044
|
+
* @type {MandateDetails}
|
|
1045
|
+
* @memberof CreateMandateWithSenderAccountRequest
|
|
1046
|
+
*/
|
|
1047
|
+
mandate_details: MandateDetails;
|
|
1048
|
+
/**
|
|
1049
|
+
* Additional attributes of the mandate in key:value format (e.g. mandate_internal_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
|
|
1050
|
+
* @type {{ [key: string]: string; }}
|
|
1051
|
+
* @memberof CreateMandateWithSenderAccountRequest
|
|
1052
|
+
*/
|
|
1053
|
+
metadata?: {
|
|
1054
|
+
[key: string]: string;
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1024
1057
|
/**
|
|
1025
1058
|
*
|
|
1026
1059
|
* @export
|
|
@@ -4072,6 +4105,19 @@ export declare const MandateSenderAccountAccountTypeEnum: {
|
|
|
4072
4105
|
readonly ExternalAccount: "EXTERNAL_ACCOUNT";
|
|
4073
4106
|
};
|
|
4074
4107
|
export declare type MandateSenderAccountAccountTypeEnum = (typeof MandateSenderAccountAccountTypeEnum)[keyof typeof MandateSenderAccountAccountTypeEnum];
|
|
4108
|
+
/**
|
|
4109
|
+
*
|
|
4110
|
+
* @export
|
|
4111
|
+
* @interface MandateSenderAccountRequest
|
|
4112
|
+
*/
|
|
4113
|
+
export interface MandateSenderAccountRequest {
|
|
4114
|
+
/**
|
|
4115
|
+
* account ID assigned by Finverse
|
|
4116
|
+
* @type {string}
|
|
4117
|
+
* @memberof MandateSenderAccountRequest
|
|
4118
|
+
*/
|
|
4119
|
+
account_id: string;
|
|
4120
|
+
}
|
|
4075
4121
|
/**
|
|
4076
4122
|
*
|
|
4077
4123
|
* @export
|
|
@@ -7004,13 +7050,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
7004
7050
|
createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7005
7051
|
/**
|
|
7006
7052
|
* Create mandate for an existing sender account
|
|
7007
|
-
* @param {
|
|
7008
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7053
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
7009
7054
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7010
7055
|
* @param {*} [options] Override http request option.
|
|
7011
7056
|
* @throws {RequiredError}
|
|
7012
7057
|
*/
|
|
7013
|
-
createMandateForExistingSender: (
|
|
7058
|
+
createMandateForExistingSender: (createMandateRequest: CreateMandateWithSenderAccountRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7014
7059
|
/**
|
|
7015
7060
|
* Create payment link
|
|
7016
7061
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7122,13 +7167,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
7122
7167
|
createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
|
|
7123
7168
|
/**
|
|
7124
7169
|
* Create mandate for an existing sender account
|
|
7125
|
-
* @param {
|
|
7126
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7170
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
7127
7171
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7128
7172
|
* @param {*} [options] Override http request option.
|
|
7129
7173
|
* @throws {RequiredError}
|
|
7130
7174
|
*/
|
|
7131
|
-
createMandateForExistingSender(
|
|
7175
|
+
createMandateForExistingSender(createMandateRequest: CreateMandateWithSenderAccountRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
|
|
7132
7176
|
/**
|
|
7133
7177
|
* Create payment link
|
|
7134
7178
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7240,13 +7284,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
7240
7284
|
createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
|
|
7241
7285
|
/**
|
|
7242
7286
|
* Create mandate for an existing sender account
|
|
7243
|
-
* @param {
|
|
7244
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7287
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
7245
7288
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7246
7289
|
* @param {*} [options] Override http request option.
|
|
7247
7290
|
* @throws {RequiredError}
|
|
7248
7291
|
*/
|
|
7249
|
-
createMandateForExistingSender(
|
|
7292
|
+
createMandateForExistingSender(createMandateRequest: CreateMandateWithSenderAccountRequest, idempotencyKey?: string, options?: any): AxiosPromise<CreateMandateResponse>;
|
|
7250
7293
|
/**
|
|
7251
7294
|
* Create payment link
|
|
7252
7295
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7363,14 +7406,13 @@ export interface DefaultApiInterface {
|
|
|
7363
7406
|
createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
|
|
7364
7407
|
/**
|
|
7365
7408
|
* Create mandate for an existing sender account
|
|
7366
|
-
* @param {
|
|
7367
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7409
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
7368
7410
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7369
7411
|
* @param {*} [options] Override http request option.
|
|
7370
7412
|
* @throws {RequiredError}
|
|
7371
7413
|
* @memberof DefaultApiInterface
|
|
7372
7414
|
*/
|
|
7373
|
-
createMandateForExistingSender(
|
|
7415
|
+
createMandateForExistingSender(createMandateRequest: CreateMandateWithSenderAccountRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
|
|
7374
7416
|
/**
|
|
7375
7417
|
* Create payment link
|
|
7376
7418
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
|
@@ -7497,14 +7539,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
7497
7539
|
createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
|
|
7498
7540
|
/**
|
|
7499
7541
|
* Create mandate for an existing sender account
|
|
7500
|
-
* @param {
|
|
7501
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
7542
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
7502
7543
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
7503
7544
|
* @param {*} [options] Override http request option.
|
|
7504
7545
|
* @throws {RequiredError}
|
|
7505
7546
|
* @memberof DefaultApi
|
|
7506
7547
|
*/
|
|
7507
|
-
createMandateForExistingSender(
|
|
7548
|
+
createMandateForExistingSender(createMandateRequest: CreateMandateWithSenderAccountRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
|
|
7508
7549
|
/**
|
|
7509
7550
|
* Create payment link
|
|
7510
7551
|
* @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
|
package/dist/api.js
CHANGED
|
@@ -2115,18 +2115,15 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2115
2115
|
}),
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Create mandate for an existing sender account
|
|
2118
|
-
* @param {
|
|
2119
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2118
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
2120
2119
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2121
2120
|
* @param {*} [options] Override http request option.
|
|
2122
2121
|
* @throws {RequiredError}
|
|
2123
2122
|
*/
|
|
2124
|
-
createMandateForExistingSender: (
|
|
2125
|
-
// verify required parameter 'senderAccountId' is not null or undefined
|
|
2126
|
-
common_1.assertParamExists('createMandateForExistingSender', 'senderAccountId', senderAccountId);
|
|
2123
|
+
createMandateForExistingSender: (createMandateRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2127
2124
|
// verify required parameter 'createMandateRequest' is not null or undefined
|
|
2128
2125
|
common_1.assertParamExists('createMandateForExistingSender', 'createMandateRequest', createMandateRequest);
|
|
2129
|
-
const localVarPath = `/mandates/sender_account
|
|
2126
|
+
const localVarPath = `/mandates/sender_account`;
|
|
2130
2127
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2131
2128
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2132
2129
|
let baseOptions;
|
|
@@ -2550,15 +2547,14 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2550
2547
|
},
|
|
2551
2548
|
/**
|
|
2552
2549
|
* Create mandate for an existing sender account
|
|
2553
|
-
* @param {
|
|
2554
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2550
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
2555
2551
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2556
2552
|
* @param {*} [options] Override http request option.
|
|
2557
2553
|
* @throws {RequiredError}
|
|
2558
2554
|
*/
|
|
2559
|
-
createMandateForExistingSender(
|
|
2555
|
+
createMandateForExistingSender(createMandateRequest, idempotencyKey, options) {
|
|
2560
2556
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2561
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandateForExistingSender(
|
|
2557
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandateForExistingSender(createMandateRequest, idempotencyKey, options);
|
|
2562
2558
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2563
2559
|
});
|
|
2564
2560
|
},
|
|
@@ -2731,15 +2727,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2731
2727
|
},
|
|
2732
2728
|
/**
|
|
2733
2729
|
* Create mandate for an existing sender account
|
|
2734
|
-
* @param {
|
|
2735
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2730
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
2736
2731
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2737
2732
|
* @param {*} [options] Override http request option.
|
|
2738
2733
|
* @throws {RequiredError}
|
|
2739
2734
|
*/
|
|
2740
|
-
createMandateForExistingSender(
|
|
2735
|
+
createMandateForExistingSender(createMandateRequest, idempotencyKey, options) {
|
|
2741
2736
|
return localVarFp
|
|
2742
|
-
.createMandateForExistingSender(
|
|
2737
|
+
.createMandateForExistingSender(createMandateRequest, idempotencyKey, options)
|
|
2743
2738
|
.then((request) => request(axios, basePath));
|
|
2744
2739
|
},
|
|
2745
2740
|
/**
|
|
@@ -2904,16 +2899,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2904
2899
|
}
|
|
2905
2900
|
/**
|
|
2906
2901
|
* Create mandate for an existing sender account
|
|
2907
|
-
* @param {
|
|
2908
|
-
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
2902
|
+
* @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
|
|
2909
2903
|
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2910
2904
|
* @param {*} [options] Override http request option.
|
|
2911
2905
|
* @throws {RequiredError}
|
|
2912
2906
|
* @memberof DefaultApi
|
|
2913
2907
|
*/
|
|
2914
|
-
createMandateForExistingSender(
|
|
2908
|
+
createMandateForExistingSender(createMandateRequest, idempotencyKey, options) {
|
|
2915
2909
|
return exports.DefaultApiFp(this.configuration)
|
|
2916
|
-
.createMandateForExistingSender(
|
|
2910
|
+
.createMandateForExistingSender(createMandateRequest, idempotencyKey, options)
|
|
2917
2911
|
.then((request) => request(this.axios, this.basePath));
|
|
2918
2912
|
}
|
|
2919
2913
|
/**
|