@emilgroup/payment-sdk 1.22.1-beta.84 → 1.22.1-beta.85

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.
@@ -4,6 +4,7 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/bank-accounts-api.ts
7
+ api/bank-order-texts-api.ts
7
8
  api/bank-orders-api.ts
8
9
  api/bank-transaction-api.ts
9
10
  api/billing-addresses-api.ts
@@ -33,6 +34,7 @@ models/bank-account-class.ts
33
34
  models/bank-data-class.ts
34
35
  models/bank-order-class.ts
35
36
  models/bank-order-entity.ts
37
+ models/bank-order-texts-class.ts
36
38
  models/bank-order-xml-file-class.ts
37
39
  models/bank-order-xml-file-entity.ts
38
40
  models/bank-transaction-class-without-expand-properties.ts
@@ -96,6 +98,7 @@ models/exceeding-credit-entity.ts
96
98
  models/generate-invoice-match-suggestions-response-class.ts
97
99
  models/get-bank-account-response-class.ts
98
100
  models/get-bank-order-response-class.ts
101
+ models/get-bank-order-texts-response-class.ts
99
102
  models/get-bank-transactions-response-class.ts
100
103
  models/get-billing-address-response-class.ts
101
104
  models/get-credit-allocation-response-class.ts
@@ -177,6 +180,8 @@ models/update-bank-account-request-dto.ts
177
180
  models/update-bank-account-response-class.ts
178
181
  models/update-bank-order-request-dto.ts
179
182
  models/update-bank-order-response-class.ts
183
+ models/update-bank-order-texts-request-dto.ts
184
+ models/update-bank-order-texts-response-class.ts
180
185
  models/update-billing-address-request-dto.ts
181
186
  models/update-billing-address-response-class.ts
182
187
  models/update-payment-receipt-response-class.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.22.1-beta.84 --save
20
+ npm install @emilgroup/payment-sdk@1.22.1-beta.85 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.22.1-beta.84
24
+ yarn add @emilgroup/payment-sdk@1.22.1-beta.85
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -0,0 +1,265 @@
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
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetBankOrderTextsResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { UpdateBankOrderTextsRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { UpdateBankOrderTextsResponseClass } from '../models';
29
+ /**
30
+ * BankOrderTextsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const BankOrderTextsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
37
+ * @summary Retrieve the bank order texts
38
+ * @param {string} [authorization] Bearer Token
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ getBankOrderTexts: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
+ const localVarPath = `/paymentservice/v1/bank-order-texts`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ let baseAccessToken;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ baseAccessToken = configuration.accessToken;
51
+ }
52
+
53
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+ // authentication bearer required
58
+ // http bearer authentication required
59
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
60
+
61
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
62
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
63
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
64
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
65
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
66
+ if (authorizationValue || authorizationKeepEmpty) {
67
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
+ }
69
+
70
+
71
+
72
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
73
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
+
76
+ return {
77
+ url: toPathString(localVarUrlObj),
78
+ options: localVarRequestOptions,
79
+ };
80
+ },
81
+ /**
82
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
83
+ * @summary Save the bank order texts
84
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
85
+ * @param {string} [authorization] Bearer Token
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ updateBankOrderTexts: async (updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
90
+ // verify required parameter 'updateBankOrderTextsRequestDto' is not null or undefined
91
+ assertParamExists('updateBankOrderTexts', 'updateBankOrderTextsRequestDto', updateBankOrderTextsRequestDto)
92
+ const localVarPath = `/paymentservice/v1/bank-order-texts`;
93
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
94
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
95
+ let baseOptions;
96
+ let baseAccessToken;
97
+ if (configuration) {
98
+ baseOptions = configuration.baseOptions;
99
+ baseAccessToken = configuration.accessToken;
100
+ }
101
+
102
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
103
+ const localVarHeaderParameter = {} as any;
104
+ const localVarQueryParameter = {} as any;
105
+
106
+ // authentication bearer required
107
+ // http bearer authentication required
108
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
109
+
110
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
111
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
112
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
113
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
114
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
115
+ if (authorizationValue || authorizationKeepEmpty) {
116
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
117
+ }
118
+
119
+
120
+
121
+ localVarHeaderParameter['Content-Type'] = 'application/json';
122
+
123
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
126
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderTextsRequestDto, localVarRequestOptions, configuration)
127
+
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ }
134
+ };
135
+
136
+ /**
137
+ * BankOrderTextsApi - functional programming interface
138
+ * @export
139
+ */
140
+ export const BankOrderTextsApiFp = function(configuration?: Configuration) {
141
+ const localVarAxiosParamCreator = BankOrderTextsApiAxiosParamCreator(configuration)
142
+ return {
143
+ /**
144
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
145
+ * @summary Retrieve the bank order texts
146
+ * @param {string} [authorization] Bearer Token
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ async getBankOrderTexts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderTextsResponseClass>> {
151
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrderTexts(authorization, options);
152
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
153
+ },
154
+ /**
155
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
156
+ * @summary Save the bank order texts
157
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
158
+ * @param {string} [authorization] Bearer Token
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ async updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderTextsResponseClass>> {
163
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options);
164
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
165
+ },
166
+ }
167
+ };
168
+
169
+ /**
170
+ * BankOrderTextsApi - factory interface
171
+ * @export
172
+ */
173
+ export const BankOrderTextsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
174
+ const localVarFp = BankOrderTextsApiFp(configuration)
175
+ return {
176
+ /**
177
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
178
+ * @summary Retrieve the bank order texts
179
+ * @param {string} [authorization] Bearer Token
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ getBankOrderTexts(authorization?: string, options?: any): AxiosPromise<GetBankOrderTextsResponseClass> {
184
+ return localVarFp.getBankOrderTexts(authorization, options).then((request) => request(axios, basePath));
185
+ },
186
+ /**
187
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
188
+ * @summary Save the bank order texts
189
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
190
+ * @param {string} [authorization] Bearer Token
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderTextsResponseClass> {
195
+ return localVarFp.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options).then((request) => request(axios, basePath));
196
+ },
197
+ };
198
+ };
199
+
200
+ /**
201
+ * Request parameters for getBankOrderTexts operation in BankOrderTextsApi.
202
+ * @export
203
+ * @interface BankOrderTextsApiGetBankOrderTextsRequest
204
+ */
205
+ export interface BankOrderTextsApiGetBankOrderTextsRequest {
206
+ /**
207
+ * Bearer Token
208
+ * @type {string}
209
+ * @memberof BankOrderTextsApiGetBankOrderTexts
210
+ */
211
+ readonly authorization?: string
212
+ }
213
+
214
+ /**
215
+ * Request parameters for updateBankOrderTexts operation in BankOrderTextsApi.
216
+ * @export
217
+ * @interface BankOrderTextsApiUpdateBankOrderTextsRequest
218
+ */
219
+ export interface BankOrderTextsApiUpdateBankOrderTextsRequest {
220
+ /**
221
+ *
222
+ * @type {UpdateBankOrderTextsRequestDto}
223
+ * @memberof BankOrderTextsApiUpdateBankOrderTexts
224
+ */
225
+ readonly updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto
226
+
227
+ /**
228
+ * Bearer Token
229
+ * @type {string}
230
+ * @memberof BankOrderTextsApiUpdateBankOrderTexts
231
+ */
232
+ readonly authorization?: string
233
+ }
234
+
235
+ /**
236
+ * BankOrderTextsApi - object-oriented interface
237
+ * @export
238
+ * @class BankOrderTextsApi
239
+ * @extends {BaseAPI}
240
+ */
241
+ export class BankOrderTextsApi extends BaseAPI {
242
+ /**
243
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
244
+ * @summary Retrieve the bank order texts
245
+ * @param {BankOrderTextsApiGetBankOrderTextsRequest} requestParameters Request parameters.
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ * @memberof BankOrderTextsApi
249
+ */
250
+ public getBankOrderTexts(requestParameters: BankOrderTextsApiGetBankOrderTextsRequest = {}, options?: AxiosRequestConfig) {
251
+ return BankOrderTextsApiFp(this.configuration).getBankOrderTexts(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
252
+ }
253
+
254
+ /**
255
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
256
+ * @summary Save the bank order texts
257
+ * @param {BankOrderTextsApiUpdateBankOrderTextsRequest} requestParameters Request parameters.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof BankOrderTextsApi
261
+ */
262
+ public updateBankOrderTexts(requestParameters: BankOrderTextsApiUpdateBankOrderTextsRequest, options?: AxiosRequestConfig) {
263
+ return BankOrderTextsApiFp(this.configuration).updateBankOrderTexts(requestParameters.updateBankOrderTextsRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
264
+ }
265
+ }
package/api.ts CHANGED
@@ -21,6 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { BankAccountsApi } from './api';
24
+ import { BankOrderTextsApi } from './api';
24
25
  import { BankOrdersApi } from './api';
25
26
  import { BankTransactionApi } from './api';
26
27
  import { BillingAddressesApi } from './api';
@@ -42,6 +43,7 @@ import { WebhooksApi } from './api';
42
43
 
43
44
 
44
45
  export * from './api/bank-accounts-api';
46
+ export * from './api/bank-order-texts-api';
45
47
  export * from './api/bank-orders-api';
46
48
  export * from './api/bank-transaction-api';
47
49
  export * from './api/billing-addresses-api';
@@ -0,0 +1,144 @@
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
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetBankOrderTextsResponseClass } from '../models';
16
+ import { UpdateBankOrderTextsRequestDto } from '../models';
17
+ import { UpdateBankOrderTextsResponseClass } from '../models';
18
+ /**
19
+ * BankOrderTextsApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const BankOrderTextsApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
25
+ * @summary Retrieve the bank order texts
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ getBankOrderTexts: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
33
+ * @summary Save the bank order texts
34
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
35
+ * @param {string} [authorization] Bearer Token
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ updateBankOrderTexts: (updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ };
41
+ /**
42
+ * BankOrderTextsApi - functional programming interface
43
+ * @export
44
+ */
45
+ export declare const BankOrderTextsApiFp: (configuration?: Configuration) => {
46
+ /**
47
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
48
+ * @summary Retrieve the bank order texts
49
+ * @param {string} [authorization] Bearer Token
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ getBankOrderTexts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderTextsResponseClass>>;
54
+ /**
55
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
56
+ * @summary Save the bank order texts
57
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
58
+ * @param {string} [authorization] Bearer Token
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderTextsResponseClass>>;
63
+ };
64
+ /**
65
+ * BankOrderTextsApi - factory interface
66
+ * @export
67
+ */
68
+ export declare const BankOrderTextsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
69
+ /**
70
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
71
+ * @summary Retrieve the bank order texts
72
+ * @param {string} [authorization] Bearer Token
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ getBankOrderTexts(authorization?: string, options?: any): AxiosPromise<GetBankOrderTextsResponseClass>;
77
+ /**
78
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
79
+ * @summary Save the bank order texts
80
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
81
+ * @param {string} [authorization] Bearer Token
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderTextsResponseClass>;
86
+ };
87
+ /**
88
+ * Request parameters for getBankOrderTexts operation in BankOrderTextsApi.
89
+ * @export
90
+ * @interface BankOrderTextsApiGetBankOrderTextsRequest
91
+ */
92
+ export interface BankOrderTextsApiGetBankOrderTextsRequest {
93
+ /**
94
+ * Bearer Token
95
+ * @type {string}
96
+ * @memberof BankOrderTextsApiGetBankOrderTexts
97
+ */
98
+ readonly authorization?: string;
99
+ }
100
+ /**
101
+ * Request parameters for updateBankOrderTexts operation in BankOrderTextsApi.
102
+ * @export
103
+ * @interface BankOrderTextsApiUpdateBankOrderTextsRequest
104
+ */
105
+ export interface BankOrderTextsApiUpdateBankOrderTextsRequest {
106
+ /**
107
+ *
108
+ * @type {UpdateBankOrderTextsRequestDto}
109
+ * @memberof BankOrderTextsApiUpdateBankOrderTexts
110
+ */
111
+ readonly updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto;
112
+ /**
113
+ * Bearer Token
114
+ * @type {string}
115
+ * @memberof BankOrderTextsApiUpdateBankOrderTexts
116
+ */
117
+ readonly authorization?: string;
118
+ }
119
+ /**
120
+ * BankOrderTextsApi - object-oriented interface
121
+ * @export
122
+ * @class BankOrderTextsApi
123
+ * @extends {BaseAPI}
124
+ */
125
+ export declare class BankOrderTextsApi extends BaseAPI {
126
+ /**
127
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
128
+ * @summary Retrieve the bank order texts
129
+ * @param {BankOrderTextsApiGetBankOrderTextsRequest} requestParameters Request parameters.
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ * @memberof BankOrderTextsApi
133
+ */
134
+ getBankOrderTexts(requestParameters?: BankOrderTextsApiGetBankOrderTextsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderTextsResponseClass, any, {}, any>>;
135
+ /**
136
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
137
+ * @summary Save the bank order texts
138
+ * @param {BankOrderTextsApiUpdateBankOrderTextsRequest} requestParameters Request parameters.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ * @memberof BankOrderTextsApi
142
+ */
143
+ updateBankOrderTexts(requestParameters: BankOrderTextsApiUpdateBankOrderTextsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderTextsResponseClass, any, {}, any>>;
144
+ }
@@ -0,0 +1,325 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.BankOrderTextsApi = exports.BankOrderTextsApiFactory = exports.BankOrderTextsApiFp = exports.BankOrderTextsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * BankOrderTextsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var BankOrderTextsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
97
+ * @summary Retrieve the bank order texts
98
+ * @param {string} [authorization] Bearer Token
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ getBankOrderTexts: function (authorization, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
106
+ var _a;
107
+ return __generator(this, function (_b) {
108
+ switch (_b.label) {
109
+ case 0:
110
+ localVarPath = "/paymentservice/v1/bank-order-texts";
111
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ baseAccessToken = configuration.accessToken;
115
+ }
116
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
117
+ localVarHeaderParameter = {};
118
+ localVarQueryParameter = {};
119
+ // authentication bearer required
120
+ // http bearer authentication required
121
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
122
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
123
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
124
+ ];
125
+ case 1:
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ _b.sent();
129
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
130
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
131
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
132
+ if (authorizationValue || authorizationKeepEmpty) {
133
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
+ }
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ return [2 /*return*/, {
139
+ url: (0, common_1.toPathString)(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ }];
142
+ }
143
+ });
144
+ });
145
+ },
146
+ /**
147
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
148
+ * @summary Save the bank order texts
149
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ updateBankOrderTexts: function (updateBankOrderTextsRequestDto, authorization, options) {
155
+ if (options === void 0) { options = {}; }
156
+ return __awaiter(_this, void 0, void 0, function () {
157
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
158
+ var _a;
159
+ return __generator(this, function (_b) {
160
+ switch (_b.label) {
161
+ case 0:
162
+ // verify required parameter 'updateBankOrderTextsRequestDto' is not null or undefined
163
+ (0, common_1.assertParamExists)('updateBankOrderTexts', 'updateBankOrderTextsRequestDto', updateBankOrderTextsRequestDto);
164
+ localVarPath = "/paymentservice/v1/bank-order-texts";
165
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ if (configuration) {
167
+ baseOptions = configuration.baseOptions;
168
+ baseAccessToken = configuration.accessToken;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
176
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
177
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
178
+ ];
179
+ case 1:
180
+ // authentication bearer required
181
+ // http bearer authentication required
182
+ _b.sent();
183
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
184
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
185
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
186
+ if (authorizationValue || authorizationKeepEmpty) {
187
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
188
+ }
189
+ localVarHeaderParameter['Content-Type'] = 'application/json';
190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankOrderTextsRequestDto, localVarRequestOptions, configuration);
194
+ return [2 /*return*/, {
195
+ url: (0, common_1.toPathString)(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ }];
198
+ }
199
+ });
200
+ });
201
+ },
202
+ };
203
+ };
204
+ exports.BankOrderTextsApiAxiosParamCreator = BankOrderTextsApiAxiosParamCreator;
205
+ /**
206
+ * BankOrderTextsApi - functional programming interface
207
+ * @export
208
+ */
209
+ var BankOrderTextsApiFp = function (configuration) {
210
+ var localVarAxiosParamCreator = (0, exports.BankOrderTextsApiAxiosParamCreator)(configuration);
211
+ return {
212
+ /**
213
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
214
+ * @summary Retrieve the bank order texts
215
+ * @param {string} [authorization] Bearer Token
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ getBankOrderTexts: function (authorization, options) {
220
+ return __awaiter(this, void 0, void 0, function () {
221
+ var localVarAxiosArgs;
222
+ return __generator(this, function (_a) {
223
+ switch (_a.label) {
224
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrderTexts(authorization, options)];
225
+ case 1:
226
+ localVarAxiosArgs = _a.sent();
227
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
228
+ }
229
+ });
230
+ });
231
+ },
232
+ /**
233
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
234
+ * @summary Save the bank order texts
235
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
236
+ * @param {string} [authorization] Bearer Token
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ updateBankOrderTexts: function (updateBankOrderTextsRequestDto, authorization, options) {
241
+ return __awaiter(this, void 0, void 0, function () {
242
+ var localVarAxiosArgs;
243
+ return __generator(this, function (_a) {
244
+ switch (_a.label) {
245
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options)];
246
+ case 1:
247
+ localVarAxiosArgs = _a.sent();
248
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
249
+ }
250
+ });
251
+ });
252
+ },
253
+ };
254
+ };
255
+ exports.BankOrderTextsApiFp = BankOrderTextsApiFp;
256
+ /**
257
+ * BankOrderTextsApi - factory interface
258
+ * @export
259
+ */
260
+ var BankOrderTextsApiFactory = function (configuration, basePath, axios) {
261
+ var localVarFp = (0, exports.BankOrderTextsApiFp)(configuration);
262
+ return {
263
+ /**
264
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
265
+ * @summary Retrieve the bank order texts
266
+ * @param {string} [authorization] Bearer Token
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ getBankOrderTexts: function (authorization, options) {
271
+ return localVarFp.getBankOrderTexts(authorization, options).then(function (request) { return request(axios, basePath); });
272
+ },
273
+ /**
274
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
275
+ * @summary Save the bank order texts
276
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
277
+ * @param {string} [authorization] Bearer Token
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ updateBankOrderTexts: function (updateBankOrderTextsRequestDto, authorization, options) {
282
+ return localVarFp.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
283
+ },
284
+ };
285
+ };
286
+ exports.BankOrderTextsApiFactory = BankOrderTextsApiFactory;
287
+ /**
288
+ * BankOrderTextsApi - object-oriented interface
289
+ * @export
290
+ * @class BankOrderTextsApi
291
+ * @extends {BaseAPI}
292
+ */
293
+ var BankOrderTextsApi = /** @class */ (function (_super) {
294
+ __extends(BankOrderTextsApi, _super);
295
+ function BankOrderTextsApi() {
296
+ return _super !== null && _super.apply(this, arguments) || this;
297
+ }
298
+ /**
299
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
300
+ * @summary Retrieve the bank order texts
301
+ * @param {BankOrderTextsApiGetBankOrderTextsRequest} requestParameters Request parameters.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ * @memberof BankOrderTextsApi
305
+ */
306
+ BankOrderTextsApi.prototype.getBankOrderTexts = function (requestParameters, options) {
307
+ var _this = this;
308
+ if (requestParameters === void 0) { requestParameters = {}; }
309
+ return (0, exports.BankOrderTextsApiFp)(this.configuration).getBankOrderTexts(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
310
+ };
311
+ /**
312
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
313
+ * @summary Save the bank order texts
314
+ * @param {BankOrderTextsApiUpdateBankOrderTextsRequest} requestParameters Request parameters.
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ * @memberof BankOrderTextsApi
318
+ */
319
+ BankOrderTextsApi.prototype.updateBankOrderTexts = function (requestParameters, options) {
320
+ var _this = this;
321
+ return (0, exports.BankOrderTextsApiFp)(this.configuration).updateBankOrderTexts(requestParameters.updateBankOrderTextsRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
322
+ };
323
+ return BankOrderTextsApi;
324
+ }(base_1.BaseAPI));
325
+ exports.BankOrderTextsApi = BankOrderTextsApi;
package/dist/api.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/bank-accounts-api';
13
+ export * from './api/bank-order-texts-api';
13
14
  export * from './api/bank-orders-api';
14
15
  export * from './api/bank-transaction-api';
15
16
  export * from './api/billing-addresses-api';
package/dist/api.js CHANGED
@@ -28,6 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/bank-accounts-api"), exports);
31
+ __exportStar(require("./api/bank-order-texts-api"), exports);
31
32
  __exportStar(require("./api/bank-orders-api"), exports);
32
33
  __exportStar(require("./api/bank-transaction-api"), exports);
33
34
  __exportStar(require("./api/billing-addresses-api"), exports);
@@ -0,0 +1,42 @@
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 BankOrderTextsClass
16
+ */
17
+ export interface BankOrderTextsClass {
18
+ /**
19
+ * Templates per bank order type (`directDebit`): a default template and product templates keyed by product slug.
20
+ * @type {object}
21
+ * @memberof BankOrderTextsClass
22
+ */
23
+ 'templates': object;
24
+ /**
25
+ * Version of the stored texts. Send it back when saving.
26
+ * @type {number}
27
+ * @memberof BankOrderTextsClass
28
+ */
29
+ 'version': number;
30
+ /**
31
+ * When the texts were last saved.
32
+ * @type {string}
33
+ * @memberof BankOrderTextsClass
34
+ */
35
+ 'updatedAt'?: string;
36
+ /**
37
+ * Who saved the texts last.
38
+ * @type {string}
39
+ * @memberof BankOrderTextsClass
40
+ */
41
+ 'updatedBy'?: string;
42
+ }
@@ -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 });
@@ -0,0 +1,25 @@
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
+ import { BankOrderTextsClass } from './bank-order-texts-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetBankOrderTextsResponseClass
17
+ */
18
+ export interface GetBankOrderTextsResponseClass {
19
+ /**
20
+ * Bank order texts of the tenant
21
+ * @type {BankOrderTextsClass}
22
+ * @memberof GetBankOrderTextsResponseClass
23
+ */
24
+ 'bankOrderTexts': BankOrderTextsClass;
25
+ }
@@ -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 });
@@ -4,6 +4,7 @@ export * from './bank-account-class-without-expand-properties';
4
4
  export * from './bank-data-class';
5
5
  export * from './bank-order-class';
6
6
  export * from './bank-order-entity';
7
+ export * from './bank-order-texts-class';
7
8
  export * from './bank-order-xml-file-class';
8
9
  export * from './bank-order-xml-file-entity';
9
10
  export * from './bank-transaction-class';
@@ -67,6 +68,7 @@ export * from './exceeding-credit-entity';
67
68
  export * from './generate-invoice-match-suggestions-response-class';
68
69
  export * from './get-bank-account-response-class';
69
70
  export * from './get-bank-order-response-class';
71
+ export * from './get-bank-order-texts-response-class';
70
72
  export * from './get-bank-transactions-response-class';
71
73
  export * from './get-billing-address-response-class';
72
74
  export * from './get-credit-allocation-response-class';
@@ -147,6 +149,8 @@ export * from './update-bank-account-request-dto-rest';
147
149
  export * from './update-bank-account-response-class';
148
150
  export * from './update-bank-order-request-dto';
149
151
  export * from './update-bank-order-response-class';
152
+ export * from './update-bank-order-texts-request-dto';
153
+ export * from './update-bank-order-texts-response-class';
150
154
  export * from './update-billing-address-request-dto';
151
155
  export * from './update-billing-address-response-class';
152
156
  export * from './update-payment-receipt-response-class';
@@ -20,6 +20,7 @@ __exportStar(require("./bank-account-class-without-expand-properties"), exports)
20
20
  __exportStar(require("./bank-data-class"), exports);
21
21
  __exportStar(require("./bank-order-class"), exports);
22
22
  __exportStar(require("./bank-order-entity"), exports);
23
+ __exportStar(require("./bank-order-texts-class"), exports);
23
24
  __exportStar(require("./bank-order-xml-file-class"), exports);
24
25
  __exportStar(require("./bank-order-xml-file-entity"), exports);
25
26
  __exportStar(require("./bank-transaction-class"), exports);
@@ -83,6 +84,7 @@ __exportStar(require("./exceeding-credit-entity"), exports);
83
84
  __exportStar(require("./generate-invoice-match-suggestions-response-class"), exports);
84
85
  __exportStar(require("./get-bank-account-response-class"), exports);
85
86
  __exportStar(require("./get-bank-order-response-class"), exports);
87
+ __exportStar(require("./get-bank-order-texts-response-class"), exports);
86
88
  __exportStar(require("./get-bank-transactions-response-class"), exports);
87
89
  __exportStar(require("./get-billing-address-response-class"), exports);
88
90
  __exportStar(require("./get-credit-allocation-response-class"), exports);
@@ -163,6 +165,8 @@ __exportStar(require("./update-bank-account-request-dto-rest"), exports);
163
165
  __exportStar(require("./update-bank-account-response-class"), exports);
164
166
  __exportStar(require("./update-bank-order-request-dto"), exports);
165
167
  __exportStar(require("./update-bank-order-response-class"), exports);
168
+ __exportStar(require("./update-bank-order-texts-request-dto"), exports);
169
+ __exportStar(require("./update-bank-order-texts-response-class"), exports);
166
170
  __exportStar(require("./update-billing-address-request-dto"), exports);
167
171
  __exportStar(require("./update-billing-address-response-class"), exports);
168
172
  __exportStar(require("./update-payment-receipt-response-class"), exports);
@@ -0,0 +1,32 @@
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 UpdateBankOrderTextsRequestDto
16
+ */
17
+ export interface UpdateBankOrderTextsRequestDto {
18
+ /**
19
+ * Templates per bank order type (`directDebit`): a default template and product templates keyed by product slug. Placeholders: `{{bankOrder.orderNumber}}`, `{{invoice.invoiceNumber}}`, `{{policy.policyNumber}}`, `{{policy.productName}}`, `{{policy.tariffVariant}}`.
20
+ * @type {{ [key: string]: object; }}
21
+ * @memberof UpdateBankOrderTextsRequestDto
22
+ */
23
+ 'templates'?: {
24
+ [key: string]: object;
25
+ };
26
+ /**
27
+ * Version the texts were loaded with. Leave it out on the first save. A save against an older version is refused.
28
+ * @type {number}
29
+ * @memberof UpdateBankOrderTextsRequestDto
30
+ */
31
+ 'version'?: number;
32
+ }
@@ -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 });
@@ -0,0 +1,25 @@
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
+ import { BankOrderTextsClass } from './bank-order-texts-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateBankOrderTextsResponseClass
17
+ */
18
+ export interface UpdateBankOrderTextsResponseClass {
19
+ /**
20
+ * Bank order texts of the tenant
21
+ * @type {BankOrderTextsClass}
22
+ * @memberof UpdateBankOrderTextsResponseClass
23
+ */
24
+ 'bankOrderTexts': BankOrderTextsClass;
25
+ }
@@ -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 });
@@ -0,0 +1,48 @@
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 BankOrderTextsClass
21
+ */
22
+ export interface BankOrderTextsClass {
23
+ /**
24
+ * Templates per bank order type (`directDebit`): a default template and product templates keyed by product slug.
25
+ * @type {object}
26
+ * @memberof BankOrderTextsClass
27
+ */
28
+ 'templates': object;
29
+ /**
30
+ * Version of the stored texts. Send it back when saving.
31
+ * @type {number}
32
+ * @memberof BankOrderTextsClass
33
+ */
34
+ 'version': number;
35
+ /**
36
+ * When the texts were last saved.
37
+ * @type {string}
38
+ * @memberof BankOrderTextsClass
39
+ */
40
+ 'updatedAt'?: string;
41
+ /**
42
+ * Who saved the texts last.
43
+ * @type {string}
44
+ * @memberof BankOrderTextsClass
45
+ */
46
+ 'updatedBy'?: string;
47
+ }
48
+
@@ -0,0 +1,31 @@
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
+ import { BankOrderTextsClass } from './bank-order-texts-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetBankOrderTextsResponseClass
22
+ */
23
+ export interface GetBankOrderTextsResponseClass {
24
+ /**
25
+ * Bank order texts of the tenant
26
+ * @type {BankOrderTextsClass}
27
+ * @memberof GetBankOrderTextsResponseClass
28
+ */
29
+ 'bankOrderTexts': BankOrderTextsClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from './bank-account-class-without-expand-properties';
4
4
  export * from './bank-data-class';
5
5
  export * from './bank-order-class';
6
6
  export * from './bank-order-entity';
7
+ export * from './bank-order-texts-class';
7
8
  export * from './bank-order-xml-file-class';
8
9
  export * from './bank-order-xml-file-entity';
9
10
  export * from './bank-transaction-class';
@@ -67,6 +68,7 @@ export * from './exceeding-credit-entity';
67
68
  export * from './generate-invoice-match-suggestions-response-class';
68
69
  export * from './get-bank-account-response-class';
69
70
  export * from './get-bank-order-response-class';
71
+ export * from './get-bank-order-texts-response-class';
70
72
  export * from './get-bank-transactions-response-class';
71
73
  export * from './get-billing-address-response-class';
72
74
  export * from './get-credit-allocation-response-class';
@@ -147,6 +149,8 @@ export * from './update-bank-account-request-dto-rest';
147
149
  export * from './update-bank-account-response-class';
148
150
  export * from './update-bank-order-request-dto';
149
151
  export * from './update-bank-order-response-class';
152
+ export * from './update-bank-order-texts-request-dto';
153
+ export * from './update-bank-order-texts-response-class';
150
154
  export * from './update-billing-address-request-dto';
151
155
  export * from './update-billing-address-response-class';
152
156
  export * from './update-payment-receipt-response-class';
@@ -0,0 +1,36 @@
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 UpdateBankOrderTextsRequestDto
21
+ */
22
+ export interface UpdateBankOrderTextsRequestDto {
23
+ /**
24
+ * Templates per bank order type (`directDebit`): a default template and product templates keyed by product slug. Placeholders: `{{bankOrder.orderNumber}}`, `{{invoice.invoiceNumber}}`, `{{policy.policyNumber}}`, `{{policy.productName}}`, `{{policy.tariffVariant}}`.
25
+ * @type {{ [key: string]: object; }}
26
+ * @memberof UpdateBankOrderTextsRequestDto
27
+ */
28
+ 'templates'?: { [key: string]: object; };
29
+ /**
30
+ * Version the texts were loaded with. Leave it out on the first save. A save against an older version is refused.
31
+ * @type {number}
32
+ * @memberof UpdateBankOrderTextsRequestDto
33
+ */
34
+ 'version'?: number;
35
+ }
36
+
@@ -0,0 +1,31 @@
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
+ import { BankOrderTextsClass } from './bank-order-texts-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateBankOrderTextsResponseClass
22
+ */
23
+ export interface UpdateBankOrderTextsResponseClass {
24
+ /**
25
+ * Bank order texts of the tenant
26
+ * @type {BankOrderTextsClass}
27
+ * @memberof UpdateBankOrderTextsResponseClass
28
+ */
29
+ 'bankOrderTexts': BankOrderTextsClass;
30
+ }
31
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.22.1-beta.84",
3
+ "version": "1.22.1-beta.85",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [