@finverse/sdk-typescript 0.0.98 → 0.0.99

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 +236 -0
  2. package/dist/api.js +200 -1
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -932,6 +932,53 @@ 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
+ * Customer App\'s internal ID for the recipient
973
+ * @type {string}
974
+ * @memberof CreateSenderAccountRequest
975
+ */
976
+ user_id: string;
977
+ }
978
+ export declare const CreateSenderAccountRequestAccountTypeEnum: {
979
+ readonly ExternalAccount: "EXTERNAL_ACCOUNT";
980
+ };
981
+ export declare type CreateSenderAccountRequestAccountTypeEnum = typeof CreateSenderAccountRequestAccountTypeEnum[keyof typeof CreateSenderAccountRequestAccountTypeEnum];
935
982
  /**
936
983
  *
937
984
  * @export
@@ -4161,6 +4208,84 @@ export interface RelinkRequest {
4161
4208
  */
4162
4209
  consent?: boolean | null;
4163
4210
  }
4211
+ /**
4212
+ *
4213
+ * @export
4214
+ * @interface SenderAccountResponse
4215
+ */
4216
+ export interface SenderAccountResponse {
4217
+ /**
4218
+ * A unique identifier generated after creating sender account
4219
+ * @type {string}
4220
+ * @memberof SenderAccountResponse
4221
+ */
4222
+ sender_account_id?: string;
4223
+ /**
4224
+ * Accountholder name of the sender\'s account
4225
+ * @type {string}
4226
+ * @memberof SenderAccountResponse
4227
+ */
4228
+ accountholder_name?: string;
4229
+ /**
4230
+ *
4231
+ * @type {RecipientAccountNumber}
4232
+ * @memberof SenderAccountResponse
4233
+ */
4234
+ account_number?: RecipientAccountNumber;
4235
+ /**
4236
+ * Type of sender account.
4237
+ * @type {string}
4238
+ * @memberof SenderAccountResponse
4239
+ */
4240
+ account_type?: SenderAccountResponseAccountTypeEnum;
4241
+ /**
4242
+ * Finverse Institution ID for the sender’s institution.
4243
+ * @type {string}
4244
+ * @memberof SenderAccountResponse
4245
+ */
4246
+ institution_id?: string;
4247
+ /**
4248
+ * A unique identifier generated after creating sender
4249
+ * @type {string}
4250
+ * @memberof SenderAccountResponse
4251
+ */
4252
+ sender_id?: string;
4253
+ /**
4254
+ * Customer App\'s internal ID for the recipient
4255
+ * @type {string}
4256
+ * @memberof SenderAccountResponse
4257
+ */
4258
+ user_id?: string;
4259
+ /**
4260
+ * Timestamp of when the sender was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4261
+ * @type {string}
4262
+ * @memberof SenderAccountResponse
4263
+ */
4264
+ created_at?: string;
4265
+ /**
4266
+ * Timestamp of when the sender was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4267
+ * @type {string}
4268
+ * @memberof SenderAccountResponse
4269
+ */
4270
+ updated_at?: string;
4271
+ }
4272
+ export declare const SenderAccountResponseAccountTypeEnum: {
4273
+ readonly ExternalAccount: "EXTERNAL_ACCOUNT";
4274
+ };
4275
+ export declare type SenderAccountResponseAccountTypeEnum = typeof SenderAccountResponseAccountTypeEnum[keyof typeof SenderAccountResponseAccountTypeEnum];
4276
+ /**
4277
+ *
4278
+ * @export
4279
+ * @interface SenderAccountsResponse
4280
+ */
4281
+ export interface SenderAccountsResponse {
4282
+ /**
4283
+ *
4284
+ * @type {Array<SenderAccountResponse>}
4285
+ * @memberof SenderAccountsResponse
4286
+ */
4287
+ sender_accounts?: Array<SenderAccountResponse>;
4288
+ }
4164
4289
  /**
4165
4290
  *
4166
4291
  * @export
@@ -4847,6 +4972,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4847
4972
  * @throws {RequiredError}
4848
4973
  */
4849
4974
  createSender: (createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4975
+ /**
4976
+ * Create Sender Account
4977
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
4978
+ * @param {*} [options] Override http request option.
4979
+ * @throws {RequiredError}
4980
+ */
4981
+ createSenderAccount: (createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4850
4982
  /**
4851
4983
  * Delete Recipient
4852
4984
  * @param {string} recipientAccountId The institution id
@@ -4854,6 +4986,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4854
4986
  * @throws {RequiredError}
4855
4987
  */
4856
4988
  deleteRecipient: (recipientAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4989
+ /**
4990
+ * Delete Sender Account
4991
+ * @param {string} senderAccountId The sender account id
4992
+ * @param {*} [options] Override http request option.
4993
+ * @throws {RequiredError}
4994
+ */
4995
+ deleteSenderAccount: (senderAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4857
4996
  /**
4858
4997
  * generate a link token that can be used to create link
4859
4998
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -4937,6 +5076,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4937
5076
  * @throws {RequiredError}
4938
5077
  */
4939
5078
  getSender: (senderId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5079
+ /**
5080
+ * Get Sender Accounts associated with a senderId
5081
+ * @param {string} senderId The sender id
5082
+ * @param {*} [options] Override http request option.
5083
+ * @throws {RequiredError}
5084
+ */
5085
+ getSenderAccounts: (senderId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4940
5086
  /**
4941
5087
  * Get a list of institutions
4942
5088
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5026,6 +5172,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5026
5172
  * @throws {RequiredError}
5027
5173
  */
5028
5174
  createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
5175
+ /**
5176
+ * Create Sender Account
5177
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5178
+ * @param {*} [options] Override http request option.
5179
+ * @throws {RequiredError}
5180
+ */
5181
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderAccountResponse>>;
5029
5182
  /**
5030
5183
  * Delete Recipient
5031
5184
  * @param {string} recipientAccountId The institution id
@@ -5033,6 +5186,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5033
5186
  * @throws {RequiredError}
5034
5187
  */
5035
5188
  deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5189
+ /**
5190
+ * Delete Sender Account
5191
+ * @param {string} senderAccountId The sender account id
5192
+ * @param {*} [options] Override http request option.
5193
+ * @throws {RequiredError}
5194
+ */
5195
+ deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5036
5196
  /**
5037
5197
  * generate a link token that can be used to create link
5038
5198
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5116,6 +5276,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5116
5276
  * @throws {RequiredError}
5117
5277
  */
5118
5278
  getSender(senderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
5279
+ /**
5280
+ * Get Sender Accounts associated with a senderId
5281
+ * @param {string} senderId The sender id
5282
+ * @param {*} [options] Override http request option.
5283
+ * @throws {RequiredError}
5284
+ */
5285
+ getSenderAccounts(senderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderAccountsResponse>>;
5119
5286
  /**
5120
5287
  * Get a list of institutions
5121
5288
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5205,6 +5372,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5205
5372
  * @throws {RequiredError}
5206
5373
  */
5207
5374
  createSender(createSenderRequest: CreateSenderRequest, options?: any): AxiosPromise<SenderResponse>;
5375
+ /**
5376
+ * Create Sender Account
5377
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5378
+ * @param {*} [options] Override http request option.
5379
+ * @throws {RequiredError}
5380
+ */
5381
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: any): AxiosPromise<SenderAccountResponse>;
5208
5382
  /**
5209
5383
  * Delete Recipient
5210
5384
  * @param {string} recipientAccountId The institution id
@@ -5212,6 +5386,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5212
5386
  * @throws {RequiredError}
5213
5387
  */
5214
5388
  deleteRecipient(recipientAccountId: string, options?: any): AxiosPromise<void>;
5389
+ /**
5390
+ * Delete Sender Account
5391
+ * @param {string} senderAccountId The sender account id
5392
+ * @param {*} [options] Override http request option.
5393
+ * @throws {RequiredError}
5394
+ */
5395
+ deleteSenderAccount(senderAccountId: string, options?: any): AxiosPromise<void>;
5215
5396
  /**
5216
5397
  * generate a link token that can be used to create link
5217
5398
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5295,6 +5476,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5295
5476
  * @throws {RequiredError}
5296
5477
  */
5297
5478
  getSender(senderId: string, options?: any): AxiosPromise<SenderResponse>;
5479
+ /**
5480
+ * Get Sender Accounts associated with a senderId
5481
+ * @param {string} senderId The sender id
5482
+ * @param {*} [options] Override http request option.
5483
+ * @throws {RequiredError}
5484
+ */
5485
+ getSenderAccounts(senderId: string, options?: any): AxiosPromise<SenderAccountsResponse>;
5298
5486
  /**
5299
5487
  * Get a list of institutions
5300
5488
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5392,6 +5580,14 @@ export interface CustomerApiInterface {
5392
5580
  * @memberof CustomerApiInterface
5393
5581
  */
5394
5582
  createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5583
+ /**
5584
+ * Create Sender Account
5585
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5586
+ * @param {*} [options] Override http request option.
5587
+ * @throws {RequiredError}
5588
+ * @memberof CustomerApiInterface
5589
+ */
5590
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): AxiosPromise<SenderAccountResponse>;
5395
5591
  /**
5396
5592
  * Delete Recipient
5397
5593
  * @param {string} recipientAccountId The institution id
@@ -5400,6 +5596,14 @@ export interface CustomerApiInterface {
5400
5596
  * @memberof CustomerApiInterface
5401
5597
  */
5402
5598
  deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
5599
+ /**
5600
+ * Delete Sender Account
5601
+ * @param {string} senderAccountId The sender account id
5602
+ * @param {*} [options] Override http request option.
5603
+ * @throws {RequiredError}
5604
+ * @memberof CustomerApiInterface
5605
+ */
5606
+ deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
5403
5607
  /**
5404
5608
  * generate a link token that can be used to create link
5405
5609
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5495,6 +5699,14 @@ export interface CustomerApiInterface {
5495
5699
  * @memberof CustomerApiInterface
5496
5700
  */
5497
5701
  getSender(senderId: string, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5702
+ /**
5703
+ * Get Sender Accounts associated with a senderId
5704
+ * @param {string} senderId The sender id
5705
+ * @param {*} [options] Override http request option.
5706
+ * @throws {RequiredError}
5707
+ * @memberof CustomerApiInterface
5708
+ */
5709
+ getSenderAccounts(senderId: string, options?: AxiosRequestConfig): AxiosPromise<SenderAccountsResponse>;
5498
5710
  /**
5499
5711
  * Get a list of institutions
5500
5712
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5597,6 +5809,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5597
5809
  * @memberof CustomerApi
5598
5810
  */
5599
5811
  createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
5812
+ /**
5813
+ * Create Sender Account
5814
+ * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5815
+ * @param {*} [options] Override http request option.
5816
+ * @throws {RequiredError}
5817
+ * @memberof CustomerApi
5818
+ */
5819
+ createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderAccountResponse>>;
5600
5820
  /**
5601
5821
  * Delete Recipient
5602
5822
  * @param {string} recipientAccountId The institution id
@@ -5605,6 +5825,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5605
5825
  * @memberof CustomerApi
5606
5826
  */
5607
5827
  deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
5828
+ /**
5829
+ * Delete Sender Account
5830
+ * @param {string} senderAccountId The sender account id
5831
+ * @param {*} [options] Override http request option.
5832
+ * @throws {RequiredError}
5833
+ * @memberof CustomerApi
5834
+ */
5835
+ deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
5608
5836
  /**
5609
5837
  * generate a link token that can be used to create link
5610
5838
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5700,6 +5928,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5700
5928
  * @memberof CustomerApi
5701
5929
  */
5702
5930
  getSender(senderId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
5931
+ /**
5932
+ * Get Sender Accounts associated with a senderId
5933
+ * @param {string} senderId The sender id
5934
+ * @param {*} [options] Override http request option.
5935
+ * @throws {RequiredError}
5936
+ * @memberof CustomerApi
5937
+ */
5938
+ getSenderAccounts(senderId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderAccountsResponse>>;
5703
5939
  /**
5704
5940
  * Get a list of institutions
5705
5941
  * @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.99",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [