@finverse/sdk-typescript 0.0.97 → 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 +301 -10
  2. package/dist/api.js +204 -1
  3. package/package.json +2 -2
package/dist/api.d.ts CHANGED
@@ -709,10 +709,10 @@ export interface CreateMandateResponse {
709
709
  mandate_details: MandateDetails;
710
710
  /**
711
711
  *
712
- * @type {FvErrorModel}
712
+ * @type {FvErrorModelV2}
713
713
  * @memberof CreateMandateResponse
714
714
  */
715
- error?: FvErrorModel;
715
+ error?: FvErrorModelV2;
716
716
  }
717
717
  export declare const CreateMandateResponseStatusEnum: {
718
718
  readonly AuthorizationRequired: "AUTHORIZATION_REQUIRED";
@@ -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
@@ -1153,6 +1200,19 @@ export interface ErrBodyModel {
1153
1200
  */
1154
1201
  error?: FvErrorModel;
1155
1202
  }
1203
+ /**
1204
+ *
1205
+ * @export
1206
+ * @interface ErrBodyModelV2
1207
+ */
1208
+ export interface ErrBodyModelV2 {
1209
+ /**
1210
+ *
1211
+ * @type {FvErrorModelV2}
1212
+ * @memberof ErrBodyModelV2
1213
+ */
1214
+ error?: FvErrorModelV2;
1215
+ }
1156
1216
  /**
1157
1217
  *
1158
1218
  * @export
@@ -1250,6 +1310,48 @@ export declare const FvErrorModelTypeEnum: {
1250
1310
  readonly ApiError: "API_ERROR";
1251
1311
  };
1252
1312
  export declare type FvErrorModelTypeEnum = typeof FvErrorModelTypeEnum[keyof typeof FvErrorModelTypeEnum];
1313
+ /**
1314
+ *
1315
+ * @export
1316
+ * @interface FvErrorModelV2
1317
+ */
1318
+ export interface FvErrorModelV2 {
1319
+ /**
1320
+ * The error type
1321
+ * @type {string}
1322
+ * @memberof FvErrorModelV2
1323
+ */
1324
+ type: FvErrorModelV2TypeEnum;
1325
+ /**
1326
+ *
1327
+ * @type {string}
1328
+ * @memberof FvErrorModelV2
1329
+ */
1330
+ error_code: string;
1331
+ /**
1332
+ *
1333
+ * @type {string}
1334
+ * @memberof FvErrorModelV2
1335
+ */
1336
+ message: string;
1337
+ /**
1338
+ *
1339
+ * @type {string}
1340
+ * @memberof FvErrorModelV2
1341
+ */
1342
+ details: string;
1343
+ /**
1344
+ * The request_id provided in the request header
1345
+ * @type {string}
1346
+ * @memberof FvErrorModelV2
1347
+ */
1348
+ request_id: string;
1349
+ }
1350
+ export declare const FvErrorModelV2TypeEnum: {
1351
+ readonly LinkError: "LINK_ERROR";
1352
+ readonly ApiError: "API_ERROR";
1353
+ };
1354
+ export declare type FvErrorModelV2TypeEnum = typeof FvErrorModelV2TypeEnum[keyof typeof FvErrorModelV2TypeEnum];
1253
1355
  /**
1254
1356
  *
1255
1357
  * @export
@@ -1540,10 +1642,10 @@ export interface GetMandateAuthResponse {
1540
1642
  last_update: string;
1541
1643
  /**
1542
1644
  *
1543
- * @type {FvErrorModel}
1645
+ * @type {FvErrorModelV2}
1544
1646
  * @memberof GetMandateAuthResponse
1545
1647
  */
1546
- error?: FvErrorModel;
1648
+ error?: FvErrorModelV2;
1547
1649
  }
1548
1650
  export declare const GetMandateAuthResponseMandateStatusEnum: {
1549
1651
  readonly Created: "CREATED";
@@ -1601,10 +1703,10 @@ export interface GetMandateResponse {
1601
1703
  mandate_details: MandateDetails;
1602
1704
  /**
1603
1705
  *
1604
- * @type {FvErrorModel}
1706
+ * @type {FvErrorModelV2}
1605
1707
  * @memberof GetMandateResponse
1606
1708
  */
1607
- error?: FvErrorModel;
1709
+ error?: FvErrorModelV2;
1608
1710
  }
1609
1711
  export declare const GetMandateResponseStatusEnum: {
1610
1712
  readonly AuthorizationRequired: "AUTHORIZATION_REQUIRED";
@@ -3713,10 +3815,10 @@ export interface PaymentResponse {
3713
3815
  transaction_date?: string | null;
3714
3816
  /**
3715
3817
  *
3716
- * @type {FvErrorModel}
3818
+ * @type {FvErrorModelV2}
3717
3819
  * @memberof PaymentResponse
3718
3820
  */
3719
- error?: FvErrorModel;
3821
+ error?: FvErrorModelV2;
3720
3822
  }
3721
3823
  export declare const PaymentResponseTypeEnum: {
3722
3824
  readonly Mandate: "MANDATE";
@@ -3816,10 +3918,10 @@ export interface PayoutInstructionResponse {
3816
3918
  currency?: string;
3817
3919
  /**
3818
3920
  *
3819
- * @type {FvErrorModel}
3921
+ * @type {FvErrorModelV2}
3820
3922
  * @memberof PayoutInstructionResponse
3821
3923
  */
3822
- error?: FvErrorModel;
3924
+ error?: FvErrorModelV2;
3823
3925
  }
3824
3926
  export declare const PayoutInstructionResponseStatusEnum: {
3825
3927
  readonly Created: "CREATED";
@@ -4106,6 +4208,84 @@ export interface RelinkRequest {
4106
4208
  */
4107
4209
  consent?: boolean | null;
4108
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
+ }
4109
4289
  /**
4110
4290
  *
4111
4291
  * @export
@@ -4792,6 +4972,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4792
4972
  * @throws {RequiredError}
4793
4973
  */
4794
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>;
4795
4982
  /**
4796
4983
  * Delete Recipient
4797
4984
  * @param {string} recipientAccountId The institution id
@@ -4799,6 +4986,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4799
4986
  * @throws {RequiredError}
4800
4987
  */
4801
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>;
4802
4996
  /**
4803
4997
  * generate a link token that can be used to create link
4804
4998
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -4882,6 +5076,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4882
5076
  * @throws {RequiredError}
4883
5077
  */
4884
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>;
4885
5086
  /**
4886
5087
  * Get a list of institutions
4887
5088
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -4971,6 +5172,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
4971
5172
  * @throws {RequiredError}
4972
5173
  */
4973
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>>;
4974
5182
  /**
4975
5183
  * Delete Recipient
4976
5184
  * @param {string} recipientAccountId The institution id
@@ -4978,6 +5186,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
4978
5186
  * @throws {RequiredError}
4979
5187
  */
4980
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>>;
4981
5196
  /**
4982
5197
  * generate a link token that can be used to create link
4983
5198
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5061,6 +5276,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5061
5276
  * @throws {RequiredError}
5062
5277
  */
5063
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>>;
5064
5286
  /**
5065
5287
  * Get a list of institutions
5066
5288
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5150,6 +5372,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5150
5372
  * @throws {RequiredError}
5151
5373
  */
5152
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>;
5153
5382
  /**
5154
5383
  * Delete Recipient
5155
5384
  * @param {string} recipientAccountId The institution id
@@ -5157,6 +5386,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5157
5386
  * @throws {RequiredError}
5158
5387
  */
5159
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>;
5160
5396
  /**
5161
5397
  * generate a link token that can be used to create link
5162
5398
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5240,6 +5476,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5240
5476
  * @throws {RequiredError}
5241
5477
  */
5242
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>;
5243
5486
  /**
5244
5487
  * Get a list of institutions
5245
5488
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5337,6 +5580,14 @@ export interface CustomerApiInterface {
5337
5580
  * @memberof CustomerApiInterface
5338
5581
  */
5339
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>;
5340
5591
  /**
5341
5592
  * Delete Recipient
5342
5593
  * @param {string} recipientAccountId The institution id
@@ -5345,6 +5596,14 @@ export interface CustomerApiInterface {
5345
5596
  * @memberof CustomerApiInterface
5346
5597
  */
5347
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>;
5348
5607
  /**
5349
5608
  * generate a link token that can be used to create link
5350
5609
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5440,6 +5699,14 @@ export interface CustomerApiInterface {
5440
5699
  * @memberof CustomerApiInterface
5441
5700
  */
5442
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>;
5443
5710
  /**
5444
5711
  * Get a list of institutions
5445
5712
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5542,6 +5809,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5542
5809
  * @memberof CustomerApi
5543
5810
  */
5544
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>>;
5545
5820
  /**
5546
5821
  * Delete Recipient
5547
5822
  * @param {string} recipientAccountId The institution id
@@ -5550,6 +5825,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5550
5825
  * @memberof CustomerApi
5551
5826
  */
5552
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>>;
5553
5836
  /**
5554
5837
  * generate a link token that can be used to create link
5555
5838
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -5645,6 +5928,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5645
5928
  * @memberof CustomerApi
5646
5929
  */
5647
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>>;
5648
5939
  /**
5649
5940
  * Get a list of institutions
5650
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.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',
@@ -106,6 +109,10 @@ exports.FvErrorModelTypeEnum = {
106
109
  LinkError: 'LINK_ERROR',
107
110
  ApiError: 'API_ERROR',
108
111
  };
112
+ exports.FvErrorModelV2TypeEnum = {
113
+ LinkError: 'LINK_ERROR',
114
+ ApiError: 'API_ERROR',
115
+ };
109
116
  exports.GetBalanceHistoryResponseSourceEnum = {
110
117
  Institution: 'INSTITUTION',
111
118
  Computed: 'COMPUTED',
@@ -226,6 +233,9 @@ exports.RecipientAccountResponseAccountTypeEnum = {
226
233
  ExternalAccount: 'EXTERNAL_ACCOUNT',
227
234
  SettlementAccount: 'SETTLEMENT_ACCOUNT',
228
235
  };
236
+ exports.SenderAccountResponseAccountTypeEnum = {
237
+ ExternalAccount: 'EXTERNAL_ACCOUNT',
238
+ };
229
239
  exports.SenderDetailDetailsTypeEnum = {
230
240
  HkId: 'HK_ID',
231
241
  Passport: 'PASSPORT',
@@ -489,6 +499,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
489
499
  options: localVarRequestOptions,
490
500
  };
491
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
+ }),
492
534
  /**
493
535
  * Delete Recipient
494
536
  * @param {string} recipientAccountId The institution id
@@ -519,6 +561,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
519
561
  options: localVarRequestOptions,
520
562
  };
521
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
+ }),
522
594
  /**
523
595
  * generate a link token that can be used to create link
524
596
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -880,6 +952,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
880
952
  options: localVarRequestOptions,
881
953
  };
882
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
+ }),
883
985
  /**
884
986
  * Get a list of institutions
885
987
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1115,6 +1217,18 @@ exports.CustomerApiFp = function (configuration) {
1115
1217
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1116
1218
  });
1117
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
+ },
1118
1232
  /**
1119
1233
  * Delete Recipient
1120
1234
  * @param {string} recipientAccountId The institution id
@@ -1127,6 +1241,18 @@ exports.CustomerApiFp = function (configuration) {
1127
1241
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1128
1242
  });
1129
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
+ },
1130
1256
  /**
1131
1257
  * generate a link token that can be used to create link
1132
1258
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -1270,6 +1396,18 @@ exports.CustomerApiFp = function (configuration) {
1270
1396
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1271
1397
  });
1272
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
+ },
1273
1411
  /**
1274
1412
  * Get a list of institutions
1275
1413
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1406,6 +1544,17 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1406
1544
  createSender(createSenderRequest, options) {
1407
1545
  return localVarFp.createSender(createSenderRequest, options).then((request) => request(axios, basePath));
1408
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
+ },
1409
1558
  /**
1410
1559
  * Delete Recipient
1411
1560
  * @param {string} recipientAccountId The institution id
@@ -1415,6 +1564,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1415
1564
  deleteRecipient(recipientAccountId, options) {
1416
1565
  return localVarFp.deleteRecipient(recipientAccountId, options).then((request) => request(axios, basePath));
1417
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
+ },
1418
1576
  /**
1419
1577
  * generate a link token that can be used to create link
1420
1578
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -1526,6 +1684,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1526
1684
  getSender(senderId, options) {
1527
1685
  return localVarFp.getSender(senderId, options).then((request) => request(axios, basePath));
1528
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
+ },
1529
1696
  /**
1530
1697
  * Get a list of institutions
1531
1698
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1665,6 +1832,18 @@ class CustomerApi extends base_1.BaseAPI {
1665
1832
  .createSender(createSenderRequest, options)
1666
1833
  .then((request) => request(this.axios, this.basePath));
1667
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
+ }
1668
1847
  /**
1669
1848
  * Delete Recipient
1670
1849
  * @param {string} recipientAccountId The institution id
@@ -1677,6 +1856,18 @@ class CustomerApi extends base_1.BaseAPI {
1677
1856
  .deleteRecipient(recipientAccountId, options)
1678
1857
  .then((request) => request(this.axios, this.basePath));
1679
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
+ }
1680
1871
  /**
1681
1872
  * generate a link token that can be used to create link
1682
1873
  * @param {LinkTokenRequest} linkTokenRequest token request
@@ -1820,6 +2011,18 @@ class CustomerApi extends base_1.BaseAPI {
1820
2011
  .getSender(senderId, options)
1821
2012
  .then((request) => request(this.axios, this.basePath));
1822
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
+ }
1823
2026
  /**
1824
2027
  * Get a list of institutions
1825
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.97",
3
+ "version": "0.0.99",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^12.11.5",
27
27
  "axios-mock-adapter": "^1.21.2",
28
28
  "chai": "^4.3.7",
29
- "mocha": "^10.1.0",
29
+ "mocha": "^10.2.0",
30
30
  "ts-node": "^10.9.1",
31
31
  "typescript": "^3.6.4"
32
32
  },