@finverse/sdk-typescript 0.0.119 → 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.
Files changed (3) hide show
  1. package/dist/api.d.ts +0 -607
  2. package/dist/api.js +1 -527
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -969,132 +969,6 @@ export declare const CreateRecipientAccountAccountTypeEnum: {
969
969
  readonly ExternalAccount: "EXTERNAL_ACCOUNT";
970
970
  };
971
971
  export declare type CreateRecipientAccountAccountTypeEnum = (typeof CreateRecipientAccountAccountTypeEnum)[keyof typeof CreateRecipientAccountAccountTypeEnum];
972
- /**
973
- *
974
- * @export
975
- * @interface CreateRecipientRequest
976
- */
977
- export interface CreateRecipientRequest {
978
- /**
979
- * Recipient\'s name/nickname (note: this does not need to match the actual accountholder name of the recipient\'s account)
980
- * @type {string}
981
- * @memberof CreateRecipientRequest
982
- */
983
- name: string;
984
- /**
985
- *
986
- * @type {CreateRecipientAccount}
987
- * @memberof CreateRecipientRequest
988
- */
989
- recipient_account: CreateRecipientAccount;
990
- /**
991
- * Customer App\'s internal ID for the recipient
992
- * @type {string}
993
- * @memberof CreateRecipientRequest
994
- */
995
- user_id: string;
996
- /**
997
- * Additional attributes of the recipient in key:value format (e.g. employer_name: Apple Inc for a payroll case where recipient is an employee)
998
- * @type {{ [key: string]: string; }}
999
- * @memberof CreateRecipientRequest
1000
- */
1001
- metadata?: {
1002
- [key: string]: string;
1003
- };
1004
- }
1005
- /**
1006
- *
1007
- * @export
1008
- * @interface CreateSenderAccountRequest
1009
- */
1010
- export interface CreateSenderAccountRequest {
1011
- /**
1012
- * Accountholder name of the sender\'s account
1013
- * @type {string}
1014
- * @memberof CreateSenderAccountRequest
1015
- */
1016
- accountholder_name: string;
1017
- /**
1018
- *
1019
- * @type {RecipientAccountNumber}
1020
- * @memberof CreateSenderAccountRequest
1021
- */
1022
- account_number: RecipientAccountNumber;
1023
- /**
1024
- * Type of sender account.
1025
- * @type {string}
1026
- * @memberof CreateSenderAccountRequest
1027
- */
1028
- account_type: CreateSenderAccountRequestAccountTypeEnum;
1029
- /**
1030
- * Finverse Institution ID for the sender’s institution.
1031
- * @type {string}
1032
- * @memberof CreateSenderAccountRequest
1033
- */
1034
- institution_id: string;
1035
- /**
1036
- * A unique identifier generated after creating sender
1037
- * @type {string}
1038
- * @memberof CreateSenderAccountRequest
1039
- */
1040
- sender_id: string;
1041
- /**
1042
- * Additional attributes of the sender account in key:value format (e.g. sender_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
1043
- * @type {{ [key: string]: string; }}
1044
- * @memberof CreateSenderAccountRequest
1045
- */
1046
- metadata?: {
1047
- [key: string]: string;
1048
- };
1049
- }
1050
- export declare const CreateSenderAccountRequestAccountTypeEnum: {
1051
- readonly ExternalAccount: "EXTERNAL_ACCOUNT";
1052
- };
1053
- export declare type CreateSenderAccountRequestAccountTypeEnum = (typeof CreateSenderAccountRequestAccountTypeEnum)[keyof typeof CreateSenderAccountRequestAccountTypeEnum];
1054
- /**
1055
- *
1056
- * @export
1057
- * @interface CreateSenderRequest
1058
- */
1059
- export interface CreateSenderRequest {
1060
- /**
1061
- * Sender’s name/nickname (note: this does not need to match the actual accountholder name of the sender’s account)
1062
- * @type {string}
1063
- * @memberof CreateSenderRequest
1064
- */
1065
- name: string;
1066
- /**
1067
- * Customer App\'s internal ID for the sender
1068
- * @type {string}
1069
- * @memberof CreateSenderRequest
1070
- */
1071
- user_id: string;
1072
- /**
1073
- * Sender details which will be used for fraud checking.
1074
- * @type {Array<SenderDetail>}
1075
- * @memberof CreateSenderRequest
1076
- */
1077
- sender_details?: Array<SenderDetail>;
1078
- /**
1079
- * Type of account held by the Sender at the Institution. Possible values are INDIVIDUAL, BUSINESS
1080
- * @type {string}
1081
- * @memberof CreateSenderRequest
1082
- */
1083
- sender_type: CreateSenderRequestSenderTypeEnum;
1084
- /**
1085
- * Additional attributes of the sender in key:value format (e.g. employer_name: Apple Inc for a payroll case where sender is an employee)
1086
- * @type {{ [key: string]: string; }}
1087
- * @memberof CreateSenderRequest
1088
- */
1089
- metadata?: {
1090
- [key: string]: string;
1091
- };
1092
- }
1093
- export declare const CreateSenderRequestSenderTypeEnum: {
1094
- readonly Individual: "INDIVIDUAL";
1095
- readonly Business: "BUSINESS";
1096
- };
1097
- export declare type CreateSenderRequestSenderTypeEnum = (typeof CreateSenderRequestSenderTypeEnum)[keyof typeof CreateSenderRequestSenderTypeEnum];
1098
972
  /**
1099
973
  *
1100
974
  * @export
@@ -4393,49 +4267,6 @@ export declare const RecipientAccountResponseAccountTypeEnum: {
4393
4267
  readonly SettlementAccount: "SETTLEMENT_ACCOUNT";
4394
4268
  };
4395
4269
  export declare type RecipientAccountResponseAccountTypeEnum = (typeof RecipientAccountResponseAccountTypeEnum)[keyof typeof RecipientAccountResponseAccountTypeEnum];
4396
- /**
4397
- *
4398
- * @export
4399
- * @interface RecipientResponse
4400
- */
4401
- export interface RecipientResponse {
4402
- /**
4403
- * Recipient\'s name/nickname (note: this does not need to match the actual accountholder name of the recipient\'s account)
4404
- * @type {string}
4405
- * @memberof RecipientResponse
4406
- */
4407
- name?: string;
4408
- /**
4409
- *
4410
- * @type {RecipientAccountResponse}
4411
- * @memberof RecipientResponse
4412
- */
4413
- recipient_account?: RecipientAccountResponse;
4414
- /**
4415
- * Customer App\'s internal ID for the recipient
4416
- * @type {string}
4417
- * @memberof RecipientResponse
4418
- */
4419
- user_id?: string;
4420
- /**
4421
- * Additional attributes of the recipient in key:value format (e.g. employer_name: Apple Inc for a payroll case where recipient is an employee)
4422
- * @type {object}
4423
- * @memberof RecipientResponse
4424
- */
4425
- metadata?: object;
4426
- /**
4427
- * Timestamp of when the recipient was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4428
- * @type {string}
4429
- * @memberof RecipientResponse
4430
- */
4431
- created_at?: string;
4432
- /**
4433
- * Timestamp of when the recipient was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4434
- * @type {string}
4435
- * @memberof RecipientResponse
4436
- */
4437
- updated_at?: string;
4438
- }
4439
4270
  /**
4440
4271
  *
4441
4272
  * @export
@@ -4500,86 +4331,6 @@ export interface RelinkRequest {
4500
4331
  */
4501
4332
  consent?: boolean | null;
4502
4333
  }
4503
- /**
4504
- *
4505
- * @export
4506
- * @interface SenderAccountResponse
4507
- */
4508
- export interface SenderAccountResponse {
4509
- /**
4510
- * A unique identifier generated after creating sender account
4511
- * @type {string}
4512
- * @memberof SenderAccountResponse
4513
- */
4514
- sender_account_id?: string;
4515
- /**
4516
- * Accountholder name of the sender\'s account
4517
- * @type {string}
4518
- * @memberof SenderAccountResponse
4519
- */
4520
- accountholder_name?: string;
4521
- /**
4522
- *
4523
- * @type {RecipientAccountNumber}
4524
- * @memberof SenderAccountResponse
4525
- */
4526
- account_number?: RecipientAccountNumber;
4527
- /**
4528
- * Type of sender account.
4529
- * @type {string}
4530
- * @memberof SenderAccountResponse
4531
- */
4532
- account_type?: SenderAccountResponseAccountTypeEnum;
4533
- /**
4534
- * Finverse Institution ID for the sender’s institution.
4535
- * @type {string}
4536
- * @memberof SenderAccountResponse
4537
- */
4538
- institution_id?: string;
4539
- /**
4540
- * A unique identifier generated after creating sender
4541
- * @type {string}
4542
- * @memberof SenderAccountResponse
4543
- */
4544
- sender_id?: string;
4545
- /**
4546
- * Additional attributes of the sender account in key:value format (e.g. sender_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
4547
- * @type {{ [key: string]: string; }}
4548
- * @memberof SenderAccountResponse
4549
- */
4550
- metadata?: {
4551
- [key: string]: string;
4552
- };
4553
- /**
4554
- * Timestamp of when the sender was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4555
- * @type {string}
4556
- * @memberof SenderAccountResponse
4557
- */
4558
- created_at?: string;
4559
- /**
4560
- * Timestamp of when the sender was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4561
- * @type {string}
4562
- * @memberof SenderAccountResponse
4563
- */
4564
- updated_at?: string;
4565
- }
4566
- export declare const SenderAccountResponseAccountTypeEnum: {
4567
- readonly ExternalAccount: "EXTERNAL_ACCOUNT";
4568
- };
4569
- export declare type SenderAccountResponseAccountTypeEnum = (typeof SenderAccountResponseAccountTypeEnum)[keyof typeof SenderAccountResponseAccountTypeEnum];
4570
- /**
4571
- *
4572
- * @export
4573
- * @interface SenderAccountsResponse
4574
- */
4575
- export interface SenderAccountsResponse {
4576
- /**
4577
- *
4578
- * @type {Array<SenderAccountResponse>}
4579
- * @memberof SenderAccountsResponse
4580
- */
4581
- sender_accounts?: Array<SenderAccountResponse>;
4582
- }
4583
4334
  /**
4584
4335
  *
4585
4336
  * @export
@@ -4606,68 +4357,6 @@ export declare const SenderDetailDetailsTypeEnum: {
4606
4357
  readonly HkCertificateOfIncorporation: "HK_CERTIFICATE_OF_INCORPORATION";
4607
4358
  };
4608
4359
  export declare type SenderDetailDetailsTypeEnum = (typeof SenderDetailDetailsTypeEnum)[keyof typeof SenderDetailDetailsTypeEnum];
4609
- /**
4610
- *
4611
- * @export
4612
- * @interface SenderResponse
4613
- */
4614
- export interface SenderResponse {
4615
- /**
4616
- * A unique identifier generated after creating sender
4617
- * @type {string}
4618
- * @memberof SenderResponse
4619
- */
4620
- sender_id?: string;
4621
- /**
4622
- * Customer App\'s internal ID for the sender
4623
- * @type {string}
4624
- * @memberof SenderResponse
4625
- */
4626
- user_id?: string;
4627
- /**
4628
- * Sender’s name/nickname (note: this does not need to match the actual accountholder name of the sender’s account)
4629
- * @type {string}
4630
- * @memberof SenderResponse
4631
- */
4632
- name?: string;
4633
- /**
4634
- * Sender details which will be used for fraud checking.
4635
- * @type {Array<SenderDetail>}
4636
- * @memberof SenderResponse
4637
- */
4638
- sender_details?: Array<SenderDetail>;
4639
- /**
4640
- * Type of account held by the Sender at the Institution. Possible values are INDIVIDUAL, BUSINESS
4641
- * @type {string}
4642
- * @memberof SenderResponse
4643
- */
4644
- sender_type?: SenderResponseSenderTypeEnum;
4645
- /**
4646
- * Additional attributes of the sender in key:value format (e.g. employer_name: Apple Inc for a payroll case where sender is an employee)
4647
- * @type {{ [key: string]: string; }}
4648
- * @memberof SenderResponse
4649
- */
4650
- metadata?: {
4651
- [key: string]: string;
4652
- };
4653
- /**
4654
- * Timestamp of when the sender was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4655
- * @type {string}
4656
- * @memberof SenderResponse
4657
- */
4658
- created_at?: string;
4659
- /**
4660
- * Timestamp of when the sender was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4661
- * @type {string}
4662
- * @memberof SenderResponse
4663
- */
4664
- updated_at?: string;
4665
- }
4666
- export declare const SenderResponseSenderTypeEnum: {
4667
- readonly Individual: "INDIVIDUAL";
4668
- readonly Business: "BUSINESS";
4669
- };
4670
- export declare type SenderResponseSenderTypeEnum = (typeof SenderResponseSenderTypeEnum)[keyof typeof SenderResponseSenderTypeEnum];
4671
4360
  /**
4672
4361
  *
4673
4362
  * @export
@@ -5240,41 +4929,6 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
5240
4929
  * @throws {RequiredError}
5241
4930
  */
5242
4931
  createPayoutInstruction: (createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5243
- /**
5244
- * Create Recipients
5245
- * @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
5246
- * @param {*} [options] Override http request option.
5247
- * @throws {RequiredError}
5248
- */
5249
- createRecipient: (createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5250
- /**
5251
- * Create Sender
5252
- * @param {CreateSenderRequest} createSenderRequest request body for creating sender
5253
- * @param {*} [options] Override http request option.
5254
- * @throws {RequiredError}
5255
- */
5256
- createSender: (createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5257
- /**
5258
- * Create Sender Account
5259
- * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5260
- * @param {*} [options] Override http request option.
5261
- * @throws {RequiredError}
5262
- */
5263
- createSenderAccount: (createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5264
- /**
5265
- * Delete Recipient
5266
- * @param {string} recipientAccountId The institution id
5267
- * @param {*} [options] Override http request option.
5268
- * @throws {RequiredError}
5269
- */
5270
- deleteRecipient: (recipientAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5271
- /**
5272
- * Delete Sender Account
5273
- * @param {string} senderAccountId The sender account id
5274
- * @param {*} [options] Override http request option.
5275
- * @throws {RequiredError}
5276
- */
5277
- deleteSenderAccount: (senderAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5278
4932
  /**
5279
4933
  * generate a link token that can be used to create link
5280
4934
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5344,27 +4998,6 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
5344
4998
  * @throws {RequiredError}
5345
4999
  */
5346
5000
  getPayoutInstruction: (payoutInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5347
- /**
5348
- * Get Recipient
5349
- * @param {string} recipientAccountId The institution id
5350
- * @param {*} [options] Override http request option.
5351
- * @throws {RequiredError}
5352
- */
5353
- getRecipient: (recipientAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5354
- /**
5355
- * Get Sender
5356
- * @param {string} senderId The sender id
5357
- * @param {*} [options] Override http request option.
5358
- * @throws {RequiredError}
5359
- */
5360
- getSender: (senderId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5361
- /**
5362
- * Get Sender Accounts associated with a senderId
5363
- * @param {string} senderId The sender id
5364
- * @param {*} [options] Override http request option.
5365
- * @throws {RequiredError}
5366
- */
5367
- getSenderAccounts: (senderId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5368
5001
  /**
5369
5002
  * Get a list of institutions
5370
5003
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5440,41 +5073,6 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5440
5073
  * @throws {RequiredError}
5441
5074
  */
5442
5075
  createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
5443
- /**
5444
- * Create Recipients
5445
- * @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
5446
- * @param {*} [options] Override http request option.
5447
- * @throws {RequiredError}
5448
- */
5449
- createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecipientResponse>>;
5450
- /**
5451
- * Create Sender
5452
- * @param {CreateSenderRequest} createSenderRequest request body for creating sender
5453
- * @param {*} [options] Override http request option.
5454
- * @throws {RequiredError}
5455
- */
5456
- createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
5457
- /**
5458
- * Create Sender Account
5459
- * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5460
- * @param {*} [options] Override http request option.
5461
- * @throws {RequiredError}
5462
- */
5463
- createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderAccountResponse>>;
5464
- /**
5465
- * Delete Recipient
5466
- * @param {string} recipientAccountId The institution id
5467
- * @param {*} [options] Override http request option.
5468
- * @throws {RequiredError}
5469
- */
5470
- deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5471
- /**
5472
- * Delete Sender Account
5473
- * @param {string} senderAccountId The sender account id
5474
- * @param {*} [options] Override http request option.
5475
- * @throws {RequiredError}
5476
- */
5477
- deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5478
5076
  /**
5479
5077
  * generate a link token that can be used to create link
5480
5078
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5544,27 +5142,6 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5544
5142
  * @throws {RequiredError}
5545
5143
  */
5546
5144
  getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
5547
- /**
5548
- * Get Recipient
5549
- * @param {string} recipientAccountId The institution id
5550
- * @param {*} [options] Override http request option.
5551
- * @throws {RequiredError}
5552
- */
5553
- getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecipientResponse>>;
5554
- /**
5555
- * Get Sender
5556
- * @param {string} senderId The sender id
5557
- * @param {*} [options] Override http request option.
5558
- * @throws {RequiredError}
5559
- */
5560
- getSender(senderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
5561
- /**
5562
- * Get Sender Accounts associated with a senderId
5563
- * @param {string} senderId The sender id
5564
- * @param {*} [options] Override http request option.
5565
- * @throws {RequiredError}
5566
- */
5567
- getSenderAccounts(senderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderAccountsResponse>>;
5568
5145
  /**
5569
5146
  * Get a list of institutions
5570
5147
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5640,41 +5217,6 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5640
5217
  * @throws {RequiredError}
5641
5218
  */
5642
5219
  createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
5643
- /**
5644
- * Create Recipients
5645
- * @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
5646
- * @param {*} [options] Override http request option.
5647
- * @throws {RequiredError}
5648
- */
5649
- createRecipient(createRecipientRequest: CreateRecipientRequest, options?: any): AxiosPromise<RecipientResponse>;
5650
- /**
5651
- * Create Sender
5652
- * @param {CreateSenderRequest} createSenderRequest request body for creating sender
5653
- * @param {*} [options] Override http request option.
5654
- * @throws {RequiredError}
5655
- */
5656
- createSender(createSenderRequest: CreateSenderRequest, options?: any): AxiosPromise<SenderResponse>;
5657
- /**
5658
- * Create Sender Account
5659
- * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5660
- * @param {*} [options] Override http request option.
5661
- * @throws {RequiredError}
5662
- */
5663
- createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: any): AxiosPromise<SenderAccountResponse>;
5664
- /**
5665
- * Delete Recipient
5666
- * @param {string} recipientAccountId The institution id
5667
- * @param {*} [options] Override http request option.
5668
- * @throws {RequiredError}
5669
- */
5670
- deleteRecipient(recipientAccountId: string, options?: any): AxiosPromise<void>;
5671
- /**
5672
- * Delete Sender Account
5673
- * @param {string} senderAccountId The sender account id
5674
- * @param {*} [options] Override http request option.
5675
- * @throws {RequiredError}
5676
- */
5677
- deleteSenderAccount(senderAccountId: string, options?: any): AxiosPromise<void>;
5678
5220
  /**
5679
5221
  * generate a link token that can be used to create link
5680
5222
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5744,27 +5286,6 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5744
5286
  * @throws {RequiredError}
5745
5287
  */
5746
5288
  getPayoutInstruction(payoutInstructionId: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
5747
- /**
5748
- * Get Recipient
5749
- * @param {string} recipientAccountId The institution id
5750
- * @param {*} [options] Override http request option.
5751
- * @throws {RequiredError}
5752
- */
5753
- getRecipient(recipientAccountId: string, options?: any): AxiosPromise<RecipientResponse>;
5754
- /**
5755
- * Get Sender
5756
- * @param {string} senderId The sender id
5757
- * @param {*} [options] Override http request option.
5758
- * @throws {RequiredError}
5759
- */
5760
- getSender(senderId: string, options?: any): AxiosPromise<SenderResponse>;
5761
- /**
5762
- * Get Sender Accounts associated with a senderId
5763
- * @param {string} senderId The sender id
5764
- * @param {*} [options] Override http request option.
5765
- * @throws {RequiredError}
5766
- */
5767
- getSenderAccounts(senderId: string, options?: any): AxiosPromise<SenderAccountsResponse>;
5768
5289
  /**
5769
5290
  * Get a list of institutions
5770
5291
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5846,46 +5367,6 @@ export interface CustomerApiInterface {
5846
5367
  * @memberof CustomerApiInterface
5847
5368
  */
5848
5369
  createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
5849
- /**
5850
- * Create Recipients
5851
- * @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
5852
- * @param {*} [options] Override http request option.
5853
- * @throws {RequiredError}
5854
- * @memberof CustomerApiInterface
5855
- */
5856
- createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): AxiosPromise<RecipientResponse>;
5857
- /**
5858
- * Create Sender
5859
- * @param {CreateSenderRequest} createSenderRequest request body for creating sender
5860
- * @param {*} [options] Override http request option.
5861
- * @throws {RequiredError}
5862
- * @memberof CustomerApiInterface
5863
- */
5864
- createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5865
- /**
5866
- * Create Sender Account
5867
- * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
5868
- * @param {*} [options] Override http request option.
5869
- * @throws {RequiredError}
5870
- * @memberof CustomerApiInterface
5871
- */
5872
- createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): AxiosPromise<SenderAccountResponse>;
5873
- /**
5874
- * Delete Recipient
5875
- * @param {string} recipientAccountId The institution id
5876
- * @param {*} [options] Override http request option.
5877
- * @throws {RequiredError}
5878
- * @memberof CustomerApiInterface
5879
- */
5880
- deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
5881
- /**
5882
- * Delete Sender Account
5883
- * @param {string} senderAccountId The sender account id
5884
- * @param {*} [options] Override http request option.
5885
- * @throws {RequiredError}
5886
- * @memberof CustomerApiInterface
5887
- */
5888
- deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
5889
5370
  /**
5890
5371
  * generate a link token that can be used to create link
5891
5372
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5965,30 +5446,6 @@ export interface CustomerApiInterface {
5965
5446
  * @memberof CustomerApiInterface
5966
5447
  */
5967
5448
  getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
5968
- /**
5969
- * Get Recipient
5970
- * @param {string} recipientAccountId The institution id
5971
- * @param {*} [options] Override http request option.
5972
- * @throws {RequiredError}
5973
- * @memberof CustomerApiInterface
5974
- */
5975
- getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): AxiosPromise<RecipientResponse>;
5976
- /**
5977
- * Get Sender
5978
- * @param {string} senderId The sender id
5979
- * @param {*} [options] Override http request option.
5980
- * @throws {RequiredError}
5981
- * @memberof CustomerApiInterface
5982
- */
5983
- getSender(senderId: string, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5984
- /**
5985
- * Get Sender Accounts associated with a senderId
5986
- * @param {string} senderId The sender id
5987
- * @param {*} [options] Override http request option.
5988
- * @throws {RequiredError}
5989
- * @memberof CustomerApiInterface
5990
- */
5991
- getSenderAccounts(senderId: string, options?: AxiosRequestConfig): AxiosPromise<SenderAccountsResponse>;
5992
5449
  /**
5993
5450
  * Get a list of institutions
5994
5451
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -6075,46 +5532,6 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6075
5532
  * @memberof CustomerApi
6076
5533
  */
6077
5534
  createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
6078
- /**
6079
- * Create Recipients
6080
- * @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
6081
- * @param {*} [options] Override http request option.
6082
- * @throws {RequiredError}
6083
- * @memberof CustomerApi
6084
- */
6085
- createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RecipientResponse>>;
6086
- /**
6087
- * Create Sender
6088
- * @param {CreateSenderRequest} createSenderRequest request body for creating sender
6089
- * @param {*} [options] Override http request option.
6090
- * @throws {RequiredError}
6091
- * @memberof CustomerApi
6092
- */
6093
- createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
6094
- /**
6095
- * Create Sender Account
6096
- * @param {CreateSenderAccountRequest} createSenderAccountRequest request body for creating senderAccount
6097
- * @param {*} [options] Override http request option.
6098
- * @throws {RequiredError}
6099
- * @memberof CustomerApi
6100
- */
6101
- createSenderAccount(createSenderAccountRequest: CreateSenderAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderAccountResponse>>;
6102
- /**
6103
- * Delete Recipient
6104
- * @param {string} recipientAccountId The institution id
6105
- * @param {*} [options] Override http request option.
6106
- * @throws {RequiredError}
6107
- * @memberof CustomerApi
6108
- */
6109
- deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
6110
- /**
6111
- * Delete Sender Account
6112
- * @param {string} senderAccountId The sender account id
6113
- * @param {*} [options] Override http request option.
6114
- * @throws {RequiredError}
6115
- * @memberof CustomerApi
6116
- */
6117
- deleteSenderAccount(senderAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
6118
5535
  /**
6119
5536
  * generate a link token that can be used to create link
6120
5537
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -6194,30 +5611,6 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6194
5611
  * @memberof CustomerApi
6195
5612
  */
6196
5613
  getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
6197
- /**
6198
- * Get Recipient
6199
- * @param {string} recipientAccountId The institution id
6200
- * @param {*} [options] Override http request option.
6201
- * @throws {RequiredError}
6202
- * @memberof CustomerApi
6203
- */
6204
- getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RecipientResponse>>;
6205
- /**
6206
- * Get Sender
6207
- * @param {string} senderId The sender id
6208
- * @param {*} [options] Override http request option.
6209
- * @throws {RequiredError}
6210
- * @memberof CustomerApi
6211
- */
6212
- getSender(senderId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
6213
- /**
6214
- * Get Sender Accounts associated with a senderId
6215
- * @param {string} senderId The sender id
6216
- * @param {*} [options] Override http request option.
6217
- * @throws {RequiredError}
6218
- * @memberof CustomerApi
6219
- */
6220
- getSenderAccounts(senderId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderAccountsResponse>>;
6221
5614
  /**
6222
5615
  * Get a list of institutions
6223
5616
  * @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.SenderAccountResponseAccountTypeEnum = 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.CreateSenderRequestSenderTypeEnum = exports.CreateSenderAccountRequestAccountTypeEnum = 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;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.119",
3
+ "version": "0.0.120",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [