@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.30
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 +10 -27
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -43
- package/api/bank-transaction-api.ts +89 -53
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +62 -173
- package/api/payment-reminders-api.ts +21 -25
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +54 -59
- package/api/refunds-api.ts +20 -18
- package/api/tenant-bank-account-api.ts +71 -61
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +295 -45
- package/dist/api/bank-accounts-api.js +412 -24
- package/dist/api/bank-transaction-api.d.ts +65 -45
- package/dist/api/bank-transaction-api.js +55 -40
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +48 -107
- package/dist/api/payment-methods-api.js +51 -143
- package/dist/api/payment-reminders-api.d.ts +25 -27
- package/dist/api/payment-reminders-api.js +12 -12
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +46 -49
- package/dist/api/payments-api.js +43 -41
- package/dist/api/refunds-api.d.ts +15 -15
- package/dist/api/refunds-api.js +15 -13
- package/dist/api/tenant-bank-account-api.d.ts +70 -57
- package/dist/api/tenant-bank-account-api.js +56 -42
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-account-class.d.ts +23 -4
- package/dist/models/bank-account-class.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +7 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/{complete-payment-setup-request-dto.js → create-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/{billing-profile-dto.js → get-bank-account-response-class.js} +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +10 -27
- package/dist/models/index.js +10 -27
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/{billing-profile-limited-response-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/primary-bank-account-response-class.d.ts +42 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +2 -1
- package/dist/models/refund-class.js +3 -2
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-account-class.ts +23 -4
- package/models/bank-transaction-response-class.ts +7 -1
- package/models/create-bank-account-request-dto.ts +15 -3
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +10 -27
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/primary-bank-account-response-class.ts +48 -0
- package/models/refund-class.ts +3 -2
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-bank-account-response-class.ts +31 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -23,8 +23,12 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateTenantBankAccountRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreateTenantBankAccountResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { GetTenantBankAccountResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
30
|
+
import { ListTenantBankAccountResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
28
32
|
import { UpdateTenantBankAccountRestRequestDto } from '../models';
|
|
29
33
|
/**
|
|
30
34
|
* TenantBankAccountApi - axios parameter creator
|
|
@@ -33,7 +37,8 @@ import { UpdateTenantBankAccountRestRequestDto } from '../models';
|
|
|
33
37
|
export const TenantBankAccountApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
38
|
return {
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* Create a new tenant bank account
|
|
41
|
+
* @summary Create the Tenant Bank Account
|
|
37
42
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
38
43
|
* @param {string} [authorization] Bearer Token
|
|
39
44
|
* @param {*} [options] Override http request option.
|
|
@@ -79,7 +84,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
79
84
|
};
|
|
80
85
|
},
|
|
81
86
|
/**
|
|
82
|
-
*
|
|
87
|
+
* Deletes a tenant bank account by code
|
|
88
|
+
* @summary Delete the tenant bank account
|
|
83
89
|
* @param {string} code Unique identifier for the object.
|
|
84
90
|
* @param {string} [authorization] Bearer Token
|
|
85
91
|
* @param {*} [options] Override http request option.
|
|
@@ -123,14 +129,14 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
123
129
|
};
|
|
124
130
|
},
|
|
125
131
|
/**
|
|
126
|
-
*
|
|
132
|
+
* Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
|
|
133
|
+
* @summary Retrieve the Tenant Bank Account
|
|
127
134
|
* @param {string} code Unique identifier for the object.
|
|
128
135
|
* @param {string} [authorization] Bearer Token
|
|
129
|
-
* @param {string} [expand] Expand the response with additional entities
|
|
130
136
|
* @param {*} [options] Override http request option.
|
|
131
137
|
* @throws {RequiredError}
|
|
132
138
|
*/
|
|
133
|
-
getTenantBankAccount: async (code: string, authorization?: string,
|
|
139
|
+
getTenantBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
134
140
|
// verify required parameter 'code' is not null or undefined
|
|
135
141
|
assertParamExists('getTenantBankAccount', 'code', code)
|
|
136
142
|
const localVarPath = `/paymentservice/v1/tenant/bank-accounts/{code}`
|
|
@@ -152,10 +158,6 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
152
158
|
// http bearer authentication required
|
|
153
159
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
154
160
|
|
|
155
|
-
if (expand !== undefined) {
|
|
156
|
-
localVarQueryParameter['expand'] = expand;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
161
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
160
162
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
161
163
|
}
|
|
@@ -172,14 +174,15 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
172
174
|
};
|
|
173
175
|
},
|
|
174
176
|
/**
|
|
175
|
-
*
|
|
177
|
+
* Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
178
|
+
* @summary List Tenant Bank Accounts
|
|
176
179
|
* @param {string} [authorization] Bearer Token
|
|
177
180
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
178
181
|
* @param {any} [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.
|
|
179
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
180
|
-
* @param {any} [search]
|
|
182
|
+
* @param {any} [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, iban, bankName, accountName</i>
|
|
183
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
181
184
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
182
|
-
* @param {string} [expand]
|
|
185
|
+
* @param {string} [expand] No expand is available for this tenant bank accounts
|
|
183
186
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
184
187
|
* @param {*} [options] Override http request option.
|
|
185
188
|
* @throws {RequiredError}
|
|
@@ -247,7 +250,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
247
250
|
};
|
|
248
251
|
},
|
|
249
252
|
/**
|
|
250
|
-
*
|
|
253
|
+
* Update a tenant bank account by code
|
|
254
|
+
* @summary Update the tenant bank account
|
|
251
255
|
* @param {string} code Unique identifier for the object.
|
|
252
256
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
253
257
|
* @param {string} [authorization] Bearer Token
|
|
@@ -307,65 +311,69 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
307
311
|
const localVarAxiosParamCreator = TenantBankAccountApiAxiosParamCreator(configuration)
|
|
308
312
|
return {
|
|
309
313
|
/**
|
|
310
|
-
*
|
|
314
|
+
* Create a new tenant bank account
|
|
315
|
+
* @summary Create the Tenant Bank Account
|
|
311
316
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
312
317
|
* @param {string} [authorization] Bearer Token
|
|
313
318
|
* @param {*} [options] Override http request option.
|
|
314
319
|
* @throws {RequiredError}
|
|
315
320
|
*/
|
|
316
|
-
async createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
321
|
+
async createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTenantBankAccountResponseClass>> {
|
|
317
322
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options);
|
|
318
323
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
319
324
|
},
|
|
320
325
|
/**
|
|
321
|
-
*
|
|
326
|
+
* Deletes a tenant bank account by code
|
|
327
|
+
* @summary Delete the tenant bank account
|
|
322
328
|
* @param {string} code Unique identifier for the object.
|
|
323
329
|
* @param {string} [authorization] Bearer Token
|
|
324
330
|
* @param {*} [options] Override http request option.
|
|
325
331
|
* @throws {RequiredError}
|
|
326
332
|
*/
|
|
327
|
-
async deleteTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
333
|
+
async deleteTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
328
334
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTenantBankAccount(code, authorization, options);
|
|
329
335
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
336
|
},
|
|
331
337
|
/**
|
|
332
|
-
*
|
|
338
|
+
* Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
|
|
339
|
+
* @summary Retrieve the Tenant Bank Account
|
|
333
340
|
* @param {string} code Unique identifier for the object.
|
|
334
341
|
* @param {string} [authorization] Bearer Token
|
|
335
|
-
* @param {string} [expand] Expand the response with additional entities
|
|
336
342
|
* @param {*} [options] Override http request option.
|
|
337
343
|
* @throws {RequiredError}
|
|
338
344
|
*/
|
|
339
|
-
async getTenantBankAccount(code: string, authorization?: string,
|
|
340
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantBankAccount(code, authorization,
|
|
345
|
+
async getTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTenantBankAccountResponseClass>> {
|
|
346
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantBankAccount(code, authorization, options);
|
|
341
347
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
348
|
},
|
|
343
349
|
/**
|
|
344
|
-
*
|
|
350
|
+
* Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
351
|
+
* @summary List Tenant Bank Accounts
|
|
345
352
|
* @param {string} [authorization] Bearer Token
|
|
346
353
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
347
354
|
* @param {any} [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.
|
|
348
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
349
|
-
* @param {any} [search]
|
|
355
|
+
* @param {any} [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, iban, bankName, accountName</i>
|
|
356
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
350
357
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
351
|
-
* @param {string} [expand]
|
|
358
|
+
* @param {string} [expand] No expand is available for this tenant bank accounts
|
|
352
359
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
353
360
|
* @param {*} [options] Override http request option.
|
|
354
361
|
* @throws {RequiredError}
|
|
355
362
|
*/
|
|
356
|
-
async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
363
|
+
async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>> {
|
|
357
364
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
358
365
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
359
366
|
},
|
|
360
367
|
/**
|
|
361
|
-
*
|
|
368
|
+
* Update a tenant bank account by code
|
|
369
|
+
* @summary Update the tenant bank account
|
|
362
370
|
* @param {string} code Unique identifier for the object.
|
|
363
371
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
364
372
|
* @param {string} [authorization] Bearer Token
|
|
365
373
|
* @param {*} [options] Override http request option.
|
|
366
374
|
* @throws {RequiredError}
|
|
367
375
|
*/
|
|
368
|
-
async updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
376
|
+
async updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTenantBankAccountResponseClass>> {
|
|
369
377
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options);
|
|
370
378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
371
379
|
},
|
|
@@ -380,61 +388,65 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
380
388
|
const localVarFp = TenantBankAccountApiFp(configuration)
|
|
381
389
|
return {
|
|
382
390
|
/**
|
|
383
|
-
*
|
|
391
|
+
* Create a new tenant bank account
|
|
392
|
+
* @summary Create the Tenant Bank Account
|
|
384
393
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
385
394
|
* @param {string} [authorization] Bearer Token
|
|
386
395
|
* @param {*} [options] Override http request option.
|
|
387
396
|
* @throws {RequiredError}
|
|
388
397
|
*/
|
|
389
|
-
createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
398
|
+
createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTenantBankAccountResponseClass> {
|
|
390
399
|
return localVarFp.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
391
400
|
},
|
|
392
401
|
/**
|
|
393
|
-
*
|
|
402
|
+
* Deletes a tenant bank account by code
|
|
403
|
+
* @summary Delete the tenant bank account
|
|
394
404
|
* @param {string} code Unique identifier for the object.
|
|
395
405
|
* @param {string} [authorization] Bearer Token
|
|
396
406
|
* @param {*} [options] Override http request option.
|
|
397
407
|
* @throws {RequiredError}
|
|
398
408
|
*/
|
|
399
|
-
deleteTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
409
|
+
deleteTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
400
410
|
return localVarFp.deleteTenantBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
401
411
|
},
|
|
402
412
|
/**
|
|
403
|
-
*
|
|
413
|
+
* Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
|
|
414
|
+
* @summary Retrieve the Tenant Bank Account
|
|
404
415
|
* @param {string} code Unique identifier for the object.
|
|
405
416
|
* @param {string} [authorization] Bearer Token
|
|
406
|
-
* @param {string} [expand] Expand the response with additional entities
|
|
407
417
|
* @param {*} [options] Override http request option.
|
|
408
418
|
* @throws {RequiredError}
|
|
409
419
|
*/
|
|
410
|
-
getTenantBankAccount(code: string, authorization?: string,
|
|
411
|
-
return localVarFp.getTenantBankAccount(code, authorization,
|
|
420
|
+
getTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetTenantBankAccountResponseClass> {
|
|
421
|
+
return localVarFp.getTenantBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
412
422
|
},
|
|
413
423
|
/**
|
|
414
|
-
*
|
|
424
|
+
* Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
425
|
+
* @summary List Tenant Bank Accounts
|
|
415
426
|
* @param {string} [authorization] Bearer Token
|
|
416
427
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
417
428
|
* @param {any} [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.
|
|
418
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
419
|
-
* @param {any} [search]
|
|
429
|
+
* @param {any} [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, iban, bankName, accountName</i>
|
|
430
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
420
431
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
421
|
-
* @param {string} [expand]
|
|
432
|
+
* @param {string} [expand] No expand is available for this tenant bank accounts
|
|
422
433
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
423
434
|
* @param {*} [options] Override http request option.
|
|
424
435
|
* @throws {RequiredError}
|
|
425
436
|
*/
|
|
426
|
-
listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<
|
|
437
|
+
listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListTenantBankAccountResponseClass> {
|
|
427
438
|
return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
428
439
|
},
|
|
429
440
|
/**
|
|
430
|
-
*
|
|
441
|
+
* Update a tenant bank account by code
|
|
442
|
+
* @summary Update the tenant bank account
|
|
431
443
|
* @param {string} code Unique identifier for the object.
|
|
432
444
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
433
445
|
* @param {string} [authorization] Bearer Token
|
|
434
446
|
* @param {*} [options] Override http request option.
|
|
435
447
|
* @throws {RequiredError}
|
|
436
448
|
*/
|
|
437
|
-
updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
449
|
+
updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTenantBankAccountResponseClass> {
|
|
438
450
|
return localVarFp.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
439
451
|
},
|
|
440
452
|
};
|
|
@@ -501,13 +513,6 @@ export interface TenantBankAccountApiGetTenantBankAccountRequest {
|
|
|
501
513
|
* @memberof TenantBankAccountApiGetTenantBankAccount
|
|
502
514
|
*/
|
|
503
515
|
readonly authorization?: string
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Expand the response with additional entities
|
|
507
|
-
* @type {string}
|
|
508
|
-
* @memberof TenantBankAccountApiGetTenantBankAccount
|
|
509
|
-
*/
|
|
510
|
-
readonly expand?: string
|
|
511
516
|
}
|
|
512
517
|
|
|
513
518
|
/**
|
|
@@ -538,14 +543,14 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
|
|
|
538
543
|
readonly pageToken?: any
|
|
539
544
|
|
|
540
545
|
/**
|
|
541
|
-
* Filter the response by one or multiple fields.
|
|
546
|
+
* 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, iban, bankName, accountName</i>
|
|
542
547
|
* @type {any}
|
|
543
548
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
544
549
|
*/
|
|
545
550
|
readonly filter?: any
|
|
546
551
|
|
|
547
552
|
/**
|
|
548
|
-
*
|
|
553
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
549
554
|
* @type {any}
|
|
550
555
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
551
556
|
*/
|
|
@@ -559,7 +564,7 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
|
|
|
559
564
|
readonly order?: any
|
|
560
565
|
|
|
561
566
|
/**
|
|
562
|
-
*
|
|
567
|
+
* No expand is available for this tenant bank accounts
|
|
563
568
|
* @type {string}
|
|
564
569
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
565
570
|
*/
|
|
@@ -609,7 +614,8 @@ export interface TenantBankAccountApiUpdateTenantBankAccountRequest {
|
|
|
609
614
|
*/
|
|
610
615
|
export class TenantBankAccountApi extends BaseAPI {
|
|
611
616
|
/**
|
|
612
|
-
*
|
|
617
|
+
* Create a new tenant bank account
|
|
618
|
+
* @summary Create the Tenant Bank Account
|
|
613
619
|
* @param {TenantBankAccountApiCreateTenantBankAccountRequest} requestParameters Request parameters.
|
|
614
620
|
* @param {*} [options] Override http request option.
|
|
615
621
|
* @throws {RequiredError}
|
|
@@ -620,7 +626,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
620
626
|
}
|
|
621
627
|
|
|
622
628
|
/**
|
|
623
|
-
*
|
|
629
|
+
* Deletes a tenant bank account by code
|
|
630
|
+
* @summary Delete the tenant bank account
|
|
624
631
|
* @param {TenantBankAccountApiDeleteTenantBankAccountRequest} requestParameters Request parameters.
|
|
625
632
|
* @param {*} [options] Override http request option.
|
|
626
633
|
* @throws {RequiredError}
|
|
@@ -631,18 +638,20 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
631
638
|
}
|
|
632
639
|
|
|
633
640
|
/**
|
|
634
|
-
*
|
|
641
|
+
* Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
|
|
642
|
+
* @summary Retrieve the Tenant Bank Account
|
|
635
643
|
* @param {TenantBankAccountApiGetTenantBankAccountRequest} requestParameters Request parameters.
|
|
636
644
|
* @param {*} [options] Override http request option.
|
|
637
645
|
* @throws {RequiredError}
|
|
638
646
|
* @memberof TenantBankAccountApi
|
|
639
647
|
*/
|
|
640
648
|
public getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig) {
|
|
641
|
-
return TenantBankAccountApiFp(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization,
|
|
649
|
+
return TenantBankAccountApiFp(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
642
650
|
}
|
|
643
651
|
|
|
644
652
|
/**
|
|
645
|
-
*
|
|
653
|
+
* Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
654
|
+
* @summary List Tenant Bank Accounts
|
|
646
655
|
* @param {TenantBankAccountApiListTenantBankAccountsRequest} requestParameters Request parameters.
|
|
647
656
|
* @param {*} [options] Override http request option.
|
|
648
657
|
* @throws {RequiredError}
|
|
@@ -653,7 +662,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
653
662
|
}
|
|
654
663
|
|
|
655
664
|
/**
|
|
656
|
-
*
|
|
665
|
+
* Update a tenant bank account by code
|
|
666
|
+
* @summary Update the tenant bank account
|
|
657
667
|
* @param {TenantBankAccountApiUpdateTenantBankAccountRequest} requestParameters Request parameters.
|
|
658
668
|
* @param {*} [options] Override http request option.
|
|
659
669
|
* @throws {RequiredError}
|
package/api/webhooks-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
package/api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
package/base.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -102,7 +102,11 @@ export class BaseAPI {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
selectEnvironment(env: Environment) {
|
|
105
|
-
this.
|
|
105
|
+
this.selectBasePath(env);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
selectBasePath(path: string) {
|
|
109
|
+
this.configuration.basePath = path;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
112
|
async authorize(username: string, password: string): Promise<void> {
|
package/common.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -140,7 +140,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
140
140
|
/* eslint-disable */
|
|
141
141
|
/**
|
|
142
142
|
* Emil Payment Service
|
|
143
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
143
|
+
* 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.
|
|
144
144
|
*
|
|
145
145
|
* The version of the OpenAPI document: 1.0
|
|
146
146
|
* Contact: kontakt@emil.de
|
package/configuration.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|