@emilgroup/payment-sdk-node 1.23.1-beta.28 → 1.23.1-beta.33

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.
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.28 --save
20
+ npm install @emilgroup/payment-sdk-node@1.23.1-beta.33 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.23.1-beta.28
24
+ yarn add @emilgroup/payment-sdk-node@1.23.1-beta.33
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -193,7 +193,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
193
193
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
194
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
195
195
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
196
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
196
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: accountHolder, bankName</i>
197
197
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
198
198
  * @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.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
199
199
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
@@ -418,7 +418,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
418
418
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
419
419
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
420
420
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
421
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
421
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: accountHolder, bankName</i>
422
422
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
423
423
  * @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.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
424
424
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
@@ -506,7 +506,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
506
506
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
507
507
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
508
508
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
509
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
509
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: accountHolder, bankName</i>
510
510
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
511
511
  * @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.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
512
512
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
@@ -648,7 +648,7 @@ export interface BankAccountsApiListBankAccountsRequest {
648
648
  readonly filter?: string
649
649
 
650
650
  /**
651
- * To search the list by any field, pass search=xxx to fetch the result.
651
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: accountHolder, bankName</i>
652
652
  * @type {string}
653
653
  * @memberof BankAccountsApiListBankAccounts
654
654
  */
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { CreatePayoutMethodByBankAccountRequestDto } from '../models';
25
+ // @ts-ignore
24
26
  import { CreatePayoutMethodRequestDto } from '../models';
25
27
  // @ts-ignore
26
28
  import { CreatePayoutMethodResponseClass } from '../models';
@@ -134,13 +136,16 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
134
136
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
135
137
  * @summary Create the Payout Method
136
138
  * @param {string} code
139
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
137
140
  * @param {string} [authorization] Bearer Token
138
141
  * @param {*} [options] Override http request option.
139
142
  * @throws {RequiredError}
140
143
  */
141
- createPayoutMethodByBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ createPayoutMethodByBankAccount: async (code: string, createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
145
  // verify required parameter 'code' is not null or undefined
143
146
  assertParamExists('createPayoutMethodByBankAccount', 'code', code)
147
+ // verify required parameter 'createPayoutMethodByBankAccountRequestDto' is not null or undefined
148
+ assertParamExists('createPayoutMethodByBankAccount', 'createPayoutMethodByBankAccountRequestDto', createPayoutMethodByBankAccountRequestDto)
144
149
  const localVarPath = `/paymentservice/v1/payout-methods/bank-account/{code}`
145
150
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -166,9 +171,12 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
166
171
 
167
172
 
168
173
 
174
+ localVarHeaderParameter['Content-Type'] = 'application/json';
175
+
169
176
  setSearchParams(localVarUrlObj, localVarQueryParameter);
170
177
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
178
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
179
+ localVarRequestOptions.data = serializeDataIfNeeded(createPayoutMethodByBankAccountRequestDto, localVarRequestOptions, configuration)
172
180
 
173
181
  return {
174
182
  url: toPathString(localVarUrlObj),
@@ -384,12 +392,13 @@ export const PayoutMethodsApiFp = function(configuration?: Configuration) {
384
392
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
385
393
  * @summary Create the Payout Method
386
394
  * @param {string} code
395
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
387
396
  * @param {string} [authorization] Bearer Token
388
397
  * @param {*} [options] Override http request option.
389
398
  * @throws {RequiredError}
390
399
  */
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);
400
+ async createPayoutMethodByBankAccount(code: string, createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>> {
401
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutMethodByBankAccount(code, createPayoutMethodByBankAccountRequestDto, authorization, options);
393
402
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
394
403
  },
395
404
  /**
@@ -471,12 +480,13 @@ export const PayoutMethodsApiFactory = function (configuration?: Configuration,
471
480
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
472
481
  * @summary Create the Payout Method
473
482
  * @param {string} code
483
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
474
484
  * @param {string} [authorization] Bearer Token
475
485
  * @param {*} [options] Override http request option.
476
486
  * @throws {RequiredError}
477
487
  */
478
- createPayoutMethodByBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass> {
479
- return localVarFp.createPayoutMethodByBankAccount(code, authorization, options).then((request) => request(axios, basePath));
488
+ createPayoutMethodByBankAccount(code: string, createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass> {
489
+ return localVarFp.createPayoutMethodByBankAccount(code, createPayoutMethodByBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
480
490
  },
481
491
  /**
482
492
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
@@ -576,6 +586,13 @@ export interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest {
576
586
  */
577
587
  readonly code: string
578
588
 
589
+ /**
590
+ *
591
+ * @type {CreatePayoutMethodByBankAccountRequestDto}
592
+ * @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
593
+ */
594
+ readonly createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto
595
+
579
596
  /**
580
597
  * Bearer Token
581
598
  * @type {string}
@@ -736,7 +753,7 @@ export class PayoutMethodsApi extends BaseAPI {
736
753
  * @memberof PayoutMethodsApi
737
754
  */
738
755
  public createPayoutMethodByBankAccount(requestParameters: PayoutMethodsApiCreatePayoutMethodByBankAccountRequest, options?: AxiosRequestConfig) {
739
- return PayoutMethodsApiFp(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
756
+ return PayoutMethodsApiFp(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.createPayoutMethodByBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
740
757
  }
741
758
 
742
759
  /**
@@ -59,7 +59,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
59
59
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
60
60
  * @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.
61
61
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
62
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
62
+ * @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: accountHolder, bankName&lt;/i&gt;
63
63
  * @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, createdAt&lt;/i&gt;
64
64
  * @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: primaryBankAccount&lt;i&gt;
65
65
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
@@ -128,7 +128,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
128
128
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
129
129
  * @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.
130
130
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
131
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
131
+ * @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: accountHolder, bankName&lt;/i&gt;
132
132
  * @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, createdAt&lt;/i&gt;
133
133
  * @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: primaryBankAccount&lt;i&gt;
134
134
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
@@ -197,7 +197,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
197
197
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
198
198
  * @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.
199
199
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
200
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
200
+ * @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: accountHolder, bankName&lt;/i&gt;
201
201
  * @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, createdAt&lt;/i&gt;
202
202
  * @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: primaryBankAccount&lt;i&gt;
203
203
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
@@ -320,7 +320,7 @@ export interface BankAccountsApiListBankAccountsRequest {
320
320
  */
321
321
  readonly filter?: string;
322
322
  /**
323
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
323
+ * 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: accountHolder, bankName&lt;/i&gt;
324
324
  * @type {string}
325
325
  * @memberof BankAccountsApiListBankAccounts
326
326
  */
@@ -252,7 +252,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
252
252
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
253
  * @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.
254
254
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
255
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
255
+ * @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: accountHolder, bankName&lt;/i&gt;
256
256
  * @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, createdAt&lt;/i&gt;
257
257
  * @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: primaryBankAccount&lt;i&gt;
258
258
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
@@ -504,7 +504,7 @@ var BankAccountsApiFp = function (configuration) {
504
504
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
505
505
  * @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.
506
506
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
507
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
507
+ * @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: accountHolder, bankName&lt;/i&gt;
508
508
  * @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, createdAt&lt;/i&gt;
509
509
  * @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: primaryBankAccount&lt;i&gt;
510
510
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
@@ -619,7 +619,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
619
619
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
620
620
  * @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.
621
621
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
622
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
622
+ * @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: accountHolder, bankName&lt;/i&gt;
623
623
  * @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, createdAt&lt;/i&gt;
624
624
  * @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: primaryBankAccount&lt;i&gt;
625
625
  * @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: code, id, accountCode, partnerCode&lt;/i&gt;
@@ -12,6 +12,7 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreatePayoutMethodByBankAccountRequestDto } from '../models';
15
16
  import { CreatePayoutMethodRequestDto } from '../models';
16
17
  import { CreatePayoutMethodResponseClass } from '../models';
17
18
  import { GetPayoutMethodResponseClass } from '../models';
@@ -43,11 +44,12 @@ export declare const PayoutMethodsApiAxiosParamCreator: (configuration?: Configu
43
44
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
44
45
  * @summary Create the Payout Method
45
46
  * @param {string} code
47
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
46
48
  * @param {string} [authorization] Bearer Token
47
49
  * @param {*} [options] Override http request option.
48
50
  * @throws {RequiredError}
49
51
  */
50
- createPayoutMethodByBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ createPayoutMethodByBankAccount: (code: string, createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
53
  /**
52
54
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
53
55
  * @summary Delete the Payout Method
@@ -110,11 +112,12 @@ export declare const PayoutMethodsApiFp: (configuration?: Configuration) => {
110
112
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
111
113
  * @summary Create the Payout Method
112
114
  * @param {string} code
115
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
113
116
  * @param {string} [authorization] Bearer Token
114
117
  * @param {*} [options] Override http request option.
115
118
  * @throws {RequiredError}
116
119
  */
117
- createPayoutMethodByBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>>;
120
+ createPayoutMethodByBankAccount(code: string, createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>>;
118
121
  /**
119
122
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
120
123
  * @summary Delete the Payout Method
@@ -177,11 +180,12 @@ export declare const PayoutMethodsApiFactory: (configuration?: Configuration, ba
177
180
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
178
181
  * @summary Create the Payout Method
179
182
  * @param {string} code
183
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
180
184
  * @param {string} [authorization] Bearer Token
181
185
  * @param {*} [options] Override http request option.
182
186
  * @throws {RequiredError}
183
187
  */
184
- createPayoutMethodByBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass>;
188
+ createPayoutMethodByBankAccount(code: string, createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass>;
185
189
  /**
186
190
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
187
191
  * @summary Delete the Payout Method
@@ -267,6 +271,12 @@ export interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest {
267
271
  * @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
268
272
  */
269
273
  readonly code: string;
274
+ /**
275
+ *
276
+ * @type {CreatePayoutMethodByBankAccountRequestDto}
277
+ * @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
278
+ */
279
+ readonly createPayoutMethodByBankAccountRequestDto: CreatePayoutMethodByBankAccountRequestDto;
270
280
  /**
271
281
  * Bearer Token
272
282
  * @type {string}
@@ -197,11 +197,12 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
197
197
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
198
198
  * @summary Create the Payout Method
199
199
  * @param {string} code
200
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
200
201
  * @param {string} [authorization] Bearer Token
201
202
  * @param {*} [options] Override http request option.
202
203
  * @throws {RequiredError}
203
204
  */
204
- createPayoutMethodByBankAccount: function (code, authorization, options) {
205
+ createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, options) {
205
206
  if (options === void 0) { options = {}; }
206
207
  return __awaiter(_this, void 0, void 0, function () {
207
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -210,6 +211,8 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
210
211
  case 0:
211
212
  // verify required parameter 'code' is not null or undefined
212
213
  (0, common_1.assertParamExists)('createPayoutMethodByBankAccount', 'code', code);
214
+ // verify required parameter 'createPayoutMethodByBankAccountRequestDto' is not null or undefined
215
+ (0, common_1.assertParamExists)('createPayoutMethodByBankAccount', 'createPayoutMethodByBankAccountRequestDto', createPayoutMethodByBankAccountRequestDto);
213
216
  localVarPath = "/paymentservice/v1/payout-methods/bank-account/{code}"
214
217
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
215
218
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -230,9 +233,11 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
230
233
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
234
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
235
  }
236
+ localVarHeaderParameter['Content-Type'] = 'application/json';
233
237
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
238
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
239
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
240
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPayoutMethodByBankAccountRequestDto, localVarRequestOptions, configuration);
236
241
  return [2 /*return*/, {
237
242
  url: (0, common_1.toPathString)(localVarUrlObj),
238
243
  options: localVarRequestOptions,
@@ -469,16 +474,17 @@ var PayoutMethodsApiFp = function (configuration) {
469
474
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
470
475
  * @summary Create the Payout Method
471
476
  * @param {string} code
477
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
472
478
  * @param {string} [authorization] Bearer Token
473
479
  * @param {*} [options] Override http request option.
474
480
  * @throws {RequiredError}
475
481
  */
476
- createPayoutMethodByBankAccount: function (code, authorization, options) {
482
+ createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, options) {
477
483
  return __awaiter(this, void 0, void 0, function () {
478
484
  var localVarAxiosArgs;
479
485
  return __generator(this, function (_a) {
480
486
  switch (_a.label) {
481
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPayoutMethodByBankAccount(code, authorization, options)];
487
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPayoutMethodByBankAccount(code, createPayoutMethodByBankAccountRequestDto, authorization, options)];
482
488
  case 1:
483
489
  localVarAxiosArgs = _a.sent();
484
490
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -592,12 +598,13 @@ var PayoutMethodsApiFactory = function (configuration, basePath, axios) {
592
598
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
593
599
  * @summary Create the Payout Method
594
600
  * @param {string} code
601
+ * @param {CreatePayoutMethodByBankAccountRequestDto} createPayoutMethodByBankAccountRequestDto
595
602
  * @param {string} [authorization] Bearer Token
596
603
  * @param {*} [options] Override http request option.
597
604
  * @throws {RequiredError}
598
605
  */
599
- createPayoutMethodByBankAccount: function (code, authorization, options) {
600
- return localVarFp.createPayoutMethodByBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
606
+ createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, options) {
607
+ return localVarFp.createPayoutMethodByBankAccount(code, createPayoutMethodByBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
601
608
  },
602
609
  /**
603
610
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
@@ -687,7 +694,7 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
687
694
  */
688
695
  PayoutMethodsApi.prototype.createPayoutMethodByBankAccount = function (requestParameters, options) {
689
696
  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); });
697
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.createPayoutMethodByBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
691
698
  };
692
699
  /**
693
700
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.23.1-beta.28",
3
+ "version": "1.23.1-beta.33",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [