@finverse/sdk-typescript 0.0.118 → 0.0.120
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 +0 -656
- package/dist/api.js +1 -527
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.
|
|
25
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderSenderTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderSenderTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -99,13 +99,6 @@ exports.CreatePaymentRequestTypeEnum = {
|
|
|
99
99
|
exports.CreateRecipientAccountAccountTypeEnum = {
|
|
100
100
|
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
101
101
|
};
|
|
102
|
-
exports.CreateSenderAccountRequestAccountTypeEnum = {
|
|
103
|
-
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
104
|
-
};
|
|
105
|
-
exports.CreateSenderRequestSenderTypeEnum = {
|
|
106
|
-
Individual: 'INDIVIDUAL',
|
|
107
|
-
Business: 'BUSINESS',
|
|
108
|
-
};
|
|
109
102
|
exports.CustomerPaymentInstructionTypeEnum = {
|
|
110
103
|
DebitAuthorization: 'DEBIT_AUTHORIZATION',
|
|
111
104
|
};
|
|
@@ -243,19 +236,12 @@ exports.RecipientAccountResponseAccountTypeEnum = {
|
|
|
243
236
|
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
244
237
|
SettlementAccount: 'SETTLEMENT_ACCOUNT',
|
|
245
238
|
};
|
|
246
|
-
exports.SenderAccountResponseAccountTypeEnum = {
|
|
247
|
-
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
248
|
-
};
|
|
249
239
|
exports.SenderDetailDetailsTypeEnum = {
|
|
250
240
|
HkId: 'HK_ID',
|
|
251
241
|
Passport: 'PASSPORT',
|
|
252
242
|
HkBusinessRegistration: 'HK_BUSINESS_REGISTRATION',
|
|
253
243
|
HkCertificateOfIncorporation: 'HK_CERTIFICATE_OF_INCORPORATION',
|
|
254
244
|
};
|
|
255
|
-
exports.SenderResponseSenderTypeEnum = {
|
|
256
|
-
Individual: 'INDIVIDUAL',
|
|
257
|
-
Business: 'BUSINESS',
|
|
258
|
-
};
|
|
259
245
|
exports.SubmitAuthChecklistResponseMandateStatusEnum = {
|
|
260
246
|
Created: 'CREATED',
|
|
261
247
|
Processing: 'PROCESSING',
|
|
@@ -445,162 +431,6 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
445
431
|
options: localVarRequestOptions,
|
|
446
432
|
};
|
|
447
433
|
}),
|
|
448
|
-
/**
|
|
449
|
-
* Create Recipients
|
|
450
|
-
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
451
|
-
* @param {*} [options] Override http request option.
|
|
452
|
-
* @throws {RequiredError}
|
|
453
|
-
*/
|
|
454
|
-
createRecipient: (createRecipientRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
455
|
-
// verify required parameter 'createRecipientRequest' is not null or undefined
|
|
456
|
-
common_1.assertParamExists('createRecipient', 'createRecipientRequest', createRecipientRequest);
|
|
457
|
-
const localVarPath = `/recipients`;
|
|
458
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
459
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
460
|
-
let baseOptions;
|
|
461
|
-
if (configuration) {
|
|
462
|
-
baseOptions = configuration.baseOptions;
|
|
463
|
-
}
|
|
464
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
465
|
-
const localVarHeaderParameter = {};
|
|
466
|
-
const localVarQueryParameter = {};
|
|
467
|
-
// authentication Oauth2 required
|
|
468
|
-
// oauth required
|
|
469
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
470
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
471
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
472
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
473
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
474
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createRecipientRequest, localVarRequestOptions, configuration);
|
|
475
|
-
return {
|
|
476
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
477
|
-
options: localVarRequestOptions,
|
|
478
|
-
};
|
|
479
|
-
}),
|
|
480
|
-
/**
|
|
481
|
-
* Create Sender
|
|
482
|
-
* @param {CreateSenderRequest} createSenderRequest request body for creating sender
|
|
483
|
-
* @param {*} [options] Override http request option.
|
|
484
|
-
* @throws {RequiredError}
|
|
485
|
-
*/
|
|
486
|
-
createSender: (createSenderRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
487
|
-
// verify required parameter 'createSenderRequest' is not null or undefined
|
|
488
|
-
common_1.assertParamExists('createSender', 'createSenderRequest', createSenderRequest);
|
|
489
|
-
const localVarPath = `/senders`;
|
|
490
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
491
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
492
|
-
let baseOptions;
|
|
493
|
-
if (configuration) {
|
|
494
|
-
baseOptions = configuration.baseOptions;
|
|
495
|
-
}
|
|
496
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
497
|
-
const localVarHeaderParameter = {};
|
|
498
|
-
const localVarQueryParameter = {};
|
|
499
|
-
// authentication Oauth2 required
|
|
500
|
-
// oauth required
|
|
501
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
502
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
503
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
504
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
505
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
506
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createSenderRequest, localVarRequestOptions, configuration);
|
|
507
|
-
return {
|
|
508
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
509
|
-
options: localVarRequestOptions,
|
|
510
|
-
};
|
|
511
|
-
}),
|
|
512
|
-
/**
|
|
513
|
-
* Create Sender Account
|
|
514
|
-
* @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
|
|
515
|
-
* @param {*} [options] Override http request option.
|
|
516
|
-
* @throws {RequiredError}
|
|
517
|
-
*/
|
|
518
|
-
createSenderAccount: (createSenderAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
519
|
-
// verify required parameter 'createSenderAccountRequest' is not null or undefined
|
|
520
|
-
common_1.assertParamExists('createSenderAccount', 'createSenderAccountRequest', createSenderAccountRequest);
|
|
521
|
-
const localVarPath = `/sender_accounts`;
|
|
522
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
523
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
524
|
-
let baseOptions;
|
|
525
|
-
if (configuration) {
|
|
526
|
-
baseOptions = configuration.baseOptions;
|
|
527
|
-
}
|
|
528
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
529
|
-
const localVarHeaderParameter = {};
|
|
530
|
-
const localVarQueryParameter = {};
|
|
531
|
-
// authentication Oauth2 required
|
|
532
|
-
// oauth required
|
|
533
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
534
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
535
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
536
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
537
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
538
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createSenderAccountRequest, localVarRequestOptions, configuration);
|
|
539
|
-
return {
|
|
540
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
541
|
-
options: localVarRequestOptions,
|
|
542
|
-
};
|
|
543
|
-
}),
|
|
544
|
-
/**
|
|
545
|
-
* Delete Recipient
|
|
546
|
-
* @param {string} recipientAccountId The institution id
|
|
547
|
-
* @param {*} [options] Override http request option.
|
|
548
|
-
* @throws {RequiredError}
|
|
549
|
-
*/
|
|
550
|
-
deleteRecipient: (recipientAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
551
|
-
// verify required parameter 'recipientAccountId' is not null or undefined
|
|
552
|
-
common_1.assertParamExists('deleteRecipient', 'recipientAccountId', recipientAccountId);
|
|
553
|
-
const localVarPath = `/recipients/{recipientAccountId}`.replace(`{${'recipientAccountId'}}`, encodeURIComponent(String(recipientAccountId)));
|
|
554
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
555
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
556
|
-
let baseOptions;
|
|
557
|
-
if (configuration) {
|
|
558
|
-
baseOptions = configuration.baseOptions;
|
|
559
|
-
}
|
|
560
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
561
|
-
const localVarHeaderParameter = {};
|
|
562
|
-
const localVarQueryParameter = {};
|
|
563
|
-
// authentication Oauth2 required
|
|
564
|
-
// oauth required
|
|
565
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
566
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
567
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
568
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
569
|
-
return {
|
|
570
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
571
|
-
options: localVarRequestOptions,
|
|
572
|
-
};
|
|
573
|
-
}),
|
|
574
|
-
/**
|
|
575
|
-
* Delete Sender Account
|
|
576
|
-
* @param {string} senderAccountId The sender account id
|
|
577
|
-
* @param {*} [options] Override http request option.
|
|
578
|
-
* @throws {RequiredError}
|
|
579
|
-
*/
|
|
580
|
-
deleteSenderAccount: (senderAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
581
|
-
// verify required parameter 'senderAccountId' is not null or undefined
|
|
582
|
-
common_1.assertParamExists('deleteSenderAccount', 'senderAccountId', senderAccountId);
|
|
583
|
-
const localVarPath = `/sender_accounts/{senderAccountId}`.replace(`{${'senderAccountId'}}`, encodeURIComponent(String(senderAccountId)));
|
|
584
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
585
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
586
|
-
let baseOptions;
|
|
587
|
-
if (configuration) {
|
|
588
|
-
baseOptions = configuration.baseOptions;
|
|
589
|
-
}
|
|
590
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
591
|
-
const localVarHeaderParameter = {};
|
|
592
|
-
const localVarQueryParameter = {};
|
|
593
|
-
// authentication Oauth2 required
|
|
594
|
-
// oauth required
|
|
595
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
596
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
597
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
598
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
599
|
-
return {
|
|
600
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
601
|
-
options: localVarRequestOptions,
|
|
602
|
-
};
|
|
603
|
-
}),
|
|
604
434
|
/**
|
|
605
435
|
* generate a link token that can be used to create link
|
|
606
436
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -902,96 +732,6 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
902
732
|
options: localVarRequestOptions,
|
|
903
733
|
};
|
|
904
734
|
}),
|
|
905
|
-
/**
|
|
906
|
-
* Get Recipient
|
|
907
|
-
* @param {string} recipientAccountId The institution id
|
|
908
|
-
* @param {*} [options] Override http request option.
|
|
909
|
-
* @throws {RequiredError}
|
|
910
|
-
*/
|
|
911
|
-
getRecipient: (recipientAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
912
|
-
// verify required parameter 'recipientAccountId' is not null or undefined
|
|
913
|
-
common_1.assertParamExists('getRecipient', 'recipientAccountId', recipientAccountId);
|
|
914
|
-
const localVarPath = `/recipients/{recipientAccountId}`.replace(`{${'recipientAccountId'}}`, encodeURIComponent(String(recipientAccountId)));
|
|
915
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
916
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
917
|
-
let baseOptions;
|
|
918
|
-
if (configuration) {
|
|
919
|
-
baseOptions = configuration.baseOptions;
|
|
920
|
-
}
|
|
921
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
922
|
-
const localVarHeaderParameter = {};
|
|
923
|
-
const localVarQueryParameter = {};
|
|
924
|
-
// authentication Oauth2 required
|
|
925
|
-
// oauth required
|
|
926
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
927
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
928
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
929
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
930
|
-
return {
|
|
931
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
932
|
-
options: localVarRequestOptions,
|
|
933
|
-
};
|
|
934
|
-
}),
|
|
935
|
-
/**
|
|
936
|
-
* Get Sender
|
|
937
|
-
* @param {string} senderId The sender id
|
|
938
|
-
* @param {*} [options] Override http request option.
|
|
939
|
-
* @throws {RequiredError}
|
|
940
|
-
*/
|
|
941
|
-
getSender: (senderId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
942
|
-
// verify required parameter 'senderId' is not null or undefined
|
|
943
|
-
common_1.assertParamExists('getSender', 'senderId', senderId);
|
|
944
|
-
const localVarPath = `/senders/{senderId}`.replace(`{${'senderId'}}`, encodeURIComponent(String(senderId)));
|
|
945
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
946
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
947
|
-
let baseOptions;
|
|
948
|
-
if (configuration) {
|
|
949
|
-
baseOptions = configuration.baseOptions;
|
|
950
|
-
}
|
|
951
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
952
|
-
const localVarHeaderParameter = {};
|
|
953
|
-
const localVarQueryParameter = {};
|
|
954
|
-
// authentication Oauth2 required
|
|
955
|
-
// oauth required
|
|
956
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
957
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
958
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
959
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
960
|
-
return {
|
|
961
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
962
|
-
options: localVarRequestOptions,
|
|
963
|
-
};
|
|
964
|
-
}),
|
|
965
|
-
/**
|
|
966
|
-
* Get Sender Accounts associated with a senderId
|
|
967
|
-
* @param {string} senderId The sender id
|
|
968
|
-
* @param {*} [options] Override http request option.
|
|
969
|
-
* @throws {RequiredError}
|
|
970
|
-
*/
|
|
971
|
-
getSenderAccounts: (senderId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
972
|
-
// verify required parameter 'senderId' is not null or undefined
|
|
973
|
-
common_1.assertParamExists('getSenderAccounts', 'senderId', senderId);
|
|
974
|
-
const localVarPath = `/senders/{senderId}/sender_accounts`.replace(`{${'senderId'}}`, encodeURIComponent(String(senderId)));
|
|
975
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
976
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
977
|
-
let baseOptions;
|
|
978
|
-
if (configuration) {
|
|
979
|
-
baseOptions = configuration.baseOptions;
|
|
980
|
-
}
|
|
981
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
982
|
-
const localVarHeaderParameter = {};
|
|
983
|
-
const localVarQueryParameter = {};
|
|
984
|
-
// authentication Oauth2 required
|
|
985
|
-
// oauth required
|
|
986
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
987
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
988
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
989
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
990
|
-
return {
|
|
991
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
992
|
-
options: localVarRequestOptions,
|
|
993
|
-
};
|
|
994
|
-
}),
|
|
995
735
|
/**
|
|
996
736
|
* Get a list of institutions
|
|
997
737
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -1203,66 +943,6 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1203
943
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1204
944
|
});
|
|
1205
945
|
},
|
|
1206
|
-
/**
|
|
1207
|
-
* Create Recipients
|
|
1208
|
-
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
1209
|
-
* @param {*} [options] Override http request option.
|
|
1210
|
-
* @throws {RequiredError}
|
|
1211
|
-
*/
|
|
1212
|
-
createRecipient(createRecipientRequest, options) {
|
|
1213
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1214
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createRecipient(createRecipientRequest, options);
|
|
1215
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1216
|
-
});
|
|
1217
|
-
},
|
|
1218
|
-
/**
|
|
1219
|
-
* Create Sender
|
|
1220
|
-
* @param {CreateSenderRequest} createSenderRequest request body for creating sender
|
|
1221
|
-
* @param {*} [options] Override http request option.
|
|
1222
|
-
* @throws {RequiredError}
|
|
1223
|
-
*/
|
|
1224
|
-
createSender(createSenderRequest, options) {
|
|
1225
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1226
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSender(createSenderRequest, options);
|
|
1227
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1228
|
-
});
|
|
1229
|
-
},
|
|
1230
|
-
/**
|
|
1231
|
-
* Create Sender Account
|
|
1232
|
-
* @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
|
|
1233
|
-
* @param {*} [options] Override http request option.
|
|
1234
|
-
* @throws {RequiredError}
|
|
1235
|
-
*/
|
|
1236
|
-
createSenderAccount(createSenderAccountRequest, options) {
|
|
1237
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1238
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSenderAccount(createSenderAccountRequest, options);
|
|
1239
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1240
|
-
});
|
|
1241
|
-
},
|
|
1242
|
-
/**
|
|
1243
|
-
* Delete Recipient
|
|
1244
|
-
* @param {string} recipientAccountId The institution id
|
|
1245
|
-
* @param {*} [options] Override http request option.
|
|
1246
|
-
* @throws {RequiredError}
|
|
1247
|
-
*/
|
|
1248
|
-
deleteRecipient(recipientAccountId, options) {
|
|
1249
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1250
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRecipient(recipientAccountId, options);
|
|
1251
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1252
|
-
});
|
|
1253
|
-
},
|
|
1254
|
-
/**
|
|
1255
|
-
* Delete Sender Account
|
|
1256
|
-
* @param {string} senderAccountId The sender account id
|
|
1257
|
-
* @param {*} [options] Override http request option.
|
|
1258
|
-
* @throws {RequiredError}
|
|
1259
|
-
*/
|
|
1260
|
-
deleteSenderAccount(senderAccountId, options) {
|
|
1261
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1262
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSenderAccount(senderAccountId, options);
|
|
1263
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1264
|
-
});
|
|
1265
|
-
},
|
|
1266
946
|
/**
|
|
1267
947
|
* generate a link token that can be used to create link
|
|
1268
948
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1382,42 +1062,6 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1382
1062
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1383
1063
|
});
|
|
1384
1064
|
},
|
|
1385
|
-
/**
|
|
1386
|
-
* Get Recipient
|
|
1387
|
-
* @param {string} recipientAccountId The institution id
|
|
1388
|
-
* @param {*} [options] Override http request option.
|
|
1389
|
-
* @throws {RequiredError}
|
|
1390
|
-
*/
|
|
1391
|
-
getRecipient(recipientAccountId, options) {
|
|
1392
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1393
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRecipient(recipientAccountId, options);
|
|
1394
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1395
|
-
});
|
|
1396
|
-
},
|
|
1397
|
-
/**
|
|
1398
|
-
* Get Sender
|
|
1399
|
-
* @param {string} senderId The sender id
|
|
1400
|
-
* @param {*} [options] Override http request option.
|
|
1401
|
-
* @throws {RequiredError}
|
|
1402
|
-
*/
|
|
1403
|
-
getSender(senderId, options) {
|
|
1404
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1405
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSender(senderId, options);
|
|
1406
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1407
|
-
});
|
|
1408
|
-
},
|
|
1409
|
-
/**
|
|
1410
|
-
* Get Sender Accounts associated with a senderId
|
|
1411
|
-
* @param {string} senderId The sender id
|
|
1412
|
-
* @param {*} [options] Override http request option.
|
|
1413
|
-
* @throws {RequiredError}
|
|
1414
|
-
*/
|
|
1415
|
-
getSenderAccounts(senderId, options) {
|
|
1416
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1417
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSenderAccounts(senderId, options);
|
|
1418
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1419
|
-
});
|
|
1420
|
-
},
|
|
1421
1065
|
/**
|
|
1422
1066
|
* Get a list of institutions
|
|
1423
1067
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -1536,53 +1180,6 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1536
1180
|
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1537
1181
|
.then((request) => request(axios, basePath));
|
|
1538
1182
|
},
|
|
1539
|
-
/**
|
|
1540
|
-
* Create Recipients
|
|
1541
|
-
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
1542
|
-
* @param {*} [options] Override http request option.
|
|
1543
|
-
* @throws {RequiredError}
|
|
1544
|
-
*/
|
|
1545
|
-
createRecipient(createRecipientRequest, options) {
|
|
1546
|
-
return localVarFp.createRecipient(createRecipientRequest, options).then((request) => request(axios, basePath));
|
|
1547
|
-
},
|
|
1548
|
-
/**
|
|
1549
|
-
* Create Sender
|
|
1550
|
-
* @param {CreateSenderRequest} createSenderRequest request body for creating sender
|
|
1551
|
-
* @param {*} [options] Override http request option.
|
|
1552
|
-
* @throws {RequiredError}
|
|
1553
|
-
*/
|
|
1554
|
-
createSender(createSenderRequest, options) {
|
|
1555
|
-
return localVarFp.createSender(createSenderRequest, options).then((request) => request(axios, basePath));
|
|
1556
|
-
},
|
|
1557
|
-
/**
|
|
1558
|
-
* Create Sender Account
|
|
1559
|
-
* @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
|
|
1560
|
-
* @param {*} [options] Override http request option.
|
|
1561
|
-
* @throws {RequiredError}
|
|
1562
|
-
*/
|
|
1563
|
-
createSenderAccount(createSenderAccountRequest, options) {
|
|
1564
|
-
return localVarFp
|
|
1565
|
-
.createSenderAccount(createSenderAccountRequest, options)
|
|
1566
|
-
.then((request) => request(axios, basePath));
|
|
1567
|
-
},
|
|
1568
|
-
/**
|
|
1569
|
-
* Delete Recipient
|
|
1570
|
-
* @param {string} recipientAccountId The institution id
|
|
1571
|
-
* @param {*} [options] Override http request option.
|
|
1572
|
-
* @throws {RequiredError}
|
|
1573
|
-
*/
|
|
1574
|
-
deleteRecipient(recipientAccountId, options) {
|
|
1575
|
-
return localVarFp.deleteRecipient(recipientAccountId, options).then((request) => request(axios, basePath));
|
|
1576
|
-
},
|
|
1577
|
-
/**
|
|
1578
|
-
* Delete Sender Account
|
|
1579
|
-
* @param {string} senderAccountId The sender account id
|
|
1580
|
-
* @param {*} [options] Override http request option.
|
|
1581
|
-
* @throws {RequiredError}
|
|
1582
|
-
*/
|
|
1583
|
-
deleteSenderAccount(senderAccountId, options) {
|
|
1584
|
-
return localVarFp.deleteSenderAccount(senderAccountId, options).then((request) => request(axios, basePath));
|
|
1585
|
-
},
|
|
1586
1183
|
/**
|
|
1587
1184
|
* generate a link token that can be used to create link
|
|
1588
1185
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1676,33 +1273,6 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1676
1273
|
getPayoutInstruction(payoutInstructionId, options) {
|
|
1677
1274
|
return localVarFp.getPayoutInstruction(payoutInstructionId, options).then((request) => request(axios, basePath));
|
|
1678
1275
|
},
|
|
1679
|
-
/**
|
|
1680
|
-
* Get Recipient
|
|
1681
|
-
* @param {string} recipientAccountId The institution id
|
|
1682
|
-
* @param {*} [options] Override http request option.
|
|
1683
|
-
* @throws {RequiredError}
|
|
1684
|
-
*/
|
|
1685
|
-
getRecipient(recipientAccountId, options) {
|
|
1686
|
-
return localVarFp.getRecipient(recipientAccountId, options).then((request) => request(axios, basePath));
|
|
1687
|
-
},
|
|
1688
|
-
/**
|
|
1689
|
-
* Get Sender
|
|
1690
|
-
* @param {string} senderId The sender id
|
|
1691
|
-
* @param {*} [options] Override http request option.
|
|
1692
|
-
* @throws {RequiredError}
|
|
1693
|
-
*/
|
|
1694
|
-
getSender(senderId, options) {
|
|
1695
|
-
return localVarFp.getSender(senderId, options).then((request) => request(axios, basePath));
|
|
1696
|
-
},
|
|
1697
|
-
/**
|
|
1698
|
-
* Get Sender Accounts associated with a senderId
|
|
1699
|
-
* @param {string} senderId The sender id
|
|
1700
|
-
* @param {*} [options] Override http request option.
|
|
1701
|
-
* @throws {RequiredError}
|
|
1702
|
-
*/
|
|
1703
|
-
getSenderAccounts(senderId, options) {
|
|
1704
|
-
return localVarFp.getSenderAccounts(senderId, options).then((request) => request(axios, basePath));
|
|
1705
|
-
},
|
|
1706
1276
|
/**
|
|
1707
1277
|
* Get a list of institutions
|
|
1708
1278
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -1818,66 +1388,6 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1818
1388
|
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1819
1389
|
.then((request) => request(this.axios, this.basePath));
|
|
1820
1390
|
}
|
|
1821
|
-
/**
|
|
1822
|
-
* Create Recipients
|
|
1823
|
-
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
1824
|
-
* @param {*} [options] Override http request option.
|
|
1825
|
-
* @throws {RequiredError}
|
|
1826
|
-
* @memberof CustomerApi
|
|
1827
|
-
*/
|
|
1828
|
-
createRecipient(createRecipientRequest, options) {
|
|
1829
|
-
return exports.CustomerApiFp(this.configuration)
|
|
1830
|
-
.createRecipient(createRecipientRequest, options)
|
|
1831
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1832
|
-
}
|
|
1833
|
-
/**
|
|
1834
|
-
* Create Sender
|
|
1835
|
-
* @param {CreateSenderRequest} createSenderRequest request body for creating sender
|
|
1836
|
-
* @param {*} [options] Override http request option.
|
|
1837
|
-
* @throws {RequiredError}
|
|
1838
|
-
* @memberof CustomerApi
|
|
1839
|
-
*/
|
|
1840
|
-
createSender(createSenderRequest, options) {
|
|
1841
|
-
return exports.CustomerApiFp(this.configuration)
|
|
1842
|
-
.createSender(createSenderRequest, options)
|
|
1843
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1844
|
-
}
|
|
1845
|
-
/**
|
|
1846
|
-
* Create Sender Account
|
|
1847
|
-
* @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
|
|
1848
|
-
* @param {*} [options] Override http request option.
|
|
1849
|
-
* @throws {RequiredError}
|
|
1850
|
-
* @memberof CustomerApi
|
|
1851
|
-
*/
|
|
1852
|
-
createSenderAccount(createSenderAccountRequest, options) {
|
|
1853
|
-
return exports.CustomerApiFp(this.configuration)
|
|
1854
|
-
.createSenderAccount(createSenderAccountRequest, options)
|
|
1855
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1856
|
-
}
|
|
1857
|
-
/**
|
|
1858
|
-
* Delete Recipient
|
|
1859
|
-
* @param {string} recipientAccountId The institution id
|
|
1860
|
-
* @param {*} [options] Override http request option.
|
|
1861
|
-
* @throws {RequiredError}
|
|
1862
|
-
* @memberof CustomerApi
|
|
1863
|
-
*/
|
|
1864
|
-
deleteRecipient(recipientAccountId, options) {
|
|
1865
|
-
return exports.CustomerApiFp(this.configuration)
|
|
1866
|
-
.deleteRecipient(recipientAccountId, options)
|
|
1867
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1868
|
-
}
|
|
1869
|
-
/**
|
|
1870
|
-
* Delete Sender Account
|
|
1871
|
-
* @param {string} senderAccountId The sender account id
|
|
1872
|
-
* @param {*} [options] Override http request option.
|
|
1873
|
-
* @throws {RequiredError}
|
|
1874
|
-
* @memberof CustomerApi
|
|
1875
|
-
*/
|
|
1876
|
-
deleteSenderAccount(senderAccountId, options) {
|
|
1877
|
-
return exports.CustomerApiFp(this.configuration)
|
|
1878
|
-
.deleteSenderAccount(senderAccountId, options)
|
|
1879
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1880
|
-
}
|
|
1881
1391
|
/**
|
|
1882
1392
|
* generate a link token that can be used to create link
|
|
1883
1393
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1997,42 +1507,6 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1997
1507
|
.getPayoutInstruction(payoutInstructionId, options)
|
|
1998
1508
|
.then((request) => request(this.axios, this.basePath));
|
|
1999
1509
|
}
|
|
2000
|
-
/**
|
|
2001
|
-
* Get Recipient
|
|
2002
|
-
* @param {string} recipientAccountId The institution id
|
|
2003
|
-
* @param {*} [options] Override http request option.
|
|
2004
|
-
* @throws {RequiredError}
|
|
2005
|
-
* @memberof CustomerApi
|
|
2006
|
-
*/
|
|
2007
|
-
getRecipient(recipientAccountId, options) {
|
|
2008
|
-
return exports.CustomerApiFp(this.configuration)
|
|
2009
|
-
.getRecipient(recipientAccountId, options)
|
|
2010
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2011
|
-
}
|
|
2012
|
-
/**
|
|
2013
|
-
* Get Sender
|
|
2014
|
-
* @param {string} senderId The sender id
|
|
2015
|
-
* @param {*} [options] Override http request option.
|
|
2016
|
-
* @throws {RequiredError}
|
|
2017
|
-
* @memberof CustomerApi
|
|
2018
|
-
*/
|
|
2019
|
-
getSender(senderId, options) {
|
|
2020
|
-
return exports.CustomerApiFp(this.configuration)
|
|
2021
|
-
.getSender(senderId, options)
|
|
2022
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2023
|
-
}
|
|
2024
|
-
/**
|
|
2025
|
-
* Get Sender Accounts associated with a senderId
|
|
2026
|
-
* @param {string} senderId The sender id
|
|
2027
|
-
* @param {*} [options] Override http request option.
|
|
2028
|
-
* @throws {RequiredError}
|
|
2029
|
-
* @memberof CustomerApi
|
|
2030
|
-
*/
|
|
2031
|
-
getSenderAccounts(senderId, options) {
|
|
2032
|
-
return exports.CustomerApiFp(this.configuration)
|
|
2033
|
-
.getSenderAccounts(senderId, options)
|
|
2034
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2035
|
-
}
|
|
2036
1510
|
/**
|
|
2037
1511
|
* Get a list of institutions
|
|
2038
1512
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|