@finverse/sdk-typescript 0.0.94 → 0.0.95

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 +192 -0
  2. package/dist/api.js +137 -1
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -891,6 +891,56 @@ export interface CreateRecipientRequest {
891
891
  [key: string]: string;
892
892
  };
893
893
  }
894
+ /**
895
+ *
896
+ * @export
897
+ * @interface CreateSenderRequest
898
+ */
899
+ export interface CreateSenderRequest {
900
+ /**
901
+ * Sender’s name/nickname (note: this does not need to match the actual accountholder name of the sender’s account)
902
+ * @type {string}
903
+ * @memberof CreateSenderRequest
904
+ */
905
+ name: string;
906
+ /**
907
+ * Customer App\'s internal ID for the sender
908
+ * @type {string}
909
+ * @memberof CreateSenderRequest
910
+ */
911
+ user_id?: string;
912
+ /**
913
+ * Sender details which will be used for fraud checking.
914
+ * @type {Array<SenderDetail>}
915
+ * @memberof CreateSenderRequest
916
+ */
917
+ sender_details?: Array<SenderDetail>;
918
+ /**
919
+ * Customer reference for the sender
920
+ * @type {string}
921
+ * @memberof CreateSenderRequest
922
+ */
923
+ sender_reference_id?: string;
924
+ /**
925
+ * Type of account held by the Sender at the Institution. Possible values are INDIVIDUAL, BUSINESS
926
+ * @type {string}
927
+ * @memberof CreateSenderRequest
928
+ */
929
+ sender_type?: CreateSenderRequestSenderTypeEnum;
930
+ /**
931
+ * Additional attributes of the sender in key:value format (e.g. employer_name: Apple Inc for a payroll case where sender is an employee)
932
+ * @type {{ [key: string]: string; }}
933
+ * @memberof CreateSenderRequest
934
+ */
935
+ metadata?: {
936
+ [key: string]: string;
937
+ };
938
+ }
939
+ export declare const CreateSenderRequestSenderTypeEnum: {
940
+ readonly Individual: "INDIVIDUAL";
941
+ readonly Business: "BUSINESS";
942
+ };
943
+ export declare type CreateSenderRequestSenderTypeEnum = typeof CreateSenderRequestSenderTypeEnum[keyof typeof CreateSenderRequestSenderTypeEnum];
894
944
  /**
895
945
  *
896
946
  * @export
@@ -4040,6 +4090,74 @@ export declare const SenderDetailDetailsTypeEnum: {
4040
4090
  readonly HkCertificateOfIncorporation: "HK_CERTIFICATE_OF_INCORPORATION";
4041
4091
  };
4042
4092
  export declare type SenderDetailDetailsTypeEnum = typeof SenderDetailDetailsTypeEnum[keyof typeof SenderDetailDetailsTypeEnum];
4093
+ /**
4094
+ *
4095
+ * @export
4096
+ * @interface SenderResponse
4097
+ */
4098
+ export interface SenderResponse {
4099
+ /**
4100
+ * A unique identifier generated after creating sender
4101
+ * @type {string}
4102
+ * @memberof SenderResponse
4103
+ */
4104
+ sender_id: string;
4105
+ /**
4106
+ * Customer App\'s internal ID for the sender
4107
+ * @type {string}
4108
+ * @memberof SenderResponse
4109
+ */
4110
+ user_id?: string;
4111
+ /**
4112
+ * Sender’s name/nickname (note: this does not need to match the actual accountholder name of the sender’s account)
4113
+ * @type {string}
4114
+ * @memberof SenderResponse
4115
+ */
4116
+ name: string;
4117
+ /**
4118
+ * Sender details which will be used for fraud checking.
4119
+ * @type {Array<SenderDetail>}
4120
+ * @memberof SenderResponse
4121
+ */
4122
+ sender_details?: Array<SenderDetail>;
4123
+ /**
4124
+ * Customer reference for the sender
4125
+ * @type {string}
4126
+ * @memberof SenderResponse
4127
+ */
4128
+ sender_reference_id?: string;
4129
+ /**
4130
+ * Type of account held by the Sender at the Institution. Possible values are INDIVIDUAL, BUSINESS
4131
+ * @type {string}
4132
+ * @memberof SenderResponse
4133
+ */
4134
+ sender_type?: SenderResponseSenderTypeEnum;
4135
+ /**
4136
+ * Additional attributes of the sender in key:value format (e.g. employer_name: Apple Inc for a payroll case where sender is an employee)
4137
+ * @type {{ [key: string]: string; }}
4138
+ * @memberof SenderResponse
4139
+ */
4140
+ metadata?: {
4141
+ [key: string]: string;
4142
+ };
4143
+ /**
4144
+ * Timestamp of when the sender was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4145
+ * @type {string}
4146
+ * @memberof SenderResponse
4147
+ */
4148
+ created_at?: string;
4149
+ /**
4150
+ * Timestamp of when the sender was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
4151
+ * @type {string}
4152
+ * @memberof SenderResponse
4153
+ */
4154
+ updated_at?: string;
4155
+ }
4156
+ export declare const SenderResponseSenderTypeEnum: {
4157
+ readonly Individual: "INDIVIDUAL";
4158
+ readonly Business: "BUSINESS";
4159
+ };
4160
+ export declare type SenderResponseSenderTypeEnum = typeof SenderResponseSenderTypeEnum[keyof typeof SenderResponseSenderTypeEnum];
4043
4161
  /**
4044
4162
  *
4045
4163
  * @export
@@ -4625,6 +4743,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4625
4743
  * @throws {RequiredError}
4626
4744
  */
4627
4745
  createRecipient: (createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4746
+ /**
4747
+ * Create Sender
4748
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
4749
+ * @param {*} [options] Override http request option.
4750
+ * @throws {RequiredError}
4751
+ */
4752
+ createSender: (createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4628
4753
  /**
4629
4754
  * Delete Recipient
4630
4755
  * @param {string} recipientAccountId The institution id
@@ -4708,6 +4833,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4708
4833
  * @throws {RequiredError}
4709
4834
  */
4710
4835
  getRecipient: (recipientAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4836
+ /**
4837
+ * Get Sender
4838
+ * @param {string} senderId The sender id
4839
+ * @param {*} [options] Override http request option.
4840
+ * @throws {RequiredError}
4841
+ */
4842
+ getSender: (senderId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4711
4843
  /**
4712
4844
  * Get a list of institutions
4713
4845
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -4790,6 +4922,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
4790
4922
  * @throws {RequiredError}
4791
4923
  */
4792
4924
  createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecipientResponse>>;
4925
+ /**
4926
+ * Create Sender
4927
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
4928
+ * @param {*} [options] Override http request option.
4929
+ * @throws {RequiredError}
4930
+ */
4931
+ createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
4793
4932
  /**
4794
4933
  * Delete Recipient
4795
4934
  * @param {string} recipientAccountId The institution id
@@ -4873,6 +5012,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
4873
5012
  * @throws {RequiredError}
4874
5013
  */
4875
5014
  getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecipientResponse>>;
5015
+ /**
5016
+ * Get Sender
5017
+ * @param {string} senderId The sender id
5018
+ * @param {*} [options] Override http request option.
5019
+ * @throws {RequiredError}
5020
+ */
5021
+ getSender(senderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SenderResponse>>;
4876
5022
  /**
4877
5023
  * Get a list of institutions
4878
5024
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -4955,6 +5101,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
4955
5101
  * @throws {RequiredError}
4956
5102
  */
4957
5103
  createRecipient(createRecipientRequest: CreateRecipientRequest, options?: any): AxiosPromise<RecipientResponse>;
5104
+ /**
5105
+ * Create Sender
5106
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
5107
+ * @param {*} [options] Override http request option.
5108
+ * @throws {RequiredError}
5109
+ */
5110
+ createSender(createSenderRequest: CreateSenderRequest, options?: any): AxiosPromise<SenderResponse>;
4958
5111
  /**
4959
5112
  * Delete Recipient
4960
5113
  * @param {string} recipientAccountId The institution id
@@ -5038,6 +5191,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5038
5191
  * @throws {RequiredError}
5039
5192
  */
5040
5193
  getRecipient(recipientAccountId: string, options?: any): AxiosPromise<RecipientResponse>;
5194
+ /**
5195
+ * Get Sender
5196
+ * @param {string} senderId The sender id
5197
+ * @param {*} [options] Override http request option.
5198
+ * @throws {RequiredError}
5199
+ */
5200
+ getSender(senderId: string, options?: any): AxiosPromise<SenderResponse>;
5041
5201
  /**
5042
5202
  * Get a list of institutions
5043
5203
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5127,6 +5287,14 @@ export interface CustomerApiInterface {
5127
5287
  * @memberof CustomerApiInterface
5128
5288
  */
5129
5289
  createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): AxiosPromise<RecipientResponse>;
5290
+ /**
5291
+ * Create Sender
5292
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
5293
+ * @param {*} [options] Override http request option.
5294
+ * @throws {RequiredError}
5295
+ * @memberof CustomerApiInterface
5296
+ */
5297
+ createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5130
5298
  /**
5131
5299
  * Delete Recipient
5132
5300
  * @param {string} recipientAccountId The institution id
@@ -5222,6 +5390,14 @@ export interface CustomerApiInterface {
5222
5390
  * @memberof CustomerApiInterface
5223
5391
  */
5224
5392
  getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): AxiosPromise<RecipientResponse>;
5393
+ /**
5394
+ * Get Sender
5395
+ * @param {string} senderId The sender id
5396
+ * @param {*} [options] Override http request option.
5397
+ * @throws {RequiredError}
5398
+ * @memberof CustomerApiInterface
5399
+ */
5400
+ getSender(senderId: string, options?: AxiosRequestConfig): AxiosPromise<SenderResponse>;
5225
5401
  /**
5226
5402
  * Get a list of institutions
5227
5403
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5316,6 +5492,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5316
5492
  * @memberof CustomerApi
5317
5493
  */
5318
5494
  createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RecipientResponse>>;
5495
+ /**
5496
+ * Create Sender
5497
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
5498
+ * @param {*} [options] Override http request option.
5499
+ * @throws {RequiredError}
5500
+ * @memberof CustomerApi
5501
+ */
5502
+ createSender(createSenderRequest: CreateSenderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
5319
5503
  /**
5320
5504
  * Delete Recipient
5321
5505
  * @param {string} recipientAccountId The institution id
@@ -5411,6 +5595,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5411
5595
  * @memberof CustomerApi
5412
5596
  */
5413
5597
  getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RecipientResponse>>;
5598
+ /**
5599
+ * Get Sender
5600
+ * @param {string} senderId The sender id
5601
+ * @param {*} [options] Override http request option.
5602
+ * @throws {RequiredError}
5603
+ * @memberof CustomerApi
5604
+ */
5605
+ getSender(senderId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SenderResponse>>;
5414
5606
  /**
5415
5607
  * Get a list of institutions
5416
5608
  * @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.SenderDetailDetailsTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.RecipientAccountAccountTypeEnum = 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.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.RecipientAccountNumberTypeEnum = exports.RecipientAccountAccountTypeEnum = 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.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
@@ -92,6 +92,10 @@ exports.CreatePaymentRequestTypeEnum = {
92
92
  Mandate: 'MANDATE',
93
93
  Single: 'SINGLE',
94
94
  };
95
+ exports.CreateSenderRequestSenderTypeEnum = {
96
+ Individual: 'INDIVIDUAL',
97
+ Business: 'BUSINESS',
98
+ };
95
99
  exports.CustomerPaymentInstructionTypeEnum = {
96
100
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
97
101
  };
@@ -224,6 +228,10 @@ exports.SenderDetailDetailsTypeEnum = {
224
228
  HkBusinessRegistration: 'HK_BUSINESS_REGISTRATION',
225
229
  HkCertificateOfIncorporation: 'HK_CERTIFICATE_OF_INCORPORATION',
226
230
  };
231
+ exports.SenderResponseSenderTypeEnum = {
232
+ Individual: 'INDIVIDUAL',
233
+ Business: 'BUSINESS',
234
+ };
227
235
  exports.SubmitAuthChecklistResponseMandateStatusEnum = {
228
236
  Created: 'CREATED',
229
237
  Processing: 'PROCESSING',
@@ -445,6 +453,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
445
453
  options: localVarRequestOptions,
446
454
  };
447
455
  }),
456
+ /**
457
+ * Create Sender
458
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ createSender: (createSenderRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
463
+ // verify required parameter 'createSenderRequest' is not null or undefined
464
+ common_1.assertParamExists('createSender', 'createSenderRequest', createSenderRequest);
465
+ const localVarPath = `/senders`;
466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
467
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
468
+ let baseOptions;
469
+ if (configuration) {
470
+ baseOptions = configuration.baseOptions;
471
+ }
472
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
473
+ const localVarHeaderParameter = {};
474
+ const localVarQueryParameter = {};
475
+ // authentication Oauth2 required
476
+ // oauth required
477
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
478
+ localVarHeaderParameter['Content-Type'] = 'application/json';
479
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
480
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
481
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
482
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createSenderRequest, localVarRequestOptions, configuration);
483
+ return {
484
+ url: common_1.toPathString(localVarUrlObj),
485
+ options: localVarRequestOptions,
486
+ };
487
+ }),
448
488
  /**
449
489
  * Delete Recipient
450
490
  * @param {string} recipientAccountId The institution id
@@ -806,6 +846,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
806
846
  options: localVarRequestOptions,
807
847
  };
808
848
  }),
849
+ /**
850
+ * Get Sender
851
+ * @param {string} senderId The sender id
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ */
855
+ getSender: (senderId, options = {}) => __awaiter(this, void 0, void 0, function* () {
856
+ // verify required parameter 'senderId' is not null or undefined
857
+ common_1.assertParamExists('getSender', 'senderId', senderId);
858
+ const localVarPath = `/senders/{senderId}`.replace(`{${'senderId'}}`, encodeURIComponent(String(senderId)));
859
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
860
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
861
+ let baseOptions;
862
+ if (configuration) {
863
+ baseOptions = configuration.baseOptions;
864
+ }
865
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
866
+ const localVarHeaderParameter = {};
867
+ const localVarQueryParameter = {};
868
+ // authentication Oauth2 required
869
+ // oauth required
870
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
871
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
872
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
873
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
874
+ return {
875
+ url: common_1.toPathString(localVarUrlObj),
876
+ options: localVarRequestOptions,
877
+ };
878
+ }),
809
879
  /**
810
880
  * Get a list of institutions
811
881
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1029,6 +1099,18 @@ exports.CustomerApiFp = function (configuration) {
1029
1099
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1030
1100
  });
1031
1101
  },
1102
+ /**
1103
+ * Create Sender
1104
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
1105
+ * @param {*} [options] Override http request option.
1106
+ * @throws {RequiredError}
1107
+ */
1108
+ createSender(createSenderRequest, options) {
1109
+ return __awaiter(this, void 0, void 0, function* () {
1110
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSender(createSenderRequest, options);
1111
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1112
+ });
1113
+ },
1032
1114
  /**
1033
1115
  * Delete Recipient
1034
1116
  * @param {string} recipientAccountId The institution id
@@ -1172,6 +1254,18 @@ exports.CustomerApiFp = function (configuration) {
1172
1254
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1173
1255
  });
1174
1256
  },
1257
+ /**
1258
+ * Get Sender
1259
+ * @param {string} senderId The sender id
1260
+ * @param {*} [options] Override http request option.
1261
+ * @throws {RequiredError}
1262
+ */
1263
+ getSender(senderId, options) {
1264
+ return __awaiter(this, void 0, void 0, function* () {
1265
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSender(senderId, options);
1266
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1267
+ });
1268
+ },
1175
1269
  /**
1176
1270
  * Get a list of institutions
1177
1271
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1299,6 +1393,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1299
1393
  createRecipient(createRecipientRequest, options) {
1300
1394
  return localVarFp.createRecipient(createRecipientRequest, options).then((request) => request(axios, basePath));
1301
1395
  },
1396
+ /**
1397
+ * Create Sender
1398
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
1399
+ * @param {*} [options] Override http request option.
1400
+ * @throws {RequiredError}
1401
+ */
1402
+ createSender(createSenderRequest, options) {
1403
+ return localVarFp.createSender(createSenderRequest, options).then((request) => request(axios, basePath));
1404
+ },
1302
1405
  /**
1303
1406
  * Delete Recipient
1304
1407
  * @param {string} recipientAccountId The institution id
@@ -1410,6 +1513,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1410
1513
  getRecipient(recipientAccountId, options) {
1411
1514
  return localVarFp.getRecipient(recipientAccountId, options).then((request) => request(axios, basePath));
1412
1515
  },
1516
+ /**
1517
+ * Get Sender
1518
+ * @param {string} senderId The sender id
1519
+ * @param {*} [options] Override http request option.
1520
+ * @throws {RequiredError}
1521
+ */
1522
+ getSender(senderId, options) {
1523
+ return localVarFp.getSender(senderId, options).then((request) => request(axios, basePath));
1524
+ },
1413
1525
  /**
1414
1526
  * Get a list of institutions
1415
1527
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1537,6 +1649,18 @@ class CustomerApi extends base_1.BaseAPI {
1537
1649
  .createRecipient(createRecipientRequest, options)
1538
1650
  .then((request) => request(this.axios, this.basePath));
1539
1651
  }
1652
+ /**
1653
+ * Create Sender
1654
+ * @param {CreateSenderRequest} createSenderRequest request body for creating sender
1655
+ * @param {*} [options] Override http request option.
1656
+ * @throws {RequiredError}
1657
+ * @memberof CustomerApi
1658
+ */
1659
+ createSender(createSenderRequest, options) {
1660
+ return exports.CustomerApiFp(this.configuration)
1661
+ .createSender(createSenderRequest, options)
1662
+ .then((request) => request(this.axios, this.basePath));
1663
+ }
1540
1664
  /**
1541
1665
  * Delete Recipient
1542
1666
  * @param {string} recipientAccountId The institution id
@@ -1680,6 +1804,18 @@ class CustomerApi extends base_1.BaseAPI {
1680
1804
  .getRecipient(recipientAccountId, options)
1681
1805
  .then((request) => request(this.axios, this.basePath));
1682
1806
  }
1807
+ /**
1808
+ * Get Sender
1809
+ * @param {string} senderId The sender id
1810
+ * @param {*} [options] Override http request option.
1811
+ * @throws {RequiredError}
1812
+ * @memberof CustomerApi
1813
+ */
1814
+ getSender(senderId, options) {
1815
+ return exports.CustomerApiFp(this.configuration)
1816
+ .getSender(senderId, options)
1817
+ .then((request) => request(this.axios, this.basePath));
1818
+ }
1683
1819
  /**
1684
1820
  * Get a list of institutions
1685
1821
  * @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.94",
3
+ "version": "0.0.95",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [