@emilgroup/payment-sdk-node 1.23.1-beta.25 → 1.23.1-beta.26

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.
@@ -68,6 +68,7 @@ models/create-payment-request-dto.ts
68
68
  models/create-payment-request-request-dto.ts
69
69
  models/create-payment-request-response-class.ts
70
70
  models/create-payment-response-class.ts
71
+ models/create-payout-method-by-bank-account-request-dto.ts
71
72
  models/create-payout-method-request-dto.ts
72
73
  models/create-payout-method-response-class.ts
73
74
  models/create-policy-payment-method-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.23.1-beta.25 --save
20
+ npm install @emilgroup/payment-sdk-node@1.23.1-beta.26 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.23.1-beta.25
24
+ yarn add @emilgroup/payment-sdk-node@1.23.1-beta.26
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -130,6 +130,51 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
130
130
  options: localVarRequestOptions,
131
131
  };
132
132
  },
133
+ /**
134
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
135
+ * @summary Create the Payout Method
136
+ * @param {string} code
137
+ * @param {string} [authorization] Bearer Token
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ createPayoutMethodByBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ // verify required parameter 'code' is not null or undefined
143
+ assertParamExists('createPayoutMethodByBankAccount', 'code', code)
144
+ const localVarPath = `/paymentservice/v1/payout-methods/bank-account/{code}`
145
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
133
178
  /**
134
179
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
135
180
  * @summary Delete the Payout Method
@@ -231,11 +276,11 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
231
276
  * @param {string} [authorization] Bearer Token
232
277
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
233
278
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
234
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
235
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
236
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
279
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
280
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
281
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
237
282
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
238
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
283
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
239
284
  * @param {*} [options] Override http request option.
240
285
  * @throws {RequiredError}
241
286
  */
@@ -335,6 +380,18 @@ export const PayoutMethodsApiFp = function(configuration?: Configuration) {
335
380
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutMethod(createPayoutMethodRequestDto, authorization, options);
336
381
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
382
  },
383
+ /**
384
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
385
+ * @summary Create the Payout Method
386
+ * @param {string} code
387
+ * @param {string} [authorization] Bearer Token
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ async createPayoutMethodByBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>> {
392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutMethodByBankAccount(code, authorization, options);
393
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
394
+ },
338
395
  /**
339
396
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
340
397
  * @summary Delete the Payout Method
@@ -366,11 +423,11 @@ export const PayoutMethodsApiFp = function(configuration?: Configuration) {
366
423
  * @param {string} [authorization] Bearer Token
367
424
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
425
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
369
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
370
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
371
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
426
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
427
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
428
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
372
429
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
373
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
430
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
374
431
  * @param {*} [options] Override http request option.
375
432
  * @throws {RequiredError}
376
433
  */
@@ -410,6 +467,17 @@ export const PayoutMethodsApiFactory = function (configuration?: Configuration,
410
467
  createPayoutMethod(createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass> {
411
468
  return localVarFp.createPayoutMethod(createPayoutMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
412
469
  },
470
+ /**
471
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
472
+ * @summary Create the Payout Method
473
+ * @param {string} code
474
+ * @param {string} [authorization] Bearer Token
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ createPayoutMethodByBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass> {
479
+ return localVarFp.createPayoutMethodByBankAccount(code, authorization, options).then((request) => request(axios, basePath));
480
+ },
413
481
  /**
414
482
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
415
483
  * @summary Delete the Payout Method
@@ -439,11 +507,11 @@ export const PayoutMethodsApiFactory = function (configuration?: Configuration,
439
507
  * @param {string} [authorization] Bearer Token
440
508
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
441
509
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
442
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
443
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
444
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
510
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
511
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
512
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
445
513
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
446
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
514
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
447
515
  * @param {*} [options] Override http request option.
448
516
  * @throws {RequiredError}
449
517
  */
@@ -495,6 +563,27 @@ export interface PayoutMethodsApiCreatePayoutMethodRequest {
495
563
  readonly authorization?: string
496
564
  }
497
565
 
566
+ /**
567
+ * Request parameters for createPayoutMethodByBankAccount operation in PayoutMethodsApi.
568
+ * @export
569
+ * @interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest
570
+ */
571
+ export interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest {
572
+ /**
573
+ *
574
+ * @type {string}
575
+ * @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
576
+ */
577
+ readonly code: string
578
+
579
+ /**
580
+ * Bearer Token
581
+ * @type {string}
582
+ * @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
583
+ */
584
+ readonly authorization?: string
585
+ }
586
+
498
587
  /**
499
588
  * Request parameters for deletePayoutMethod operation in PayoutMethodsApi.
500
589
  * @export
@@ -572,21 +661,21 @@ export interface PayoutMethodsApiListPayoutMethodsRequest {
572
661
  readonly pageToken?: string
573
662
 
574
663
  /**
575
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
664
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
576
665
  * @type {string}
577
666
  * @memberof PayoutMethodsApiListPayoutMethods
578
667
  */
579
668
  readonly filter?: string
580
669
 
581
670
  /**
582
- * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
671
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
583
672
  * @type {string}
584
673
  * @memberof PayoutMethodsApiListPayoutMethods
585
674
  */
586
675
  readonly search?: string
587
676
 
588
677
  /**
589
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
678
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
590
679
  * @type {string}
591
680
  * @memberof PayoutMethodsApiListPayoutMethods
592
681
  */
@@ -600,7 +689,7 @@ export interface PayoutMethodsApiListPayoutMethodsRequest {
600
689
  readonly expand?: string
601
690
 
602
691
  /**
603
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
692
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
604
693
  * @type {string}
605
694
  * @memberof PayoutMethodsApiListPayoutMethods
606
695
  */
@@ -638,6 +727,18 @@ export class PayoutMethodsApi extends BaseAPI {
638
727
  return PayoutMethodsApiFp(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
639
728
  }
640
729
 
730
+ /**
731
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
732
+ * @summary Create the Payout Method
733
+ * @param {PayoutMethodsApiCreatePayoutMethodByBankAccountRequest} requestParameters Request parameters.
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ * @memberof PayoutMethodsApi
737
+ */
738
+ public createPayoutMethodByBankAccount(requestParameters: PayoutMethodsApiCreatePayoutMethodByBankAccountRequest, options?: AxiosRequestConfig) {
739
+ return PayoutMethodsApiFp(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
740
+ }
741
+
641
742
  /**
642
743
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
643
744
  * @summary Delete the Payout Method
@@ -39,6 +39,15 @@ export declare const PayoutMethodsApiAxiosParamCreator: (configuration?: Configu
39
39
  * @throws {RequiredError}
40
40
  */
41
41
  createPayoutMethod: (createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ /**
43
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
44
+ * @summary Create the Payout Method
45
+ * @param {string} code
46
+ * @param {string} [authorization] Bearer Token
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ createPayoutMethodByBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
51
  /**
43
52
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
44
53
  * @summary Delete the Payout Method
@@ -64,11 +73,11 @@ export declare const PayoutMethodsApiAxiosParamCreator: (configuration?: Configu
64
73
  * @param {string} [authorization] Bearer Token
65
74
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
66
75
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
67
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
68
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
69
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
76
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
77
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
78
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
70
79
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
71
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
80
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
72
81
  * @param {*} [options] Override http request option.
73
82
  * @throws {RequiredError}
74
83
  */
@@ -97,6 +106,15 @@ export declare const PayoutMethodsApiFp: (configuration?: Configuration) => {
97
106
  * @throws {RequiredError}
98
107
  */
99
108
  createPayoutMethod(createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>>;
109
+ /**
110
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
111
+ * @summary Create the Payout Method
112
+ * @param {string} code
113
+ * @param {string} [authorization] Bearer Token
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ createPayoutMethodByBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>>;
100
118
  /**
101
119
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
102
120
  * @summary Delete the Payout Method
@@ -122,11 +140,11 @@ export declare const PayoutMethodsApiFp: (configuration?: Configuration) => {
122
140
  * @param {string} [authorization] Bearer Token
123
141
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
124
142
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
125
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
126
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
127
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
143
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
144
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
145
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
128
146
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
129
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
147
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
130
148
  * @param {*} [options] Override http request option.
131
149
  * @throws {RequiredError}
132
150
  */
@@ -155,6 +173,15 @@ export declare const PayoutMethodsApiFactory: (configuration?: Configuration, ba
155
173
  * @throws {RequiredError}
156
174
  */
157
175
  createPayoutMethod(createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass>;
176
+ /**
177
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
178
+ * @summary Create the Payout Method
179
+ * @param {string} code
180
+ * @param {string} [authorization] Bearer Token
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ createPayoutMethodByBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass>;
158
185
  /**
159
186
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
160
187
  * @summary Delete the Payout Method
@@ -180,11 +207,11 @@ export declare const PayoutMethodsApiFactory: (configuration?: Configuration, ba
180
207
  * @param {string} [authorization] Bearer Token
181
208
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
182
209
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
183
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
184
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
185
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
210
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
211
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
212
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
186
213
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
187
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
214
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
188
215
  * @param {*} [options] Override http request option.
189
216
  * @throws {RequiredError}
190
217
  */
@@ -228,6 +255,25 @@ export interface PayoutMethodsApiCreatePayoutMethodRequest {
228
255
  */
229
256
  readonly authorization?: string;
230
257
  }
258
+ /**
259
+ * Request parameters for createPayoutMethodByBankAccount operation in PayoutMethodsApi.
260
+ * @export
261
+ * @interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest
262
+ */
263
+ export interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest {
264
+ /**
265
+ *
266
+ * @type {string}
267
+ * @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
268
+ */
269
+ readonly code: string;
270
+ /**
271
+ * Bearer Token
272
+ * @type {string}
273
+ * @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
274
+ */
275
+ readonly authorization?: string;
276
+ }
231
277
  /**
232
278
  * Request parameters for deletePayoutMethod operation in PayoutMethodsApi.
233
279
  * @export
@@ -297,19 +343,19 @@ export interface PayoutMethodsApiListPayoutMethodsRequest {
297
343
  */
298
344
  readonly pageToken?: string;
299
345
  /**
300
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
346
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
301
347
  * @type {string}
302
348
  * @memberof PayoutMethodsApiListPayoutMethods
303
349
  */
304
350
  readonly filter?: string;
305
351
  /**
306
- * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
352
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
307
353
  * @type {string}
308
354
  * @memberof PayoutMethodsApiListPayoutMethods
309
355
  */
310
356
  readonly search?: string;
311
357
  /**
312
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
358
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
313
359
  * @type {string}
314
360
  * @memberof PayoutMethodsApiListPayoutMethods
315
361
  */
@@ -321,7 +367,7 @@ export interface PayoutMethodsApiListPayoutMethodsRequest {
321
367
  */
322
368
  readonly expand?: string;
323
369
  /**
324
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
370
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
325
371
  * @type {string}
326
372
  * @memberof PayoutMethodsApiListPayoutMethods
327
373
  */
@@ -352,6 +398,15 @@ export declare class PayoutMethodsApi extends BaseAPI {
352
398
  * @memberof PayoutMethodsApi
353
399
  */
354
400
  createPayoutMethod(requestParameters: PayoutMethodsApiCreatePayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePayoutMethodResponseClass, any, {}>>;
401
+ /**
402
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
403
+ * @summary Create the Payout Method
404
+ * @param {PayoutMethodsApiCreatePayoutMethodByBankAccountRequest} requestParameters Request parameters.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ * @memberof PayoutMethodsApi
408
+ */
409
+ createPayoutMethodByBankAccount(requestParameters: PayoutMethodsApiCreatePayoutMethodByBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePayoutMethodResponseClass, any, {}>>;
355
410
  /**
356
411
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
357
412
  * @summary Delete the Payout Method
@@ -193,6 +193,54 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
193
193
  });
194
194
  });
195
195
  },
196
+ /**
197
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
198
+ * @summary Create the Payout Method
199
+ * @param {string} code
200
+ * @param {string} [authorization] Bearer Token
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ createPayoutMethodByBankAccount: function (code, authorization, options) {
205
+ if (options === void 0) { options = {}; }
206
+ return __awaiter(_this, void 0, void 0, function () {
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ // verify required parameter 'code' is not null or undefined
212
+ (0, common_1.assertParamExists)('createPayoutMethodByBankAccount', 'code', code);
213
+ localVarPath = "/paymentservice/v1/payout-methods/bank-account/{code}"
214
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return [2 /*return*/, {
237
+ url: (0, common_1.toPathString)(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ }];
240
+ }
241
+ });
242
+ });
243
+ },
196
244
  /**
197
245
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
198
246
  * @summary Delete the Payout Method
@@ -299,11 +347,11 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
299
347
  * @param {string} [authorization] Bearer Token
300
348
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
301
349
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
302
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
303
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
304
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
350
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
351
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
352
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
305
353
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
306
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
354
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
307
355
  * @param {*} [options] Override http request option.
308
356
  * @throws {RequiredError}
309
357
  */
@@ -417,6 +465,27 @@ var PayoutMethodsApiFp = function (configuration) {
417
465
  });
418
466
  });
419
467
  },
468
+ /**
469
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
470
+ * @summary Create the Payout Method
471
+ * @param {string} code
472
+ * @param {string} [authorization] Bearer Token
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ createPayoutMethodByBankAccount: function (code, authorization, options) {
477
+ return __awaiter(this, void 0, void 0, function () {
478
+ var localVarAxiosArgs;
479
+ return __generator(this, function (_a) {
480
+ switch (_a.label) {
481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPayoutMethodByBankAccount(code, authorization, options)];
482
+ case 1:
483
+ localVarAxiosArgs = _a.sent();
484
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
485
+ }
486
+ });
487
+ });
488
+ },
420
489
  /**
421
490
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
422
491
  * @summary Delete the Payout Method
@@ -466,11 +535,11 @@ var PayoutMethodsApiFp = function (configuration) {
466
535
  * @param {string} [authorization] Bearer Token
467
536
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
468
537
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
469
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
470
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
471
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
538
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
539
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
540
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
472
541
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
473
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
542
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
474
543
  * @param {*} [options] Override http request option.
475
544
  * @throws {RequiredError}
476
545
  */
@@ -519,6 +588,17 @@ var PayoutMethodsApiFactory = function (configuration, basePath, axios) {
519
588
  createPayoutMethod: function (createPayoutMethodRequestDto, authorization, options) {
520
589
  return localVarFp.createPayoutMethod(createPayoutMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
521
590
  },
591
+ /**
592
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
593
+ * @summary Create the Payout Method
594
+ * @param {string} code
595
+ * @param {string} [authorization] Bearer Token
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ createPayoutMethodByBankAccount: function (code, authorization, options) {
600
+ return localVarFp.createPayoutMethodByBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
601
+ },
522
602
  /**
523
603
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
524
604
  * @summary Delete the Payout Method
@@ -548,11 +628,11 @@ var PayoutMethodsApiFactory = function (configuration, basePath, axios) {
548
628
  * @param {string} [authorization] Bearer Token
549
629
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
550
630
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
551
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
552
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
553
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt&lt;/i&gt;
631
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
632
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
633
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder&lt;/i&gt;
554
634
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
555
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
635
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode&lt;/i&gt;
556
636
  * @param {*} [options] Override http request option.
557
637
  * @throws {RequiredError}
558
638
  */
@@ -597,6 +677,18 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
597
677
  var _this = this;
598
678
  return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
599
679
  };
680
+ /**
681
+ * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
682
+ * @summary Create the Payout Method
683
+ * @param {PayoutMethodsApiCreatePayoutMethodByBankAccountRequest} requestParameters Request parameters.
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ * @memberof PayoutMethodsApi
687
+ */
688
+ PayoutMethodsApi.prototype.createPayoutMethodByBankAccount = function (requestParameters, options) {
689
+ var _this = this;
690
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
691
+ };
600
692
  /**
601
693
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
602
694
  * @summary Delete the Payout Method
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreatePayoutMethodByBankAccountRequestDto
16
+ */
17
+ export interface CreatePayoutMethodByBankAccountRequestDto {
18
+ /**
19
+ * The code identifying the bank account that will be used to create the payout method.
20
+ * @type {string}
21
+ * @memberof CreatePayoutMethodByBankAccountRequestDto
22
+ */
23
+ 'bankAccountCode': string;
24
+ /**
25
+ * Billing address code
26
+ * @type {string}
27
+ * @memberof CreatePayoutMethodByBankAccountRequestDto
28
+ */
29
+ 'billingAddressCode': string;
30
+ /**
31
+ * Unique identifier of the partner that this object belongs to.
32
+ * @type {string}
33
+ * @memberof CreatePayoutMethodByBankAccountRequestDto
34
+ */
35
+ 'partnerCode': string;
36
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,13 +26,19 @@ export interface CreatePayoutMethodRequestDto {
26
26
  * @type {string}
27
27
  * @memberof CreatePayoutMethodRequestDto
28
28
  */
29
- 'firstName': string;
29
+ 'firstName'?: string;
30
30
  /**
31
31
  * Last name
32
32
  * @type {string}
33
33
  * @memberof CreatePayoutMethodRequestDto
34
34
  */
35
- 'lastName': string;
35
+ 'lastName'?: string;
36
+ /**
37
+ * Account holder
38
+ * @type {string}
39
+ * @memberof CreatePayoutMethodRequestDto
40
+ */
41
+ 'accountHolder'?: string;
36
42
  /**
37
43
  * IBAN
38
44
  * @type {string}
@@ -40,6 +40,7 @@ export * from './create-payment-request-dto';
40
40
  export * from './create-payment-request-request-dto';
41
41
  export * from './create-payment-request-response-class';
42
42
  export * from './create-payment-response-class';
43
+ export * from './create-payout-method-by-bank-account-request-dto';
43
44
  export * from './create-payout-method-request-dto';
44
45
  export * from './create-payout-method-response-class';
45
46
  export * from './create-policy-payment-method-request-dto';
@@ -56,6 +56,7 @@ __exportStar(require("./create-payment-request-dto"), exports);
56
56
  __exportStar(require("./create-payment-request-request-dto"), exports);
57
57
  __exportStar(require("./create-payment-request-response-class"), exports);
58
58
  __exportStar(require("./create-payment-response-class"), exports);
59
+ __exportStar(require("./create-payout-method-by-bank-account-request-dto"), exports);
59
60
  __exportStar(require("./create-payout-method-request-dto"), exports);
60
61
  __exportStar(require("./create-payout-method-response-class"), exports);
61
62
  __exportStar(require("./create-policy-payment-method-request-dto"), exports);
@@ -40,6 +40,12 @@ export interface PayoutMethodClass {
40
40
  * @memberof PayoutMethodClass
41
41
  */
42
42
  'lastName': string;
43
+ /**
44
+ * Bank account holder.
45
+ * @type {string}
46
+ * @memberof PayoutMethodClass
47
+ */
48
+ 'accountHolder': string;
43
49
  /**
44
50
  * IBAN
45
51
  * @type {string}
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CreatePayoutMethodByBankAccountRequestDto
21
+ */
22
+ export interface CreatePayoutMethodByBankAccountRequestDto {
23
+ /**
24
+ * The code identifying the bank account that will be used to create the payout method.
25
+ * @type {string}
26
+ * @memberof CreatePayoutMethodByBankAccountRequestDto
27
+ */
28
+ 'bankAccountCode': string;
29
+ /**
30
+ * Billing address code
31
+ * @type {string}
32
+ * @memberof CreatePayoutMethodByBankAccountRequestDto
33
+ */
34
+ 'billingAddressCode': string;
35
+ /**
36
+ * Unique identifier of the partner that this object belongs to.
37
+ * @type {string}
38
+ * @memberof CreatePayoutMethodByBankAccountRequestDto
39
+ */
40
+ 'partnerCode': string;
41
+ }
42
+
@@ -31,13 +31,19 @@ export interface CreatePayoutMethodRequestDto {
31
31
  * @type {string}
32
32
  * @memberof CreatePayoutMethodRequestDto
33
33
  */
34
- 'firstName': string;
34
+ 'firstName'?: string;
35
35
  /**
36
36
  * Last name
37
37
  * @type {string}
38
38
  * @memberof CreatePayoutMethodRequestDto
39
39
  */
40
- 'lastName': string;
40
+ 'lastName'?: string;
41
+ /**
42
+ * Account holder
43
+ * @type {string}
44
+ * @memberof CreatePayoutMethodRequestDto
45
+ */
46
+ 'accountHolder'?: string;
41
47
  /**
42
48
  * IBAN
43
49
  * @type {string}
package/models/index.ts CHANGED
@@ -40,6 +40,7 @@ export * from './create-payment-request-dto';
40
40
  export * from './create-payment-request-request-dto';
41
41
  export * from './create-payment-request-response-class';
42
42
  export * from './create-payment-response-class';
43
+ export * from './create-payout-method-by-bank-account-request-dto';
43
44
  export * from './create-payout-method-request-dto';
44
45
  export * from './create-payout-method-response-class';
45
46
  export * from './create-policy-payment-method-request-dto';
@@ -45,6 +45,12 @@ export interface PayoutMethodClass {
45
45
  * @memberof PayoutMethodClass
46
46
  */
47
47
  'lastName': string;
48
+ /**
49
+ * Bank account holder.
50
+ * @type {string}
51
+ * @memberof PayoutMethodClass
52
+ */
53
+ 'accountHolder': string;
48
54
  /**
49
55
  * IBAN
50
56
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.23.1-beta.25",
3
+ "version": "1.23.1-beta.26",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [