@finverse/sdk-typescript 0.0.98 → 0.0.100

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +224 -0
  2. package/dist/api.js +200 -1
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -932,6 +932,47 @@ export interface CreateRecipientRequest {
932
932
  [key: string]: string;
933
933
  };
934
934
  }
935
+ /**
936
+ *
937
+ * @export
938
+ * @interface CreateSenderAccountRequest
939
+ */
940
+ export interface CreateSenderAccountRequest {
941
+ /**
942
+ * Accountholder name of the sender\'s account
943
+ * @type {string}
944
+ * @memberof CreateSenderAccountRequest
945
+ */
946
+ accountholder_name: string;
947
+ /**
948
+ *
949
+ * @type {RecipientAccountNumber}
950
+ * @memberof CreateSenderAccountRequest
951
+ */
952
+ account_number: RecipientAccountNumber;
953
+ /**
954
+ * Type of sender account.
955
+ * @type {string}
956
+ * @memberof CreateSenderAccountRequest
957
+ */
958
+ account_type: CreateSenderAccountRequestAccountTypeEnum;
959
+ /**
960
+ * Finverse Institution ID for the sender’s institution.
961
+ * @type {string}
962
+ * @memberof CreateSenderAccountRequest
963
+ */
964
+ institution_id: string;
965
+ /**
966
+ * A unique identifier generated after creating sender
967
+ * @type {string}
968
+ * @memberof CreateSenderAccountRequest
969
+ */
970
+ sender_id: string;
971
+ }
972
+ export declare const CreateSenderAccountRequestAccountTypeEnum: {
973
+ readonly ExternalAccount: "EXTERNAL_ACCOUNT";
974
+ };
975
+ export declare type CreateSenderAccountRequestAccountTypeEnum = typeof CreateSenderAccountRequestAccountTypeEnum[keyof typeof CreateSenderAccountRequestAccountTypeEnum];
935
976
  /**
936
977
  *
937
978
  * @export
@@ -4161,6 +4202,78 @@ export interface RelinkRequest {
4161
4202
  */
4162
4203
  consent?: boolean | null;
4163
4204
  }
4205
+ /**
4206
+ *
4207
+ * @export
4208
+ * @interface SenderAccountResponse
4209
+ */
4210
+ export interface SenderAccountResponse {
4211
+ /**
4212
+ * A unique identifier generated after creating sender account
4213
+ * @type {string}
4214
+ * @memberof SenderAccountResponse
4215
+ */
4216
+ sender_account_id?: string;
4217
+ /**
4218
+ * Accountholder name of the sender\'s account
4219
+ * @type {string}
4220
+ * @memberof SenderAccountResponse
4221
+ */
4222
+ accountholder_name?: string;
4223
+ /**
4224
+ *
4225
+ * @type {RecipientAccountNumber}
4226
+ * @memberof SenderAccountResponse
4227
+ */
4228
+ account_number?: RecipientAccountNumber;
4229
+ /**
4230
+ * Type of sender account.
4231
+ * @type {string}
4232
+ * @memberof SenderAccountResponse
4233
+ */
4234
+ account_type?: SenderAccountResponseAccountTypeEnum;
4235
+ /**
4236
+ * Finverse Institution ID for the sender’s institution.
4237
+ * @type {string}
4238
+ * @memberof SenderAccountResponse
4239
+ */
4240
+ institution_id?: string;
4241
+ /**
4242
+ * A unique identifier generated after creating sender
4243
+ * @type {string}
4244
+ * @memberof SenderAccountResponse
4245
+ */
4246
+ sender_id?: string;
4247
+ /**
4248
+ * Timestamp of when the sender was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4249
+ * @type {string}
4250
+ * @memberof SenderAccountResponse
4251
+ */
4252
+ created_at?: string;
4253
+ /**
4254
+ * Timestamp of when the sender was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4255
+ * @type {string}
4256
+ * @memberof SenderAccountResponse
4257
+ */
4258
+ updated_at?: string;
4259
+ }
4260
+ export declare const SenderAccountResponseAccountTypeEnum: {
4261
+ readonly ExternalAccount: "EXTERNAL_ACCOUNT";
4262
+ };
4263
+ export declare type SenderAccountResponseAccountTypeEnum = typeof SenderAccountResponseAccountTypeEnum[keyof typeof SenderAccountResponseAccountTypeEnum];
4264
+ /**
4265
+ *
4266
+ * @export
4267
+ * @interface SenderAccountsResponse
4268
+ */
4269
+ export interface SenderAccountsResponse {
4270
+ /**
4271
+ *
4272
+ * @type {Array<SenderAccountResponse>}
4273
+ * @memberof SenderAccountsResponse
4274
+ */
4275
+ sender_accounts?: Array<SenderAccountResponse>;
4276
+ }
4164
4277
  /**
4165
4278
  *
4166
4279
  * @export
@@ -4847,6 +4960,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4847
4960
  * @throws {RequiredError}
4848
4961
  */
4849
4962
  createSender: (createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4963
+ /**
4964
+ * Create Sender Account
4965
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
4966
+ * @param {*} [options] Override http request option.
4967
+ * @throws {RequiredError}
4968
+ */
4969
+ createSenderAccount: (createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4850
4970
  /**
4851
4971
  * Delete Recipient
4852
4972
  * @param {string} recipientAccountId The institution id
@@ -4854,6 +4974,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4854
4974
  * @throws {RequiredError}
4855
4975
  */
4856
4976
  deleteRecipient: (recipientAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4977
+ /**
4978
+ * Delete Sender Account
4979
+ * @param {string} senderAccountId The sender account id
4980
+ * @param {*} [options] Override http request option.
4981
+ * @throws {RequiredError}
4982
+ */
4983
+ deleteSenderAccount: (senderAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4857
4984
  /**
4858
4985
  * generate a link token that can be used to create link
4859
4986
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -4937,6 +5064,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4937
5064
  * @throws {RequiredError}
4938
5065
  */
4939
5066
  getSender: (senderId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5067
+ /**
5068
+ * Get Sender Accounts associated with a senderId
5069
+ * @param {string} senderId The sender id
5070
+ * @param {*} [options] Override http request option.
5071
+ * @throws {RequiredError}
5072
+ */
5073
+ getSenderAccounts: (senderId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4940
5074
  /**
4941
5075
  * Get a list of institutions
4942
5076
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5026,6 +5160,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5026
5160
  * @throws {RequiredError}
5027
5161
  */
5028
5162
  createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
5163
+ /**
5164
+ * Create Sender Account
5165
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5166
+ * @param {*} [options] Override http request option.
5167
+ * @throws {RequiredError}
5168
+ */
5169
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderAccountResponse>>;
5029
5170
  /**
5030
5171
  * Delete Recipient
5031
5172
  * @param {string} recipientAccountId The institution id
@@ -5033,6 +5174,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5033
5174
  * @throws {RequiredError}
5034
5175
  */
5035
5176
  deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5177
+ /**
5178
+ * Delete Sender Account
5179
+ * @param {string} senderAccountId The sender account id
5180
+ * @param {*} [options] Override http request option.
5181
+ * @throws {RequiredError}
5182
+ */
5183
+ deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5036
5184
  /**
5037
5185
  * generate a link token that can be used to create link
5038
5186
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5116,6 +5264,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5116
5264
  * @throws {RequiredError}
5117
5265
  */
5118
5266
  getSender(senderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
5267
+ /**
5268
+ * Get Sender Accounts associated with a senderId
5269
+ * @param {string} senderId The sender id
5270
+ * @param {*} [options] Override http request option.
5271
+ * @throws {RequiredError}
5272
+ */
5273
+ getSenderAccounts(senderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderAccountsResponse>>;
5119
5274
  /**
5120
5275
  * Get a list of institutions
5121
5276
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5205,6 +5360,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5205
5360
  * @throws {RequiredError}
5206
5361
  */
5207
5362
  createSender(createSenderRequest: CreateSenderRequest, options?: any): AxiosPromise<SenderResponse>;
5363
+ /**
5364
+ * Create Sender Account
5365
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5366
+ * @param {*} [options] Override http request option.
5367
+ * @throws {RequiredError}
5368
+ */
5369
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: any): AxiosPromise<SenderAccountResponse>;
5208
5370
  /**
5209
5371
  * Delete Recipient
5210
5372
  * @param {string} recipientAccountId The institution id
@@ -5212,6 +5374,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5212
5374
  * @throws {RequiredError}
5213
5375
  */
5214
5376
  deleteRecipient(recipientAccountId: string, options?: any): AxiosPromise<void>;
5377
+ /**
5378
+ * Delete Sender Account
5379
+ * @param {string} senderAccountId The sender account id
5380
+ * @param {*} [options] Override http request option.
5381
+ * @throws {RequiredError}
5382
+ */
5383
+ deleteSenderAccount(senderAccountId: string, options?: any): AxiosPromise<void>;
5215
5384
  /**
5216
5385
  * generate a link token that can be used to create link
5217
5386
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5295,6 +5464,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5295
5464
  * @throws {RequiredError}
5296
5465
  */
5297
5466
  getSender(senderId: string, options?: any): AxiosPromise<SenderResponse>;
5467
+ /**
5468
+ * Get Sender Accounts associated with a senderId
5469
+ * @param {string} senderId The sender id
5470
+ * @param {*} [options] Override http request option.
5471
+ * @throws {RequiredError}
5472
+ */
5473
+ getSenderAccounts(senderId: string, options?: any): AxiosPromise<SenderAccountsResponse>;
5298
5474
  /**
5299
5475
  * Get a list of institutions
5300
5476
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5392,6 +5568,14 @@ export interface CustomerApiInterface {
5392
5568
  * @memberof CustomerApiInterface
5393
5569
  */
5394
5570
  createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5571
+ /**
5572
+ * Create Sender Account
5573
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5574
+ * @param {*} [options] Override http request option.
5575
+ * @throws {RequiredError}
5576
+ * @memberof CustomerApiInterface
5577
+ */
5578
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): AxiosPromise<SenderAccountResponse>;
5395
5579
  /**
5396
5580
  * Delete Recipient
5397
5581
  * @param {string} recipientAccountId The institution id
@@ -5400,6 +5584,14 @@ export interface CustomerApiInterface {
5400
5584
  * @memberof CustomerApiInterface
5401
5585
  */
5402
5586
  deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
5587
+ /**
5588
+ * Delete Sender Account
5589
+ * @param {string} senderAccountId The sender account id
5590
+ * @param {*} [options] Override http request option.
5591
+ * @throws {RequiredError}
5592
+ * @memberof CustomerApiInterface
5593
+ */
5594
+ deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
5403
5595
  /**
5404
5596
  * generate a link token that can be used to create link
5405
5597
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5495,6 +5687,14 @@ export interface CustomerApiInterface {
5495
5687
  * @memberof CustomerApiInterface
5496
5688
  */
5497
5689
  getSender(senderId: string, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5690
+ /**
5691
+ * Get Sender Accounts associated with a senderId
5692
+ * @param {string} senderId The sender id
5693
+ * @param {*} [options] Override http request option.
5694
+ * @throws {RequiredError}
5695
+ * @memberof CustomerApiInterface
5696
+ */
5697
+ getSenderAccounts(senderId: string, options?: AxiosRequestConfig): AxiosPromise<SenderAccountsResponse>;
5498
5698
  /**
5499
5699
  * Get a list of institutions
5500
5700
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5597,6 +5797,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5597
5797
  * @memberof CustomerApi
5598
5798
  */
5599
5799
  createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
5800
+ /**
5801
+ * Create Sender Account
5802
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5803
+ * @param {*} [options] Override http request option.
5804
+ * @throws {RequiredError}
5805
+ * @memberof CustomerApi
5806
+ */
5807
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderAccountResponse>>;
5600
5808
  /**
5601
5809
  * Delete Recipient
5602
5810
  * @param {string} recipientAccountId The institution id
@@ -5605,6 +5813,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5605
5813
  * @memberof CustomerApi
5606
5814
  */
5607
5815
  deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
5816
+ /**
5817
+ * Delete Sender Account
5818
+ * @param {string} senderAccountId The sender account id
5819
+ * @param {*} [options] Override http request option.
5820
+ * @throws {RequiredError}
5821
+ * @memberof CustomerApi
5822
+ */
5823
+ deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
5608
5824
  /**
5609
5825
  * generate a link token that can be used to create link
5610
5826
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5700,6 +5916,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5700
5916
  * @memberof CustomerApi
5701
5917
  */
5702
5918
  getSender(senderId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
5919
+ /**
5920
+ * Get Sender Accounts associated with a senderId
5921
+ * @param {string} senderId The sender id
5922
+ * @param {*} [options] Override http request option.
5923
+ * @throws {RequiredError}
5924
+ * @memberof CustomerApi
5925
+ */
5926
+ getSenderAccounts(senderId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderAccountsResponse>>;
5703
5927
  /**
5704
5928
  * Get a list of institutions
5705
5929
  * @param {string} [country] (Deprecated) The country the institution belongs to
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.SenderResponseSenderTypeEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = 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.CreateSenderRequestSenderTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreateMandateSenderSenderTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
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.SenderResponseSenderTypeEnum = exports.SenderDetailDetailsTypeEnum = exports.SenderAccountResponseAccountTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = 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.CreateSenderRequestSenderTypeEnum = exports.CreateSenderAccountRequestAccountTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = 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
@@ -95,6 +95,9 @@ exports.CreatePaymentRequestTypeEnum = {
95
95
  exports.CreateRecipientAccountAccountTypeEnum = {
96
96
  ExternalAccount: 'EXTERNAL_ACCOUNT',
97
97
  };
98
+ exports.CreateSenderAccountRequestAccountTypeEnum = {
99
+ ExternalAccount: 'EXTERNAL_ACCOUNT',
100
+ };
98
101
  exports.CreateSenderRequestSenderTypeEnum = {
99
102
  Individual: 'INDIVIDUAL',
100
103
  Business: 'BUSINESS',
@@ -230,6 +233,9 @@ exports.RecipientAccountResponseAccountTypeEnum = {
230
233
  ExternalAccount: 'EXTERNAL_ACCOUNT',
231
234
  SettlementAccount: 'SETTLEMENT_ACCOUNT',
232
235
  };
236
+ exports.SenderAccountResponseAccountTypeEnum = {
237
+ ExternalAccount: 'EXTERNAL_ACCOUNT',
238
+ };
233
239
  exports.SenderDetailDetailsTypeEnum = {
234
240
  HkId: 'HK_ID',
235
241
  Passport: 'PASSPORT',
@@ -493,6 +499,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
493
499
  options: localVarRequestOptions,
494
500
  };
495
501
  }),
502
+ /**
503
+ * Create Sender Account
504
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ createSenderAccount: (createSenderAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
509
+ // verify required parameter 'createSenderAccountRequest' is not null or undefined
510
+ common_1.assertParamExists('createSenderAccount', 'createSenderAccountRequest', createSenderAccountRequest);
511
+ const localVarPath = `/sender_accounts`;
512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
513
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
514
+ let baseOptions;
515
+ if (configuration) {
516
+ baseOptions = configuration.baseOptions;
517
+ }
518
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
519
+ const localVarHeaderParameter = {};
520
+ const localVarQueryParameter = {};
521
+ // authentication Oauth2 required
522
+ // oauth required
523
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
524
+ localVarHeaderParameter['Content-Type'] = 'application/json';
525
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
527
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
528
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createSenderAccountRequest, localVarRequestOptions, configuration);
529
+ return {
530
+ url: common_1.toPathString(localVarUrlObj),
531
+ options: localVarRequestOptions,
532
+ };
533
+ }),
496
534
  /**
497
535
  * Delete Recipient
498
536
  * @param {string} recipientAccountId The institution id
@@ -523,6 +561,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
523
561
  options: localVarRequestOptions,
524
562
  };
525
563
  }),
564
+ /**
565
+ * Delete Sender Account
566
+ * @param {string} senderAccountId The sender account id
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ */
570
+ deleteSenderAccount: (senderAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
571
+ // verify required parameter 'senderAccountId' is not null or undefined
572
+ common_1.assertParamExists('deleteSenderAccount', 'senderAccountId', senderAccountId);
573
+ const localVarPath = `/sender_accounts/{senderAccountId}`.replace(`{${'senderAccountId'}}`, encodeURIComponent(String(senderAccountId)));
574
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
575
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
576
+ let baseOptions;
577
+ if (configuration) {
578
+ baseOptions = configuration.baseOptions;
579
+ }
580
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
581
+ const localVarHeaderParameter = {};
582
+ const localVarQueryParameter = {};
583
+ // authentication Oauth2 required
584
+ // oauth required
585
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
586
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
587
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
588
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
589
+ return {
590
+ url: common_1.toPathString(localVarUrlObj),
591
+ options: localVarRequestOptions,
592
+ };
593
+ }),
526
594
  /**
527
595
  * generate a link token that can be used to create link
528
596
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -884,6 +952,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
884
952
  options: localVarRequestOptions,
885
953
  };
886
954
  }),
955
+ /**
956
+ * Get Sender Accounts associated with a senderId
957
+ * @param {string} senderId The sender id
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ */
961
+ getSenderAccounts: (senderId, options = {}) => __awaiter(this, void 0, void 0, function* () {
962
+ // verify required parameter 'senderId' is not null or undefined
963
+ common_1.assertParamExists('getSenderAccounts', 'senderId', senderId);
964
+ const localVarPath = `/senders/{senderId}/sender_accounts`.replace(`{${'senderId'}}`, encodeURIComponent(String(senderId)));
965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
966
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
967
+ let baseOptions;
968
+ if (configuration) {
969
+ baseOptions = configuration.baseOptions;
970
+ }
971
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
972
+ const localVarHeaderParameter = {};
973
+ const localVarQueryParameter = {};
974
+ // authentication Oauth2 required
975
+ // oauth required
976
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
977
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
978
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
979
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
980
+ return {
981
+ url: common_1.toPathString(localVarUrlObj),
982
+ options: localVarRequestOptions,
983
+ };
984
+ }),
887
985
  /**
888
986
  * Get a list of institutions
889
987
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1119,6 +1217,18 @@ exports.CustomerApiFp = function (configuration) {
1119
1217
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1120
1218
  });
1121
1219
  },
1220
+ /**
1221
+ * Create Sender Account
1222
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ */
1226
+ createSenderAccount(createSenderAccountRequest, options) {
1227
+ return __awaiter(this, void 0, void 0, function* () {
1228
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSenderAccount(createSenderAccountRequest, options);
1229
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1230
+ });
1231
+ },
1122
1232
  /**
1123
1233
  * Delete Recipient
1124
1234
  * @param {string} recipientAccountId The institution id
@@ -1131,6 +1241,18 @@ exports.CustomerApiFp = function (configuration) {
1131
1241
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1132
1242
  });
1133
1243
  },
1244
+ /**
1245
+ * Delete Sender Account
1246
+ * @param {string} senderAccountId The sender account id
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ */
1250
+ deleteSenderAccount(senderAccountId, options) {
1251
+ return __awaiter(this, void 0, void 0, function* () {
1252
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSenderAccount(senderAccountId, options);
1253
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1254
+ });
1255
+ },
1134
1256
  /**
1135
1257
  * generate a link token that can be used to create link
1136
1258
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -1274,6 +1396,18 @@ exports.CustomerApiFp = function (configuration) {
1274
1396
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1275
1397
  });
1276
1398
  },
1399
+ /**
1400
+ * Get Sender Accounts associated with a senderId
1401
+ * @param {string} senderId The sender id
1402
+ * @param {*} [options] Override http request option.
1403
+ * @throws {RequiredError}
1404
+ */
1405
+ getSenderAccounts(senderId, options) {
1406
+ return __awaiter(this, void 0, void 0, function* () {
1407
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSenderAccounts(senderId, options);
1408
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1409
+ });
1410
+ },
1277
1411
  /**
1278
1412
  * Get a list of institutions
1279
1413
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1410,6 +1544,17 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1410
1544
  createSender(createSenderRequest, options) {
1411
1545
  return localVarFp.createSender(createSenderRequest, options).then((request) => request(axios, basePath));
1412
1546
  },
1547
+ /**
1548
+ * Create Sender Account
1549
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
1550
+ * @param {*} [options] Override http request option.
1551
+ * @throws {RequiredError}
1552
+ */
1553
+ createSenderAccount(createSenderAccountRequest, options) {
1554
+ return localVarFp
1555
+ .createSenderAccount(createSenderAccountRequest, options)
1556
+ .then((request) => request(axios, basePath));
1557
+ },
1413
1558
  /**
1414
1559
  * Delete Recipient
1415
1560
  * @param {string} recipientAccountId The institution id
@@ -1419,6 +1564,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1419
1564
  deleteRecipient(recipientAccountId, options) {
1420
1565
  return localVarFp.deleteRecipient(recipientAccountId, options).then((request) => request(axios, basePath));
1421
1566
  },
1567
+ /**
1568
+ * Delete Sender Account
1569
+ * @param {string} senderAccountId The sender account id
1570
+ * @param {*} [options] Override http request option.
1571
+ * @throws {RequiredError}
1572
+ */
1573
+ deleteSenderAccount(senderAccountId, options) {
1574
+ return localVarFp.deleteSenderAccount(senderAccountId, options).then((request) => request(axios, basePath));
1575
+ },
1422
1576
  /**
1423
1577
  * generate a link token that can be used to create link
1424
1578
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -1530,6 +1684,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1530
1684
  getSender(senderId, options) {
1531
1685
  return localVarFp.getSender(senderId, options).then((request) => request(axios, basePath));
1532
1686
  },
1687
+ /**
1688
+ * Get Sender Accounts associated with a senderId
1689
+ * @param {string} senderId The sender id
1690
+ * @param {*} [options] Override http request option.
1691
+ * @throws {RequiredError}
1692
+ */
1693
+ getSenderAccounts(senderId, options) {
1694
+ return localVarFp.getSenderAccounts(senderId, options).then((request) => request(axios, basePath));
1695
+ },
1533
1696
  /**
1534
1697
  * Get a list of institutions
1535
1698
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1669,6 +1832,18 @@ class CustomerApi extends base_1.BaseAPI {
1669
1832
  .createSender(createSenderRequest, options)
1670
1833
  .then((request) => request(this.axios, this.basePath));
1671
1834
  }
1835
+ /**
1836
+ * Create Sender Account
1837
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
1838
+ * @param {*} [options] Override http request option.
1839
+ * @throws {RequiredError}
1840
+ * @memberof CustomerApi
1841
+ */
1842
+ createSenderAccount(createSenderAccountRequest, options) {
1843
+ return exports.CustomerApiFp(this.configuration)
1844
+ .createSenderAccount(createSenderAccountRequest, options)
1845
+ .then((request) => request(this.axios, this.basePath));
1846
+ }
1672
1847
  /**
1673
1848
  * Delete Recipient
1674
1849
  * @param {string} recipientAccountId The institution id
@@ -1681,6 +1856,18 @@ class CustomerApi extends base_1.BaseAPI {
1681
1856
  .deleteRecipient(recipientAccountId, options)
1682
1857
  .then((request) => request(this.axios, this.basePath));
1683
1858
  }
1859
+ /**
1860
+ * Delete Sender Account
1861
+ * @param {string} senderAccountId The sender account id
1862
+ * @param {*} [options] Override http request option.
1863
+ * @throws {RequiredError}
1864
+ * @memberof CustomerApi
1865
+ */
1866
+ deleteSenderAccount(senderAccountId, options) {
1867
+ return exports.CustomerApiFp(this.configuration)
1868
+ .deleteSenderAccount(senderAccountId, options)
1869
+ .then((request) => request(this.axios, this.basePath));
1870
+ }
1684
1871
  /**
1685
1872
  * generate a link token that can be used to create link
1686
1873
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -1824,6 +2011,18 @@ class CustomerApi extends base_1.BaseAPI {
1824
2011
  .getSender(senderId, options)
1825
2012
  .then((request) => request(this.axios, this.basePath));
1826
2013
  }
2014
+ /**
2015
+ * Get Sender Accounts associated with a senderId
2016
+ * @param {string} senderId The sender id
2017
+ * @param {*} [options] Override http request option.
2018
+ * @throws {RequiredError}
2019
+ * @memberof CustomerApi
2020
+ */
2021
+ getSenderAccounts(senderId, options) {
2022
+ return exports.CustomerApiFp(this.configuration)
2023
+ .getSenderAccounts(senderId, options)
2024
+ .then((request) => request(this.axios, this.basePath));
2025
+ }
1827
2026
  /**
1828
2027
  * Get a list of institutions
1829
2028
  * @param {string} [country] (Deprecated) The country the institution belongs to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.98",
3
+ "version": "0.0.100",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [