@finverse/sdk-typescript 0.0.161 → 0.0.162

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 +139 -1
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -1061,6 +1061,56 @@ export declare const CreatePaymentRequestTypeEnum: {
1061
1061
  readonly Single: "SINGLE";
1062
1062
  };
1063
1063
  export declare type CreatePaymentRequestTypeEnum = (typeof CreatePaymentRequestTypeEnum)[keyof typeof CreatePaymentRequestTypeEnum];
1064
+ /**
1065
+ *
1066
+ * @export
1067
+ * @interface CreatePaymentUserRequest
1068
+ */
1069
+ export interface CreatePaymentUserRequest {
1070
+ /**
1071
+ *
1072
+ * @type {string}
1073
+ * @memberof CreatePaymentUserRequest
1074
+ */
1075
+ name: string;
1076
+ /**
1077
+ *
1078
+ * @type {string}
1079
+ * @memberof CreatePaymentUserRequest
1080
+ */
1081
+ external_user_id: string;
1082
+ /**
1083
+ *
1084
+ * @type {string}
1085
+ * @memberof CreatePaymentUserRequest
1086
+ */
1087
+ user_type?: CreatePaymentUserRequestUserTypeEnum;
1088
+ /**
1089
+ *
1090
+ * @type {string}
1091
+ * @memberof CreatePaymentUserRequest
1092
+ */
1093
+ email?: string;
1094
+ /**
1095
+ *
1096
+ * @type {Array<SenderDetail>}
1097
+ * @memberof CreatePaymentUserRequest
1098
+ */
1099
+ user_details?: Array<SenderDetail>;
1100
+ /**
1101
+ *
1102
+ * @type {{ [key: string]: string; }}
1103
+ * @memberof CreatePaymentUserRequest
1104
+ */
1105
+ metadata?: {
1106
+ [key: string]: string;
1107
+ };
1108
+ }
1109
+ export declare const CreatePaymentUserRequestUserTypeEnum: {
1110
+ readonly Individual: "INDIVIDUAL";
1111
+ readonly Business: "BUSINESS";
1112
+ };
1113
+ export declare type CreatePaymentUserRequestUserTypeEnum = (typeof CreatePaymentUserRequestUserTypeEnum)[keyof typeof CreatePaymentUserRequestUserTypeEnum];
1064
1114
  /**
1065
1115
  *
1066
1116
  * @export
@@ -4610,6 +4660,74 @@ export declare const PaymentScheduleFrequencyEnum: {
4610
4660
  readonly Yearly: "YEARLY";
4611
4661
  };
4612
4662
  export declare type PaymentScheduleFrequencyEnum = (typeof PaymentScheduleFrequencyEnum)[keyof typeof PaymentScheduleFrequencyEnum];
4663
+ /**
4664
+ *
4665
+ * @export
4666
+ * @interface PaymentUser
4667
+ */
4668
+ export interface PaymentUser {
4669
+ /**
4670
+ *
4671
+ * @type {string}
4672
+ * @memberof PaymentUser
4673
+ */
4674
+ created_at?: string;
4675
+ /**
4676
+ *
4677
+ * @type {string}
4678
+ * @memberof PaymentUser
4679
+ */
4680
+ email?: string;
4681
+ /**
4682
+ *
4683
+ * @type {string}
4684
+ * @memberof PaymentUser
4685
+ */
4686
+ external_user_id?: string;
4687
+ /**
4688
+ *
4689
+ * @type {{ [key: string]: string; }}
4690
+ * @memberof PaymentUser
4691
+ */
4692
+ metadata?: {
4693
+ [key: string]: string;
4694
+ };
4695
+ /**
4696
+ *
4697
+ * @type {string}
4698
+ * @memberof PaymentUser
4699
+ */
4700
+ name?: string;
4701
+ /**
4702
+ *
4703
+ * @type {Array<SenderDetail>}
4704
+ * @memberof PaymentUser
4705
+ */
4706
+ user_details?: Array<SenderDetail>;
4707
+ /**
4708
+ *
4709
+ * @type {string}
4710
+ * @memberof PaymentUser
4711
+ */
4712
+ updated_at?: string;
4713
+ /**
4714
+ *
4715
+ * @type {string}
4716
+ * @memberof PaymentUser
4717
+ */
4718
+ user_id?: string;
4719
+ /**
4720
+ *
4721
+ * @type {string}
4722
+ * @memberof PaymentUser
4723
+ */
4724
+ user_type?: PaymentUserUserTypeEnum;
4725
+ }
4726
+ export declare const PaymentUserUserTypeEnum: {
4727
+ readonly Individual: "INDIVIDUAL";
4728
+ readonly Business: "BUSINESS";
4729
+ };
4730
+ export declare type PaymentUserUserTypeEnum = (typeof PaymentUserUserTypeEnum)[keyof typeof PaymentUserUserTypeEnum];
4613
4731
  /**
4614
4732
  *
4615
4733
  * @export
@@ -5673,6 +5791,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
5673
5791
  * @throws {RequiredError}
5674
5792
  */
5675
5793
  createPaymentInstruction: (paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5794
+ /**
5795
+ * Create a payment user
5796
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
5797
+ * @param {*} [options] Override http request option.
5798
+ * @throws {RequiredError}
5799
+ */
5800
+ createPaymentUser: (createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5676
5801
  /**
5677
5802
  * Create new Payout instruction
5678
5803
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -5757,6 +5882,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
5757
5882
  * @throws {RequiredError}
5758
5883
  */
5759
5884
  getPaymentInstruction: (paymentInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5885
+ /**
5886
+ * Get a payment user
5887
+ * @param {string} paymentUserId
5888
+ * @param {*} [options] Override http request option.
5889
+ * @throws {RequiredError}
5890
+ */
5891
+ getPaymentUser: (paymentUserId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5760
5892
  /**
5761
5893
  * Get Payout Instruction details by payout_instruction_id
5762
5894
  * @param {string} payoutInstructionId payout instruction id
@@ -5845,6 +5977,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5845
5977
  * @throws {RequiredError}
5846
5978
  */
5847
5979
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentInstructionResponse>>;
5980
+ /**
5981
+ * Create a payment user
5982
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
5983
+ * @param {*} [options] Override http request option.
5984
+ * @throws {RequiredError}
5985
+ */
5986
+ createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
5848
5987
  /**
5849
5988
  * Create new Payout instruction
5850
5989
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -5929,6 +6068,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5929
6068
  * @throws {RequiredError}
5930
6069
  */
5931
6070
  getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentInstructionsResponse>>;
6071
+ /**
6072
+ * Get a payment user
6073
+ * @param {string} paymentUserId
6074
+ * @param {*} [options] Override http request option.
6075
+ * @throws {RequiredError}
6076
+ */
6077
+ getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
5932
6078
  /**
5933
6079
  * Get Payout Instruction details by payout_instruction_id
5934
6080
  * @param {string} payoutInstructionId payout instruction id
@@ -6017,6 +6163,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
6017
6163
  * @throws {RequiredError}
6018
6164
  */
6019
6165
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: any): AxiosPromise<CreatePaymentInstructionResponse>;
6166
+ /**
6167
+ * Create a payment user
6168
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6169
+ * @param {*} [options] Override http request option.
6170
+ * @throws {RequiredError}
6171
+ */
6172
+ createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: any): AxiosPromise<PaymentUser>;
6020
6173
  /**
6021
6174
  * Create new Payout instruction
6022
6175
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -6101,6 +6254,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
6101
6254
  * @throws {RequiredError}
6102
6255
  */
6103
6256
  getPaymentInstruction(paymentInstructionId: string, options?: any): AxiosPromise<GetPaymentInstructionsResponse>;
6257
+ /**
6258
+ * Get a payment user
6259
+ * @param {string} paymentUserId
6260
+ * @param {*} [options] Override http request option.
6261
+ * @throws {RequiredError}
6262
+ */
6263
+ getPaymentUser(paymentUserId: string, options?: any): AxiosPromise<PaymentUser>;
6104
6264
  /**
6105
6265
  * Get Payout Instruction details by payout_instruction_id
6106
6266
  * @param {string} payoutInstructionId payout instruction id
@@ -6195,6 +6355,14 @@ export interface CustomerApiInterface {
6195
6355
  * @memberof CustomerApiInterface
6196
6356
  */
6197
6357
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentInstructionResponse>;
6358
+ /**
6359
+ * Create a payment user
6360
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6361
+ * @param {*} [options] Override http request option.
6362
+ * @throws {RequiredError}
6363
+ * @memberof CustomerApiInterface
6364
+ */
6365
+ createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
6198
6366
  /**
6199
6367
  * Create new Payout instruction
6200
6368
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -6291,6 +6459,14 @@ export interface CustomerApiInterface {
6291
6459
  * @memberof CustomerApiInterface
6292
6460
  */
6293
6461
  getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentInstructionsResponse>;
6462
+ /**
6463
+ * Get a payment user
6464
+ * @param {string} paymentUserId
6465
+ * @param {*} [options] Override http request option.
6466
+ * @throws {RequiredError}
6467
+ * @memberof CustomerApiInterface
6468
+ */
6469
+ getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
6294
6470
  /**
6295
6471
  * Get Payout Instruction details by payout_instruction_id
6296
6472
  * @param {string} payoutInstructionId payout instruction id
@@ -6392,6 +6568,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6392
6568
  * @memberof CustomerApi
6393
6569
  */
6394
6570
  createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentInstructionResponse>>;
6571
+ /**
6572
+ * Create a payment user
6573
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
6574
+ * @param {*} [options] Override http request option.
6575
+ * @throws {RequiredError}
6576
+ * @memberof CustomerApi
6577
+ */
6578
+ createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
6395
6579
  /**
6396
6580
  * Create new Payout instruction
6397
6581
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -6488,6 +6672,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6488
6672
  * @memberof CustomerApi
6489
6673
  */
6490
6674
  getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentInstructionsResponse>>;
6675
+ /**
6676
+ * Get a payment user
6677
+ * @param {string} paymentUserId
6678
+ * @param {*} [options] Override http request option.
6679
+ * @throws {RequiredError}
6680
+ * @memberof CustomerApi
6681
+ */
6682
+ getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
6491
6683
  /**
6492
6684
  * Get Payout Instruction details by payout_instruction_id
6493
6685
  * @param {string} payoutInstructionId payout instruction id
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.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = 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.PaymentUserUserTypeEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = 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
@@ -102,6 +102,10 @@ exports.CreatePaymentRequestTypeEnum = {
102
102
  Mandate: 'MANDATE',
103
103
  Single: 'SINGLE',
104
104
  };
105
+ exports.CreatePaymentUserRequestUserTypeEnum = {
106
+ Individual: 'INDIVIDUAL',
107
+ Business: 'BUSINESS',
108
+ };
105
109
  exports.CreateRecipientAccountAccountTypeEnum = {
106
110
  ExternalAccount: 'EXTERNAL_ACCOUNT',
107
111
  };
@@ -258,6 +262,10 @@ exports.PaymentScheduleFrequencyEnum = {
258
262
  Quarterly: 'QUARTERLY',
259
263
  Yearly: 'YEARLY',
260
264
  };
265
+ exports.PaymentUserUserTypeEnum = {
266
+ Individual: 'INDIVIDUAL',
267
+ Business: 'BUSINESS',
268
+ };
261
269
  exports.PayoutInstructionResponseStatusEnum = {
262
270
  Created: 'CREATED',
263
271
  Processing: 'PROCESSING',
@@ -464,6 +472,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
464
472
  options: localVarRequestOptions,
465
473
  };
466
474
  }),
475
+ /**
476
+ * Create a payment user
477
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ createPaymentUser: (createPaymentAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
482
+ // verify required parameter 'createPaymentAccountRequest' is not null or undefined
483
+ common_1.assertParamExists('createPaymentUser', 'createPaymentAccountRequest', createPaymentAccountRequest);
484
+ const localVarPath = `/payment_users`;
485
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
486
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
487
+ let baseOptions;
488
+ if (configuration) {
489
+ baseOptions = configuration.baseOptions;
490
+ }
491
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
492
+ const localVarHeaderParameter = {};
493
+ const localVarQueryParameter = {};
494
+ // authentication Oauth2 required
495
+ // oauth required
496
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
498
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
500
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
501
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentAccountRequest, localVarRequestOptions, configuration);
502
+ return {
503
+ url: common_1.toPathString(localVarUrlObj),
504
+ options: localVarRequestOptions,
505
+ };
506
+ }),
467
507
  /**
468
508
  * Create new Payout instruction
469
509
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -831,6 +871,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
831
871
  options: localVarRequestOptions,
832
872
  };
833
873
  }),
874
+ /**
875
+ * Get a payment user
876
+ * @param {string} paymentUserId
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ */
880
+ getPaymentUser: (paymentUserId, options = {}) => __awaiter(this, void 0, void 0, function* () {
881
+ // verify required parameter 'paymentUserId' is not null or undefined
882
+ common_1.assertParamExists('getPaymentUser', 'paymentUserId', paymentUserId);
883
+ const localVarPath = `/payment_users/{paymentUserId}`.replace(`{${'paymentUserId'}}`, encodeURIComponent(String(paymentUserId)));
884
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
885
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
886
+ let baseOptions;
887
+ if (configuration) {
888
+ baseOptions = configuration.baseOptions;
889
+ }
890
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
891
+ const localVarHeaderParameter = {};
892
+ const localVarQueryParameter = {};
893
+ // authentication Oauth2 required
894
+ // oauth required
895
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
896
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
898
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
899
+ return {
900
+ url: common_1.toPathString(localVarUrlObj),
901
+ options: localVarRequestOptions,
902
+ };
903
+ }),
834
904
  /**
835
905
  * Get Payout Instruction details by payout_instruction_id
836
906
  * @param {string} payoutInstructionId payout instruction id
@@ -1101,6 +1171,18 @@ exports.CustomerApiFp = function (configuration) {
1101
1171
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1102
1172
  });
1103
1173
  },
1174
+ /**
1175
+ * Create a payment user
1176
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
1177
+ * @param {*} [options] Override http request option.
1178
+ * @throws {RequiredError}
1179
+ */
1180
+ createPaymentUser(createPaymentAccountRequest, options) {
1181
+ return __awaiter(this, void 0, void 0, function* () {
1182
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentUser(createPaymentAccountRequest, options);
1183
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1184
+ });
1185
+ },
1104
1186
  /**
1105
1187
  * Create new Payout instruction
1106
1188
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -1245,6 +1327,18 @@ exports.CustomerApiFp = function (configuration) {
1245
1327
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1246
1328
  });
1247
1329
  },
1330
+ /**
1331
+ * Get a payment user
1332
+ * @param {string} paymentUserId
1333
+ * @param {*} [options] Override http request option.
1334
+ * @throws {RequiredError}
1335
+ */
1336
+ getPaymentUser(paymentUserId, options) {
1337
+ return __awaiter(this, void 0, void 0, function* () {
1338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentUser(paymentUserId, options);
1339
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1340
+ });
1341
+ },
1248
1342
  /**
1249
1343
  * Get Payout Instruction details by payout_instruction_id
1250
1344
  * @param {string} payoutInstructionId payout instruction id
@@ -1386,6 +1480,17 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1386
1480
  .createPaymentInstruction(paymentInstruction, options)
1387
1481
  .then((request) => request(axios, basePath));
1388
1482
  },
1483
+ /**
1484
+ * Create a payment user
1485
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
1489
+ createPaymentUser(createPaymentAccountRequest, options) {
1490
+ return localVarFp
1491
+ .createPaymentUser(createPaymentAccountRequest, options)
1492
+ .then((request) => request(axios, basePath));
1493
+ },
1389
1494
  /**
1390
1495
  * Create new Payout instruction
1391
1496
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -1500,6 +1605,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1500
1605
  .getPaymentInstruction(paymentInstructionId, options)
1501
1606
  .then((request) => request(axios, basePath));
1502
1607
  },
1608
+ /**
1609
+ * Get a payment user
1610
+ * @param {string} paymentUserId
1611
+ * @param {*} [options] Override http request option.
1612
+ * @throws {RequiredError}
1613
+ */
1614
+ getPaymentUser(paymentUserId, options) {
1615
+ return localVarFp.getPaymentUser(paymentUserId, options).then((request) => request(axios, basePath));
1616
+ },
1503
1617
  /**
1504
1618
  * Get Payout Instruction details by payout_instruction_id
1505
1619
  * @param {string} payoutInstructionId payout instruction id
@@ -1632,6 +1746,18 @@ class CustomerApi extends base_1.BaseAPI {
1632
1746
  .createPaymentInstruction(paymentInstruction, options)
1633
1747
  .then((request) => request(this.axios, this.basePath));
1634
1748
  }
1749
+ /**
1750
+ * Create a payment user
1751
+ * @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
1752
+ * @param {*} [options] Override http request option.
1753
+ * @throws {RequiredError}
1754
+ * @memberof CustomerApi
1755
+ */
1756
+ createPaymentUser(createPaymentAccountRequest, options) {
1757
+ return exports.CustomerApiFp(this.configuration)
1758
+ .createPaymentUser(createPaymentAccountRequest, options)
1759
+ .then((request) => request(this.axios, this.basePath));
1760
+ }
1635
1761
  /**
1636
1762
  * Create new Payout instruction
1637
1763
  * @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
@@ -1776,6 +1902,18 @@ class CustomerApi extends base_1.BaseAPI {
1776
1902
  .getPaymentInstruction(paymentInstructionId, options)
1777
1903
  .then((request) => request(this.axios, this.basePath));
1778
1904
  }
1905
+ /**
1906
+ * Get a payment user
1907
+ * @param {string} paymentUserId
1908
+ * @param {*} [options] Override http request option.
1909
+ * @throws {RequiredError}
1910
+ * @memberof CustomerApi
1911
+ */
1912
+ getPaymentUser(paymentUserId, options) {
1913
+ return exports.CustomerApiFp(this.configuration)
1914
+ .getPaymentUser(paymentUserId, options)
1915
+ .then((request) => request(this.axios, this.basePath));
1916
+ }
1779
1917
  /**
1780
1918
  * Get Payout Instruction details by payout_instruction_id
1781
1919
  * @param {string} payoutInstructionId payout instruction id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.161",
3
+ "version": "0.0.162",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [