@emilgroup/payment-sdk 1.16.1-beta.21 → 1.16.1-beta.22
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/payout-methods-api.ts +117 -16
- package/dist/api/payout-methods-api.d.ts +71 -16
- package/dist/api/payout-methods-api.js +104 -12
- package/dist/models/create-payout-method-by-bank-account-request-dto.d.ts +36 -0
- package/dist/models/create-payout-method-by-bank-account-request-dto.js +15 -0
- package/dist/models/create-payout-method-request-dto.d.ts +8 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/payout-method-class.d.ts +6 -0
- package/models/create-payout-method-by-bank-account-request-dto.ts +42 -0
- package/models/create-payout-method-request-dto.ts +8 -2
- package/models/index.ts +1 -0
- package/models/payout-method-class.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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@1.16.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.16.1-beta.22 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.16.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.16.1-beta.22
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -126,6 +126,51 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
126
126
|
options: localVarRequestOptions,
|
|
127
127
|
};
|
|
128
128
|
},
|
|
129
|
+
/**
|
|
130
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
131
|
+
* @summary Create the Payout Method
|
|
132
|
+
* @param {string} code
|
|
133
|
+
* @param {string} [authorization] Bearer Token
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
createPayoutMethodByBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
138
|
+
// verify required parameter 'code' is not null or undefined
|
|
139
|
+
assertParamExists('createPayoutMethodByBankAccount', 'code', code)
|
|
140
|
+
const localVarPath = `/paymentservice/v1/payout-methods/bank-account/{code}`
|
|
141
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
144
|
+
let baseOptions;
|
|
145
|
+
let baseAccessToken;
|
|
146
|
+
if (configuration) {
|
|
147
|
+
baseOptions = configuration.baseOptions;
|
|
148
|
+
baseAccessToken = configuration.accessToken;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
152
|
+
const localVarHeaderParameter = {} as any;
|
|
153
|
+
const localVarQueryParameter = {} as any;
|
|
154
|
+
|
|
155
|
+
// authentication bearer required
|
|
156
|
+
// http bearer authentication required
|
|
157
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
158
|
+
|
|
159
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
160
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
url: toPathString(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
};
|
|
173
|
+
},
|
|
129
174
|
/**
|
|
130
175
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
131
176
|
* @summary Delete the Payout Method
|
|
@@ -227,11 +272,11 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
227
272
|
* @param {string} [authorization] Bearer Token
|
|
228
273
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
229
274
|
* @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.
|
|
230
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
231
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
232
|
-
* @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, code, isActive, createdAt, updatedAt</i>
|
|
275
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
276
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
277
|
+
* @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, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
233
278
|
* @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: billingAddress<i>
|
|
234
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
279
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
235
280
|
* @param {*} [options] Override http request option.
|
|
236
281
|
* @throws {RequiredError}
|
|
237
282
|
*/
|
|
@@ -331,6 +376,18 @@ export const PayoutMethodsApiFp = function(configuration?: Configuration) {
|
|
|
331
376
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutMethod(createPayoutMethodRequestDto, authorization, options);
|
|
332
377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
378
|
},
|
|
379
|
+
/**
|
|
380
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
381
|
+
* @summary Create the Payout Method
|
|
382
|
+
* @param {string} code
|
|
383
|
+
* @param {string} [authorization] Bearer Token
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
async createPayoutMethodByBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>> {
|
|
388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutMethodByBankAccount(code, authorization, options);
|
|
389
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
|
+
},
|
|
334
391
|
/**
|
|
335
392
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
336
393
|
* @summary Delete the Payout Method
|
|
@@ -362,11 +419,11 @@ export const PayoutMethodsApiFp = function(configuration?: Configuration) {
|
|
|
362
419
|
* @param {string} [authorization] Bearer Token
|
|
363
420
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
421
|
* @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.
|
|
365
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
366
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
367
|
-
* @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, code, isActive, createdAt, updatedAt</i>
|
|
422
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
423
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
424
|
+
* @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, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
368
425
|
* @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: billingAddress<i>
|
|
369
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
426
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
370
427
|
* @param {*} [options] Override http request option.
|
|
371
428
|
* @throws {RequiredError}
|
|
372
429
|
*/
|
|
@@ -406,6 +463,17 @@ export const PayoutMethodsApiFactory = function (configuration?: Configuration,
|
|
|
406
463
|
createPayoutMethod(createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass> {
|
|
407
464
|
return localVarFp.createPayoutMethod(createPayoutMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
408
465
|
},
|
|
466
|
+
/**
|
|
467
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
468
|
+
* @summary Create the Payout Method
|
|
469
|
+
* @param {string} code
|
|
470
|
+
* @param {string} [authorization] Bearer Token
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
createPayoutMethodByBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass> {
|
|
475
|
+
return localVarFp.createPayoutMethodByBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
476
|
+
},
|
|
409
477
|
/**
|
|
410
478
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
411
479
|
* @summary Delete the Payout Method
|
|
@@ -435,11 +503,11 @@ export const PayoutMethodsApiFactory = function (configuration?: Configuration,
|
|
|
435
503
|
* @param {string} [authorization] Bearer Token
|
|
436
504
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
437
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
438
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
439
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
440
|
-
* @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, code, isActive, createdAt, updatedAt</i>
|
|
506
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
507
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
441
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.<br/> <br/> <i>Allowed values: billingAddress<i>
|
|
442
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
510
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
443
511
|
* @param {*} [options] Override http request option.
|
|
444
512
|
* @throws {RequiredError}
|
|
445
513
|
*/
|
|
@@ -491,6 +559,27 @@ export interface PayoutMethodsApiCreatePayoutMethodRequest {
|
|
|
491
559
|
readonly authorization?: string
|
|
492
560
|
}
|
|
493
561
|
|
|
562
|
+
/**
|
|
563
|
+
* Request parameters for createPayoutMethodByBankAccount operation in PayoutMethodsApi.
|
|
564
|
+
* @export
|
|
565
|
+
* @interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest
|
|
566
|
+
*/
|
|
567
|
+
export interface PayoutMethodsApiCreatePayoutMethodByBankAccountRequest {
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @type {string}
|
|
571
|
+
* @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
|
|
572
|
+
*/
|
|
573
|
+
readonly code: string
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Bearer Token
|
|
577
|
+
* @type {string}
|
|
578
|
+
* @memberof PayoutMethodsApiCreatePayoutMethodByBankAccount
|
|
579
|
+
*/
|
|
580
|
+
readonly authorization?: string
|
|
581
|
+
}
|
|
582
|
+
|
|
494
583
|
/**
|
|
495
584
|
* Request parameters for deletePayoutMethod operation in PayoutMethodsApi.
|
|
496
585
|
* @export
|
|
@@ -568,21 +657,21 @@ export interface PayoutMethodsApiListPayoutMethodsRequest {
|
|
|
568
657
|
readonly pageToken?: string
|
|
569
658
|
|
|
570
659
|
/**
|
|
571
|
-
* 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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
660
|
+
* 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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
572
661
|
* @type {string}
|
|
573
662
|
* @memberof PayoutMethodsApiListPayoutMethods
|
|
574
663
|
*/
|
|
575
664
|
readonly filter?: string
|
|
576
665
|
|
|
577
666
|
/**
|
|
578
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
667
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
579
668
|
* @type {string}
|
|
580
669
|
* @memberof PayoutMethodsApiListPayoutMethods
|
|
581
670
|
*/
|
|
582
671
|
readonly search?: string
|
|
583
672
|
|
|
584
673
|
/**
|
|
585
|
-
* 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, code, isActive, createdAt, updatedAt</i>
|
|
674
|
+
* 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, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
586
675
|
* @type {string}
|
|
587
676
|
* @memberof PayoutMethodsApiListPayoutMethods
|
|
588
677
|
*/
|
|
@@ -596,7 +685,7 @@ export interface PayoutMethodsApiListPayoutMethodsRequest {
|
|
|
596
685
|
readonly expand?: string
|
|
597
686
|
|
|
598
687
|
/**
|
|
599
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
688
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
600
689
|
* @type {string}
|
|
601
690
|
* @memberof PayoutMethodsApiListPayoutMethods
|
|
602
691
|
*/
|
|
@@ -634,6 +723,18 @@ export class PayoutMethodsApi extends BaseAPI {
|
|
|
634
723
|
return PayoutMethodsApiFp(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
635
724
|
}
|
|
636
725
|
|
|
726
|
+
/**
|
|
727
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
728
|
+
* @summary Create the Payout Method
|
|
729
|
+
* @param {PayoutMethodsApiCreatePayoutMethodByBankAccountRequest} requestParameters Request parameters.
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
* @memberof PayoutMethodsApi
|
|
733
|
+
*/
|
|
734
|
+
public createPayoutMethodByBankAccount(requestParameters: PayoutMethodsApiCreatePayoutMethodByBankAccountRequest, options?: AxiosRequestConfig) {
|
|
735
|
+
return PayoutMethodsApiFp(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
736
|
+
}
|
|
737
|
+
|
|
637
738
|
/**
|
|
638
739
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
639
740
|
* @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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
68
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt</i>
|
|
76
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
77
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
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.<br/> <br/> <i>Allowed values: billingAddress<i>
|
|
71
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
80
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
126
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt</i>
|
|
143
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
144
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
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.<br/> <br/> <i>Allowed values: billingAddress<i>
|
|
129
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
147
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
184
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt</i>
|
|
210
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
211
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
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.<br/> <br/> <i>Allowed values: billingAddress<i>
|
|
187
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
214
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
346
|
+
* 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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Searchable fields: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
352
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, isActive, createdAt, updatedAt</i>
|
|
358
|
+
* 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, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
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.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
370
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
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
|
|
@@ -189,6 +189,54 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
|
+
/**
|
|
193
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
194
|
+
* @summary Create the Payout Method
|
|
195
|
+
* @param {string} code
|
|
196
|
+
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
createPayoutMethodByBankAccount: function (code, authorization, options) {
|
|
201
|
+
if (options === void 0) { options = {}; }
|
|
202
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
// verify required parameter 'code' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('createPayoutMethodByBankAccount', 'code', code);
|
|
209
|
+
localVarPath = "/paymentservice/v1/payout-methods/bank-account/{code}"
|
|
210
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
211
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
|
+
}
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
return [2 /*return*/, {
|
|
233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
},
|
|
192
240
|
/**
|
|
193
241
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
194
242
|
* @summary Delete the Payout Method
|
|
@@ -295,11 +343,11 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
295
343
|
* @param {string} [authorization] Bearer Token
|
|
296
344
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
297
345
|
* @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.
|
|
298
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
299
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
300
|
-
* @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, code, isActive, createdAt, updatedAt</i>
|
|
346
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
347
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
348
|
+
* @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, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
301
349
|
* @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: billingAddress<i>
|
|
302
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
350
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
303
351
|
* @param {*} [options] Override http request option.
|
|
304
352
|
* @throws {RequiredError}
|
|
305
353
|
*/
|
|
@@ -413,6 +461,27 @@ var PayoutMethodsApiFp = function (configuration) {
|
|
|
413
461
|
});
|
|
414
462
|
});
|
|
415
463
|
},
|
|
464
|
+
/**
|
|
465
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
466
|
+
* @summary Create the Payout Method
|
|
467
|
+
* @param {string} code
|
|
468
|
+
* @param {string} [authorization] Bearer Token
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
createPayoutMethodByBankAccount: function (code, authorization, options) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
474
|
+
var localVarAxiosArgs;
|
|
475
|
+
return __generator(this, function (_a) {
|
|
476
|
+
switch (_a.label) {
|
|
477
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPayoutMethodByBankAccount(code, authorization, options)];
|
|
478
|
+
case 1:
|
|
479
|
+
localVarAxiosArgs = _a.sent();
|
|
480
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
},
|
|
416
485
|
/**
|
|
417
486
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
418
487
|
* @summary Delete the Payout Method
|
|
@@ -462,11 +531,11 @@ var PayoutMethodsApiFp = function (configuration) {
|
|
|
462
531
|
* @param {string} [authorization] Bearer Token
|
|
463
532
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
464
533
|
* @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.
|
|
465
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
466
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
467
|
-
* @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, code, isActive, createdAt, updatedAt</i>
|
|
534
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
535
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
536
|
+
* @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, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
468
537
|
* @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: billingAddress<i>
|
|
469
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
538
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
470
539
|
* @param {*} [options] Override http request option.
|
|
471
540
|
* @throws {RequiredError}
|
|
472
541
|
*/
|
|
@@ -515,6 +584,17 @@ var PayoutMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
515
584
|
createPayoutMethod: function (createPayoutMethodRequestDto, authorization, options) {
|
|
516
585
|
return localVarFp.createPayoutMethod(createPayoutMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
517
586
|
},
|
|
587
|
+
/**
|
|
588
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
589
|
+
* @summary Create the Payout Method
|
|
590
|
+
* @param {string} code
|
|
591
|
+
* @param {string} [authorization] Bearer Token
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
createPayoutMethodByBankAccount: function (code, authorization, options) {
|
|
596
|
+
return localVarFp.createPayoutMethodByBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
597
|
+
},
|
|
518
598
|
/**
|
|
519
599
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
520
600
|
* @summary Delete the Payout Method
|
|
@@ -544,11 +624,11 @@ var PayoutMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
544
624
|
* @param {string} [authorization] Bearer Token
|
|
545
625
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
546
626
|
* @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.
|
|
547
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
548
|
-
* @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
549
|
-
* @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, code, isActive, createdAt, updatedAt</i>
|
|
627
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
628
|
+
* @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: firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, billingAddressCode</i>
|
|
629
|
+
* @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, code, isActive, createdAt, updatedAt, accountHolder</i>
|
|
550
630
|
* @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: billingAddress<i>
|
|
551
|
-
* @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
631
|
+
* @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: id, code, firstName, lastName, accountHolder, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode</i>
|
|
552
632
|
* @param {*} [options] Override http request option.
|
|
553
633
|
* @throws {RequiredError}
|
|
554
634
|
*/
|
|
@@ -593,6 +673,18 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
|
|
|
593
673
|
var _this = this;
|
|
594
674
|
return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
595
675
|
};
|
|
676
|
+
/**
|
|
677
|
+
* Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
|
|
678
|
+
* @summary Create the Payout Method
|
|
679
|
+
* @param {PayoutMethodsApiCreatePayoutMethodByBankAccountRequest} requestParameters Request parameters.
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
* @memberof PayoutMethodsApi
|
|
683
|
+
*/
|
|
684
|
+
PayoutMethodsApi.prototype.createPayoutMethodByBankAccount = function (requestParameters, options) {
|
|
685
|
+
var _this = this;
|
|
686
|
+
return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
687
|
+
};
|
|
596
688
|
/**
|
|
597
689
|
* Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
|
|
598
690
|
* @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'
|
|
29
|
+
'firstName'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Last name
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreatePayoutMethodRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'lastName'
|
|
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}
|
package/dist/models/index.d.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';
|
package/dist/models/index.js
CHANGED
|
@@ -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'
|
|
34
|
+
'firstName'?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Last name
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreatePayoutMethodRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'lastName'
|
|
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}
|