@emilgroup/billing-sdk 1.63.1-beta.26 → 1.63.1-beta.28

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.
@@ -12,7 +12,6 @@ api/invoices-api.ts
12
12
  api/policy-billing-api.ts
13
13
  api/recurring-invoices-api.ts
14
14
  api/termination-invoices-api.ts
15
- api/withdraw-invoices-api.ts
16
15
  base.ts
17
16
  common.ts
18
17
  configuration.ts
@@ -37,8 +36,6 @@ models/create-policy-billing-response-class.ts
37
36
  models/create-product-estimated-invoice-request-dto.ts
38
37
  models/create-product-estimated-invoice-response-class.ts
39
38
  models/create-termination-invoice-request-dto.ts
40
- models/create-withdraw-invoice-request-dto-rest.ts
41
- models/create-withdraw-invoice-request-dto.ts
42
39
  models/get-invoice-response-class.ts
43
40
  models/index.ts
44
41
  models/inline-response200.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/billing-sdk@1.63.1-beta.26 --save
20
+ npm install @emilgroup/billing-sdk@1.63.1-beta.28 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk@1.63.1-beta.26
24
+ yarn add @emilgroup/billing-sdk@1.63.1-beta.28
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
package/api.ts CHANGED
@@ -29,7 +29,6 @@ import { InvoicesApi } from './api';
29
29
  import { PolicyBillingApi } from './api';
30
30
  import { RecurringInvoicesApi } from './api';
31
31
  import { TerminationInvoicesApi } from './api';
32
- import { WithdrawInvoicesApi } from './api';
33
32
 
34
33
 
35
34
  export * from './api/correction-invoices-api';
@@ -41,5 +40,4 @@ export * from './api/invoices-api';
41
40
  export * from './api/policy-billing-api';
42
41
  export * from './api/recurring-invoices-api';
43
42
  export * from './api/termination-invoices-api';
44
- export * from './api/withdraw-invoices-api';
45
43
 
package/base.ts CHANGED
@@ -102,14 +102,10 @@ export class BaseAPI {
102
102
  this.configuration = configuration;
103
103
  this.basePath = configuration.basePath || this.basePath;
104
104
 
105
- if (configuration.cookieAuth) {
106
- this.useCookieAuth();
107
- } else {
108
- // Use config token if provided, otherwise use tokenData token
109
- const configToken = this.configuration.accessToken;
110
- const storedToken = accessToken ? `Bearer ${accessToken}` : '';
111
- this.configuration.accessToken = configToken || storedToken;
112
- }
105
+ // Use config token if provided, otherwise use tokenData token
106
+ const configToken = this.configuration.accessToken;
107
+ const storedToken = accessToken ? `Bearer ${accessToken}` : '';
108
+ this.configuration.accessToken = configToken || storedToken;
113
109
  } else {
114
110
  const { accessToken, username } = this.tokenData;
115
111
 
@@ -123,12 +119,6 @@ export class BaseAPI {
123
119
  this.attachInterceptor(axios);
124
120
  }
125
121
 
126
- // Cookie mode: the browser sends the HttpOnly access cookie, so no token is read from storage.
127
- private useCookieAuth() {
128
- this.configuration.username = this.configuration.username || this.tokenData.username;
129
- this.configuration.baseOptions = { ...this.configuration.baseOptions, withCredentials: true };
130
- }
131
-
132
122
  selectEnvironment(env: Environment) {
133
123
  this.selectBasePath(env);
134
124
  }
@@ -162,12 +152,10 @@ export class BaseAPI {
162
152
  const { data: { accessToken, permissions } } = response;
163
153
 
164
154
  this.configuration.username = username;
155
+ this.configuration.accessToken = `Bearer ${accessToken}`;
165
156
  this.tokenData.username = username;
157
+ this.tokenData.accessToken = accessToken;
166
158
  this.tokenData.permissions = permissions;
167
- if (!this.configuration.cookieAuth) {
168
- this.configuration.accessToken = `Bearer ${accessToken}`;
169
- this.tokenData.accessToken = accessToken;
170
- }
171
159
 
172
160
  // Switch workspace if provided
173
161
  if (targetWorkspace) {
@@ -190,7 +178,7 @@ export class BaseAPI {
190
178
  url: `${this.configuration.basePath}/authservice/v1/workspaces/switch`,
191
179
  headers: {
192
180
  'Content-Type': 'application/json',
193
- ...(this.configuration.cookieAuth ? {} : { 'Authorization': `Bearer ${this.configuration.accessToken}` }),
181
+ 'Authorization': `Bearer ${this.configuration.accessToken}`,
194
182
  },
195
183
  data: {
196
184
  username: this.configuration.username,
@@ -202,12 +190,10 @@ export class BaseAPI {
202
190
  const response = await globalAxios.request<SwitchWorkspaceResponseClass>(options);
203
191
 
204
192
  const { data: { accessToken, permissions } } = response;
205
-
193
+
194
+ this.configuration.accessToken = `Bearer ${accessToken}`;
195
+ this.tokenData.accessToken = accessToken;
206
196
  this.tokenData.permissions = permissions;
207
- if (!this.configuration.cookieAuth) {
208
- this.configuration.accessToken = `Bearer ${accessToken}`;
209
- this.tokenData.accessToken = accessToken;
210
- }
211
197
 
212
198
  this.storeTokenData({
213
199
  ...this.tokenData
@@ -247,11 +233,6 @@ export class BaseAPI {
247
233
 
248
234
  private storeTokenData(tokenData?: TokenData) {
249
235
  if (typeof window !== 'undefined') {
250
- if (tokenData && this.configuration?.cookieAuth) {
251
- // Cookie mode saves who is logged in, never the token; a token saved by apps not yet migrated stays.
252
- const { username, permissions } = tokenData;
253
- tokenData = { ...(defaultStorage().get<TokenData>(TOKEN_DATA) || {}), username, permissions };
254
- }
255
236
  defaultStorage().set<TokenData>(TOKEN_DATA, tokenData);
256
237
  }
257
238
  }
@@ -282,17 +263,15 @@ export class BaseAPI {
282
263
  originalConfig._retry = true;
283
264
  try {
284
265
  const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
266
+ const accessToken = `Bearer ${tokenString}`;
285
267
  this.tokenData.permissions = permissions;
286
268
 
287
269
  delete originalConfig.headers['Authorization']
288
270
 
289
- // In cookie mode the refresh reply renewed the access cookie, so retry without a header.
290
- if (!this.configuration.cookieAuth) {
291
- const accessToken = `Bearer ${tokenString}`;
292
- originalConfig.headers['Authorization'] = accessToken;
293
- this.configuration.accessToken = accessToken;
294
- this.tokenData.accessToken = tokenString;
295
- }
271
+ originalConfig.headers['Authorization'] = accessToken;
272
+
273
+ this.configuration.accessToken = accessToken;
274
+ this.tokenData.accessToken = tokenString;
296
275
 
297
276
  this.storeTokenData(this.tokenData);
298
277
 
package/configuration.ts CHANGED
@@ -21,7 +21,6 @@ export interface ConfigurationParameters {
21
21
  basePath?: string;
22
22
  baseOptions?: any;
23
23
  formDataCtor?: new () => any;
24
- cookieAuth?: boolean;
25
24
  }
26
25
 
27
26
  export class Configuration {
@@ -75,15 +74,6 @@ export class Configuration {
75
74
  */
76
75
  formDataCtor?: new () => any;
77
76
 
78
- /**
79
- * Authenticate with the HttpOnly access cookie instead of a stored token: every call sends credentials.
80
- * The browser holds one cookie, so use it with one logged-in account; log out through the auth service.
81
- *
82
- * @type {boolean}
83
- * @memberof Configuration
84
- */
85
- cookieAuth?: boolean;
86
-
87
77
  constructor(param: ConfigurationParameters = {}) {
88
78
  this.apiKey = param.apiKey;
89
79
  this.username = param.username;
@@ -92,7 +82,6 @@ export class Configuration {
92
82
  this.basePath = param.basePath;
93
83
  this.baseOptions = param.baseOptions;
94
84
  this.formDataCtor = param.formDataCtor;
95
- this.cookieAuth = param.cookieAuth;
96
85
  }
97
86
 
98
87
  /**
package/dist/api.d.ts CHANGED
@@ -18,4 +18,3 @@ export * from './api/invoices-api';
18
18
  export * from './api/policy-billing-api';
19
19
  export * from './api/recurring-invoices-api';
20
20
  export * from './api/termination-invoices-api';
21
- export * from './api/withdraw-invoices-api';
package/dist/api.js CHANGED
@@ -36,4 +36,3 @@ __exportStar(require("./api/invoices-api"), exports);
36
36
  __exportStar(require("./api/policy-billing-api"), exports);
37
37
  __exportStar(require("./api/recurring-invoices-api"), exports);
38
38
  __exportStar(require("./api/termination-invoices-api"), exports);
39
- __exportStar(require("./api/withdraw-invoices-api"), exports);
package/dist/base.d.ts CHANGED
@@ -63,7 +63,6 @@ export declare class BaseAPI {
63
63
  protected configuration: Configuration | undefined;
64
64
  private tokenData?;
65
65
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
66
- private useCookieAuth;
67
66
  selectEnvironment(env: Environment): void;
68
67
  selectBasePath(path: string): void;
69
68
  getPermissions(): Array<string>;
package/dist/base.js CHANGED
@@ -128,15 +128,10 @@ var BaseAPI = /** @class */ (function () {
128
128
  var accessToken = this.tokenData.accessToken;
129
129
  this.configuration = configuration;
130
130
  this.basePath = configuration.basePath || this.basePath;
131
- if (configuration.cookieAuth) {
132
- this.useCookieAuth();
133
- }
134
- else {
135
- // Use config token if provided, otherwise use tokenData token
136
- var configToken = this.configuration.accessToken;
137
- var storedToken = accessToken ? "Bearer ".concat(accessToken) : '';
138
- this.configuration.accessToken = configToken || storedToken;
139
- }
131
+ // Use config token if provided, otherwise use tokenData token
132
+ var configToken = this.configuration.accessToken;
133
+ var storedToken = accessToken ? "Bearer ".concat(accessToken) : '';
134
+ this.configuration.accessToken = configToken || storedToken;
140
135
  }
141
136
  else {
142
137
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -148,11 +143,6 @@ var BaseAPI = /** @class */ (function () {
148
143
  }
149
144
  this.attachInterceptor(axios);
150
145
  }
151
- // Cookie mode: the browser sends the HttpOnly access cookie, so no token is read from storage.
152
- BaseAPI.prototype.useCookieAuth = function () {
153
- this.configuration.username = this.configuration.username || this.tokenData.username;
154
- this.configuration.baseOptions = __assign(__assign({}, this.configuration.baseOptions), { withCredentials: true });
155
- };
156
146
  BaseAPI.prototype.selectEnvironment = function (env) {
157
147
  this.selectBasePath(env);
158
148
  };
@@ -187,12 +177,10 @@ var BaseAPI = /** @class */ (function () {
187
177
  response = _b.sent();
188
178
  _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
189
179
  this.configuration.username = username;
180
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
190
181
  this.tokenData.username = username;
182
+ this.tokenData.accessToken = accessToken;
191
183
  this.tokenData.permissions = permissions;
192
- if (!this.configuration.cookieAuth) {
193
- this.configuration.accessToken = "Bearer ".concat(accessToken);
194
- this.tokenData.accessToken = accessToken;
195
- }
196
184
  if (!targetWorkspace) return [3 /*break*/, 3];
197
185
  return [4 /*yield*/, this.switchWorkspace(targetWorkspace)];
198
186
  case 2:
@@ -218,7 +206,10 @@ var BaseAPI = /** @class */ (function () {
218
206
  options = {
219
207
  method: 'POST',
220
208
  url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"),
221
- headers: __assign({ 'Content-Type': 'application/json' }, (this.configuration.cookieAuth ? {} : { 'Authorization': "Bearer ".concat(this.configuration.accessToken) })),
209
+ headers: {
210
+ 'Content-Type': 'application/json',
211
+ 'Authorization': "Bearer ".concat(this.configuration.accessToken),
212
+ },
222
213
  data: {
223
214
  username: this.configuration.username,
224
215
  targetWorkspace: targetWorkspace,
@@ -229,11 +220,9 @@ var BaseAPI = /** @class */ (function () {
229
220
  case 1:
230
221
  response = _b.sent();
231
222
  _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
223
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
224
+ this.tokenData.accessToken = accessToken;
232
225
  this.tokenData.permissions = permissions;
233
- if (!this.configuration.cookieAuth) {
234
- this.configuration.accessToken = "Bearer ".concat(accessToken);
235
- this.tokenData.accessToken = accessToken;
236
- }
237
226
  this.storeTokenData(__assign({}, this.tokenData));
238
227
  return [2 /*return*/];
239
228
  }
@@ -276,13 +265,7 @@ var BaseAPI = /** @class */ (function () {
276
265
  });
277
266
  };
278
267
  BaseAPI.prototype.storeTokenData = function (tokenData) {
279
- var _a;
280
268
  if (typeof window !== 'undefined') {
281
- if (tokenData && ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.cookieAuth)) {
282
- // Cookie mode saves who is logged in, never the token; a token saved by apps not yet migrated stays.
283
- var username = tokenData.username, permissions = tokenData.permissions;
284
- tokenData = __assign(__assign({}, ((0, common_1.defaultStorage)().get(TOKEN_DATA) || {})), { username: username, permissions: permissions });
285
- }
286
269
  (0, common_1.defaultStorage)().set(TOKEN_DATA, tokenData);
287
270
  }
288
271
  };
@@ -317,15 +300,12 @@ var BaseAPI = /** @class */ (function () {
317
300
  return [4 /*yield*/, this.refreshTokenInternal()];
318
301
  case 2:
319
302
  _a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
303
+ accessToken = "Bearer ".concat(tokenString);
320
304
  this.tokenData.permissions = permissions;
321
305
  delete originalConfig.headers['Authorization'];
322
- // In cookie mode the refresh reply renewed the access cookie, so retry without a header.
323
- if (!this.configuration.cookieAuth) {
324
- accessToken = "Bearer ".concat(tokenString);
325
- originalConfig.headers['Authorization'] = accessToken;
326
- this.configuration.accessToken = accessToken;
327
- this.tokenData.accessToken = tokenString;
328
- }
306
+ originalConfig.headers['Authorization'] = accessToken;
307
+ this.configuration.accessToken = accessToken;
308
+ this.tokenData.accessToken = tokenString;
329
309
  this.storeTokenData(this.tokenData);
330
310
  return [2 /*return*/, axios(originalConfig)];
331
311
  case 3:
@@ -17,7 +17,6 @@ export interface ConfigurationParameters {
17
17
  basePath?: string;
18
18
  baseOptions?: any;
19
19
  formDataCtor?: new () => any;
20
- cookieAuth?: boolean;
21
20
  }
22
21
  export declare class Configuration {
23
22
  /**
@@ -69,14 +68,6 @@ export declare class Configuration {
69
68
  * @type {new () => FormData}
70
69
  */
71
70
  formDataCtor?: new () => any;
72
- /**
73
- * Authenticate with the HttpOnly access cookie instead of a stored token: every call sends credentials.
74
- * The browser holds one cookie, so use it with one logged-in account; log out through the auth service.
75
- *
76
- * @type {boolean}
77
- * @memberof Configuration
78
- */
79
- cookieAuth?: boolean;
80
71
  constructor(param?: ConfigurationParameters);
81
72
  /**
82
73
  * Check if the given MIME is a JSON MIME.
@@ -24,7 +24,6 @@ var Configuration = /** @class */ (function () {
24
24
  this.basePath = param.basePath;
25
25
  this.baseOptions = param.baseOptions;
26
26
  this.formDataCtor = param.formDataCtor;
27
- this.cookieAuth = param.cookieAuth;
28
27
  }
29
28
  /**
30
29
  * Check if the given MIME is a JSON MIME.
@@ -17,8 +17,6 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
- export * from './create-withdraw-invoice-request-dto';
21
- export * from './create-withdraw-invoice-request-dto-rest';
22
20
  export * from './get-invoice-response-class';
23
21
  export * from './inline-response200';
24
22
  export * from './inline-response503';
@@ -33,8 +33,6 @@ __exportStar(require("./create-policy-billing-response-class"), exports);
33
33
  __exportStar(require("./create-product-estimated-invoice-request-dto"), exports);
34
34
  __exportStar(require("./create-product-estimated-invoice-response-class"), exports);
35
35
  __exportStar(require("./create-termination-invoice-request-dto"), exports);
36
- __exportStar(require("./create-withdraw-invoice-request-dto"), exports);
37
- __exportStar(require("./create-withdraw-invoice-request-dto-rest"), exports);
38
36
  __exportStar(require("./get-invoice-response-class"), exports);
39
37
  __exportStar(require("./inline-response200"), exports);
40
38
  __exportStar(require("./inline-response503"), exports);
@@ -27,12 +27,6 @@ export interface InvoiceItemClass {
27
27
  * @memberof InvoiceItemClass
28
28
  */
29
29
  'premiumFormulaId': number;
30
- /**
31
- * Unique identifier of the premium formula that this object belongs to.
32
- * @type {string}
33
- * @memberof InvoiceItemClass
34
- */
35
- 'premiumFormulaCode'?: string;
36
30
  /**
37
31
  * Product name.
38
32
  * @type {string}
package/models/index.ts CHANGED
@@ -17,8 +17,6 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
- export * from './create-withdraw-invoice-request-dto';
21
- export * from './create-withdraw-invoice-request-dto-rest';
22
20
  export * from './get-invoice-response-class';
23
21
  export * from './inline-response200';
24
22
  export * from './inline-response503';
@@ -32,12 +32,6 @@ export interface InvoiceItemClass {
32
32
  * @memberof InvoiceItemClass
33
33
  */
34
34
  'premiumFormulaId': number;
35
- /**
36
- * Unique identifier of the premium formula that this object belongs to.
37
- * @type {string}
38
- * @memberof InvoiceItemClass
39
- */
40
- 'premiumFormulaCode'?: string;
41
35
  /**
42
36
  * Product name.
43
37
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.63.1-beta.26",
3
+ "version": "1.63.1-beta.28",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,179 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService API description
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 { CreateInvoiceResponseClass } from '../models';
25
- // @ts-ignore
26
- import { CreateWithdrawInvoiceRequestDtoRest } from '../models';
27
- /**
28
- * WithdrawInvoicesApi - axios parameter creator
29
- * @export
30
- */
31
- export const WithdrawInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
35
- * @summary Create the Withdraw invoice
36
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
37
- * @param {string} [authorization] Bearer Token
38
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
39
- * @param {*} [options] Override http request option.
40
- * @throws {RequiredError}
41
- */
42
- createWithdrawInvoice: async (createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
- // verify required parameter 'createWithdrawInvoiceRequestDtoRest' is not null or undefined
44
- assertParamExists('createWithdrawInvoice', 'createWithdrawInvoiceRequestDtoRest', createWithdrawInvoiceRequestDtoRest)
45
- const localVarPath = `/billingservice/v1/withdraw-invoices`;
46
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
- let baseOptions;
49
- let baseAccessToken;
50
- if (configuration) {
51
- baseOptions = configuration.baseOptions;
52
- baseAccessToken = configuration.accessToken;
53
- }
54
-
55
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
56
- const localVarHeaderParameter = {} as any;
57
- const localVarQueryParameter = {} as any;
58
-
59
- // authentication bearer required
60
- // http bearer authentication required
61
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
-
63
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
65
- }
66
-
67
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
69
- }
70
-
71
-
72
-
73
- localVarHeaderParameter['Content-Type'] = 'application/json';
74
-
75
- setSearchParams(localVarUrlObj, localVarQueryParameter);
76
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
- localVarRequestOptions.data = serializeDataIfNeeded(createWithdrawInvoiceRequestDtoRest, localVarRequestOptions, configuration)
79
-
80
- return {
81
- url: toPathString(localVarUrlObj),
82
- options: localVarRequestOptions,
83
- };
84
- },
85
- }
86
- };
87
-
88
- /**
89
- * WithdrawInvoicesApi - functional programming interface
90
- * @export
91
- */
92
- export const WithdrawInvoicesApiFp = function(configuration?: Configuration) {
93
- const localVarAxiosParamCreator = WithdrawInvoicesApiAxiosParamCreator(configuration)
94
- return {
95
- /**
96
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
97
- * @summary Create the Withdraw invoice
98
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
99
- * @param {string} [authorization] Bearer Token
100
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- async createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
105
- const localVarAxiosArgs = await localVarAxiosParamCreator.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options);
106
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
107
- },
108
- }
109
- };
110
-
111
- /**
112
- * WithdrawInvoicesApi - factory interface
113
- * @export
114
- */
115
- export const WithdrawInvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
116
- const localVarFp = WithdrawInvoicesApiFp(configuration)
117
- return {
118
- /**
119
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
120
- * @summary Create the Withdraw invoice
121
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
122
- * @param {string} [authorization] Bearer Token
123
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
124
- * @param {*} [options] Override http request option.
125
- * @throws {RequiredError}
126
- */
127
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
128
- return localVarFp.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
129
- },
130
- };
131
- };
132
-
133
- /**
134
- * Request parameters for createWithdrawInvoice operation in WithdrawInvoicesApi.
135
- * @export
136
- * @interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest
137
- */
138
- export interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest {
139
- /**
140
- *
141
- * @type {CreateWithdrawInvoiceRequestDtoRest}
142
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
143
- */
144
- readonly createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest
145
-
146
- /**
147
- * Bearer Token
148
- * @type {string}
149
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
150
- */
151
- readonly authorization?: string
152
-
153
- /**
154
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
155
- * @type {string}
156
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
157
- */
158
- readonly idempotencyKey?: string
159
- }
160
-
161
- /**
162
- * WithdrawInvoicesApi - object-oriented interface
163
- * @export
164
- * @class WithdrawInvoicesApi
165
- * @extends {BaseAPI}
166
- */
167
- export class WithdrawInvoicesApi extends BaseAPI {
168
- /**
169
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
170
- * @summary Create the Withdraw invoice
171
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
172
- * @param {*} [options] Override http request option.
173
- * @throws {RequiredError}
174
- * @memberof WithdrawInvoicesApi
175
- */
176
- public createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig) {
177
- return WithdrawInvoicesApiFp(this.configuration).createWithdrawInvoice(requestParameters.createWithdrawInvoiceRequestDtoRest, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
178
- }
179
- }
@@ -1,106 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService API description
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 { CreateInvoiceResponseClass } from '../models';
16
- import { CreateWithdrawInvoiceRequestDtoRest } from '../models';
17
- /**
18
- * WithdrawInvoicesApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const WithdrawInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
24
- * @summary Create the Withdraw invoice
25
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
26
- * @param {string} [authorization] Bearer Token
27
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
28
- * @param {*} [options] Override http request option.
29
- * @throws {RequiredError}
30
- */
31
- createWithdrawInvoice: (createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
- };
33
- /**
34
- * WithdrawInvoicesApi - functional programming interface
35
- * @export
36
- */
37
- export declare const WithdrawInvoicesApiFp: (configuration?: Configuration) => {
38
- /**
39
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
40
- * @summary Create the Withdraw invoice
41
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
42
- * @param {string} [authorization] Bearer Token
43
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
48
- };
49
- /**
50
- * WithdrawInvoicesApi - factory interface
51
- * @export
52
- */
53
- export declare const WithdrawInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
- /**
55
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
56
- * @summary Create the Withdraw invoice
57
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
58
- * @param {string} [authorization] Bearer Token
59
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- */
63
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
64
- };
65
- /**
66
- * Request parameters for createWithdrawInvoice operation in WithdrawInvoicesApi.
67
- * @export
68
- * @interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest
69
- */
70
- export interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest {
71
- /**
72
- *
73
- * @type {CreateWithdrawInvoiceRequestDtoRest}
74
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
75
- */
76
- readonly createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest;
77
- /**
78
- * Bearer Token
79
- * @type {string}
80
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
81
- */
82
- readonly authorization?: string;
83
- /**
84
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
85
- * @type {string}
86
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
87
- */
88
- readonly idempotencyKey?: string;
89
- }
90
- /**
91
- * WithdrawInvoicesApi - object-oriented interface
92
- * @export
93
- * @class WithdrawInvoicesApi
94
- * @extends {BaseAPI}
95
- */
96
- export declare class WithdrawInvoicesApi extends BaseAPI {
97
- /**
98
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
99
- * @summary Create the Withdraw invoice
100
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- * @memberof WithdrawInvoicesApi
104
- */
105
- createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
106
- }
@@ -1,230 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService API description
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.WithdrawInvoicesApi = exports.WithdrawInvoicesApiFactory = exports.WithdrawInvoicesApiFp = exports.WithdrawInvoicesApiAxiosParamCreator = 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
- * WithdrawInvoicesApi - axios parameter creator
90
- * @export
91
- */
92
- var WithdrawInvoicesApiAxiosParamCreator = function (configuration) {
93
- var _this = this;
94
- return {
95
- /**
96
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
97
- * @summary Create the Withdraw invoice
98
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
99
- * @param {string} [authorization] Bearer Token
100
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
110
- case 0:
111
- // verify required parameter 'createWithdrawInvoiceRequestDtoRest' is not null or undefined
112
- (0, common_1.assertParamExists)('createWithdrawInvoice', 'createWithdrawInvoiceRequestDtoRest', createWithdrawInvoiceRequestDtoRest);
113
- localVarPath = "/billingservice/v1/withdraw-invoices";
114
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
- if (configuration) {
116
- baseOptions = configuration.baseOptions;
117
- baseAccessToken = configuration.accessToken;
118
- }
119
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
120
- localVarHeaderParameter = {};
121
- localVarQueryParameter = {};
122
- // authentication bearer required
123
- // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
125
- case 1:
126
- // authentication bearer required
127
- // http bearer authentication required
128
- _a.sent();
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
- }
132
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
134
- }
135
- localVarHeaderParameter['Content-Type'] = 'application/json';
136
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWithdrawInvoiceRequestDtoRest, localVarRequestOptions, configuration);
140
- return [2 /*return*/, {
141
- url: (0, common_1.toPathString)(localVarUrlObj),
142
- options: localVarRequestOptions,
143
- }];
144
- }
145
- });
146
- });
147
- },
148
- };
149
- };
150
- exports.WithdrawInvoicesApiAxiosParamCreator = WithdrawInvoicesApiAxiosParamCreator;
151
- /**
152
- * WithdrawInvoicesApi - functional programming interface
153
- * @export
154
- */
155
- var WithdrawInvoicesApiFp = function (configuration) {
156
- var localVarAxiosParamCreator = (0, exports.WithdrawInvoicesApiAxiosParamCreator)(configuration);
157
- return {
158
- /**
159
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
160
- * @summary Create the Withdraw invoice
161
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
162
- * @param {string} [authorization] Bearer Token
163
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
164
- * @param {*} [options] Override http request option.
165
- * @throws {RequiredError}
166
- */
167
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
168
- return __awaiter(this, void 0, void 0, function () {
169
- var localVarAxiosArgs;
170
- return __generator(this, function (_a) {
171
- switch (_a.label) {
172
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options)];
173
- case 1:
174
- localVarAxiosArgs = _a.sent();
175
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
176
- }
177
- });
178
- });
179
- },
180
- };
181
- };
182
- exports.WithdrawInvoicesApiFp = WithdrawInvoicesApiFp;
183
- /**
184
- * WithdrawInvoicesApi - factory interface
185
- * @export
186
- */
187
- var WithdrawInvoicesApiFactory = function (configuration, basePath, axios) {
188
- var localVarFp = (0, exports.WithdrawInvoicesApiFp)(configuration);
189
- return {
190
- /**
191
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
192
- * @summary Create the Withdraw invoice
193
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
194
- * @param {string} [authorization] Bearer Token
195
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
196
- * @param {*} [options] Override http request option.
197
- * @throws {RequiredError}
198
- */
199
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
200
- return localVarFp.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
201
- },
202
- };
203
- };
204
- exports.WithdrawInvoicesApiFactory = WithdrawInvoicesApiFactory;
205
- /**
206
- * WithdrawInvoicesApi - object-oriented interface
207
- * @export
208
- * @class WithdrawInvoicesApi
209
- * @extends {BaseAPI}
210
- */
211
- var WithdrawInvoicesApi = /** @class */ (function (_super) {
212
- __extends(WithdrawInvoicesApi, _super);
213
- function WithdrawInvoicesApi() {
214
- return _super !== null && _super.apply(this, arguments) || this;
215
- }
216
- /**
217
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
218
- * @summary Create the Withdraw invoice
219
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
220
- * @param {*} [options] Override http request option.
221
- * @throws {RequiredError}
222
- * @memberof WithdrawInvoicesApi
223
- */
224
- WithdrawInvoicesApi.prototype.createWithdrawInvoice = function (requestParameters, options) {
225
- var _this = this;
226
- return (0, exports.WithdrawInvoicesApiFp)(this.configuration).createWithdrawInvoice(requestParameters.createWithdrawInvoiceRequestDtoRest, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
227
- };
228
- return WithdrawInvoicesApi;
229
- }(base_1.BaseAPI));
230
- exports.WithdrawInvoicesApi = WithdrawInvoicesApi;
@@ -1,50 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService API description
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 CreateWithdrawInvoiceRequestDtoRest
16
- */
17
- export interface CreateWithdrawInvoiceRequestDtoRest {
18
- /**
19
- * Unique identifier of the policy that this object belongs to.
20
- * @type {string}
21
- * @memberof CreateWithdrawInvoiceRequestDtoRest
22
- */
23
- 'policyCode': string;
24
- /**
25
- * Account number.
26
- * @type {string}
27
- * @memberof CreateWithdrawInvoiceRequestDtoRest
28
- */
29
- 'accountNumber': string;
30
- /**
31
- * Policy number.
32
- * @type {string}
33
- * @memberof CreateWithdrawInvoiceRequestDtoRest
34
- */
35
- 'policyNumber': string;
36
- /**
37
- * This is the date from which the invoice interval starts.
38
- * @type {string}
39
- * @memberof CreateWithdrawInvoiceRequestDtoRest
40
- */
41
- 'billingIntervalFrom': string;
42
- /**
43
- * Metadata contains extra information that the object would need for specific cases.
44
- * @type {{ [key: string]: object; }}
45
- * @memberof CreateWithdrawInvoiceRequestDtoRest
46
- */
47
- 'metadata'?: {
48
- [key: string]: object;
49
- };
50
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService API description
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 });
@@ -1,50 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService API description
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 CreateWithdrawInvoiceRequestDto
16
- */
17
- export interface CreateWithdrawInvoiceRequestDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof CreateWithdrawInvoiceRequestDto
22
- */
23
- 'policyCode': string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateWithdrawInvoiceRequestDto
28
- */
29
- 'accountNumber': string;
30
- /**
31
- *
32
- * @type {{ [key: string]: object; }}
33
- * @memberof CreateWithdrawInvoiceRequestDto
34
- */
35
- 'metadata'?: {
36
- [key: string]: object;
37
- };
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof CreateWithdrawInvoiceRequestDto
42
- */
43
- 'billingIntervalFrom': string;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof CreateWithdrawInvoiceRequestDto
48
- */
49
- 'policyNumber': string;
50
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService API description
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 });
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService API description
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 CreateWithdrawInvoiceRequestDtoRest
21
- */
22
- export interface CreateWithdrawInvoiceRequestDtoRest {
23
- /**
24
- * Unique identifier of the policy that this object belongs to.
25
- * @type {string}
26
- * @memberof CreateWithdrawInvoiceRequestDtoRest
27
- */
28
- 'policyCode': string;
29
- /**
30
- * Account number.
31
- * @type {string}
32
- * @memberof CreateWithdrawInvoiceRequestDtoRest
33
- */
34
- 'accountNumber': string;
35
- /**
36
- * Policy number.
37
- * @type {string}
38
- * @memberof CreateWithdrawInvoiceRequestDtoRest
39
- */
40
- 'policyNumber': string;
41
- /**
42
- * This is the date from which the invoice interval starts.
43
- * @type {string}
44
- * @memberof CreateWithdrawInvoiceRequestDtoRest
45
- */
46
- 'billingIntervalFrom': string;
47
- /**
48
- * Metadata contains extra information that the object would need for specific cases.
49
- * @type {{ [key: string]: object; }}
50
- * @memberof CreateWithdrawInvoiceRequestDtoRest
51
- */
52
- 'metadata'?: { [key: string]: object; };
53
- }
54
-
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService API description
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 CreateWithdrawInvoiceRequestDto
21
- */
22
- export interface CreateWithdrawInvoiceRequestDto {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof CreateWithdrawInvoiceRequestDto
27
- */
28
- 'policyCode': string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CreateWithdrawInvoiceRequestDto
33
- */
34
- 'accountNumber': string;
35
- /**
36
- *
37
- * @type {{ [key: string]: object; }}
38
- * @memberof CreateWithdrawInvoiceRequestDto
39
- */
40
- 'metadata'?: { [key: string]: object; };
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof CreateWithdrawInvoiceRequestDto
45
- */
46
- 'billingIntervalFrom': string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof CreateWithdrawInvoiceRequestDto
51
- */
52
- 'policyNumber': string;
53
- }
54
-