@emilgroup/customer-sdk-node 1.9.1 → 1.10.0

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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/authentication-api.ts +601 -0
  4. package/api/claims-api.ts +16 -16
  5. package/api/customers-api.ts +72 -1770
  6. package/api/documents-api.ts +442 -0
  7. package/api/invites-api.ts +443 -0
  8. package/api/invoices-api.ts +245 -0
  9. package/api/payments-api.ts +277 -0
  10. package/api/policies-api.ts +16 -16
  11. package/api/products-api.ts +16 -16
  12. package/api.ts +10 -0
  13. package/dist/api/authentication-api.d.ts +332 -0
  14. package/dist/api/authentication-api.js +604 -0
  15. package/dist/api/claims-api.d.ts +16 -16
  16. package/dist/api/claims-api.js +12 -12
  17. package/dist/api/customers-api.d.ts +0 -954
  18. package/dist/api/customers-api.js +20 -1381
  19. package/dist/api/documents-api.d.ts +262 -0
  20. package/dist/api/documents-api.js +417 -0
  21. package/dist/api/invites-api.d.ts +248 -0
  22. package/dist/api/invites-api.js +456 -0
  23. package/dist/api/invoices-api.d.ts +150 -0
  24. package/dist/api/invoices-api.js +253 -0
  25. package/dist/api/payments-api.d.ts +162 -0
  26. package/dist/api/payments-api.js +306 -0
  27. package/dist/api/policies-api.d.ts +16 -16
  28. package/dist/api/policies-api.js +12 -12
  29. package/dist/api/products-api.d.ts +16 -16
  30. package/dist/api/products-api.js +12 -12
  31. package/dist/api.d.ts +5 -0
  32. package/dist/api.js +5 -0
  33. package/dist/models/account-class.d.ts +26 -1
  34. package/dist/models/account-class.js +7 -0
  35. package/dist/models/create-account-request-dto.d.ts +39 -9
  36. package/dist/models/create-account-request-dto.js +11 -1
  37. package/models/account-class.ts +29 -1
  38. package/models/create-account-request-dto.ts +41 -9
  39. package/package.json +2 -2
@@ -0,0 +1,443 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 { CreateCustomerRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateCustomerResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { InviteByCustomerRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { InviteByCustomerResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { InviteByTenantResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { VerifyCustomerInviteResponseClass } from '../models';
35
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * InvitesApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const InvitesApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
47
+ * @summary Register a customer after invite
48
+ * @param {CreateCustomerRequestDto} createCustomerRequestDto
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ createCustomer: async (createCustomerRequestDto: CreateCustomerRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
53
+ // verify required parameter 'createCustomerRequestDto' is not null or undefined
54
+ assertParamExists('createCustomer', 'createCustomerRequestDto', createCustomerRequestDto)
55
+ const localVarPath = `/v1/customers/create`;
56
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
+ let baseOptions;
59
+ let baseAccessToken;
60
+ if (configuration) {
61
+ baseOptions = configuration.baseOptions;
62
+ baseAccessToken = configuration.accessToken;
63
+ }
64
+
65
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
66
+ const localVarHeaderParameter = {} as any;
67
+ const localVarQueryParameter = {} as any;
68
+
69
+
70
+
71
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72
+
73
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
+ localVarRequestOptions.data = serializeDataIfNeeded(createCustomerRequestDto, localVarRequestOptions, configuration)
77
+
78
+ return {
79
+ url: toPathString(localVarUrlObj),
80
+ options: localVarRequestOptions,
81
+ };
82
+ },
83
+ /**
84
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
85
+ * @summary Invite a customer by self
86
+ * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
87
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ inviteByCustomer: async (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
+ // verify required parameter 'inviteByCustomerRequestDto' is not null or undefined
93
+ assertParamExists('inviteByCustomer', 'inviteByCustomerRequestDto', inviteByCustomerRequestDto)
94
+ const localVarPath = `/v1/customers/invites/by-customer`;
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ let baseAccessToken;
99
+ if (configuration) {
100
+ baseOptions = configuration.baseOptions;
101
+ baseAccessToken = configuration.accessToken;
102
+ }
103
+
104
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
105
+ const localVarHeaderParameter = {} as any;
106
+ const localVarQueryParameter = {} as any;
107
+
108
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
109
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
110
+ }
111
+
112
+
113
+
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+
116
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
119
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteByCustomerRequestDto, localVarRequestOptions, configuration)
120
+
121
+ return {
122
+ url: toPathString(localVarUrlObj),
123
+ options: localVarRequestOptions,
124
+ };
125
+ },
126
+ /**
127
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
128
+ * @summary Invite a customer by tenant
129
+ * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
130
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ inviteByTenant: async (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
135
+ // verify required parameter 'inviteByCustomerRequestDto' is not null or undefined
136
+ assertParamExists('inviteByTenant', 'inviteByCustomerRequestDto', inviteByCustomerRequestDto)
137
+ const localVarPath = `/v1/customers/invites/by-tenant`;
138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
140
+ let baseOptions;
141
+ let baseAccessToken;
142
+ if (configuration) {
143
+ baseOptions = configuration.baseOptions;
144
+ baseAccessToken = configuration.accessToken;
145
+ }
146
+
147
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
148
+ const localVarHeaderParameter = {} as any;
149
+ const localVarQueryParameter = {} as any;
150
+
151
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
152
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
153
+ }
154
+
155
+
156
+
157
+ localVarHeaderParameter['Content-Type'] = 'application/json';
158
+
159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
161
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
162
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteByCustomerRequestDto, localVarRequestOptions, configuration)
163
+
164
+ return {
165
+ url: toPathString(localVarUrlObj),
166
+ options: localVarRequestOptions,
167
+ };
168
+ },
169
+ /**
170
+ * Verify the invite sent to the customer via email.
171
+ * @summary Verify customer\'s invite token
172
+ * @param {string} inviteToken Invite token sent to the customer
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ verifyInvite: async (inviteToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
177
+ // verify required parameter 'inviteToken' is not null or undefined
178
+ assertParamExists('verifyInvite', 'inviteToken', inviteToken)
179
+ const localVarPath = `/v1/customers/invites/verify`;
180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
181
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
182
+ let baseOptions;
183
+ let baseAccessToken;
184
+ if (configuration) {
185
+ baseOptions = configuration.baseOptions;
186
+ baseAccessToken = configuration.accessToken;
187
+ }
188
+
189
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
190
+ const localVarHeaderParameter = {} as any;
191
+ const localVarQueryParameter = {} as any;
192
+
193
+ if (inviteToken !== undefined) {
194
+ localVarQueryParameter['inviteToken'] = inviteToken;
195
+ }
196
+
197
+
198
+
199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
202
+
203
+ return {
204
+ url: toPathString(localVarUrlObj),
205
+ options: localVarRequestOptions,
206
+ };
207
+ },
208
+ }
209
+ };
210
+
211
+ /**
212
+ * InvitesApi - functional programming interface
213
+ * @export
214
+ */
215
+ export const InvitesApiFp = function(configuration?: Configuration) {
216
+ const localVarAxiosParamCreator = InvitesApiAxiosParamCreator(configuration)
217
+ return {
218
+ /**
219
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
220
+ * @summary Register a customer after invite
221
+ * @param {CreateCustomerRequestDto} createCustomerRequestDto
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ async createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerResponseClass>> {
226
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomer(createCustomerRequestDto, options);
227
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
228
+ },
229
+ /**
230
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
231
+ * @summary Invite a customer by self
232
+ * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
233
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ async inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByCustomerResponseClass>> {
238
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByCustomer(inviteByCustomerRequestDto, authorization, options);
239
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
240
+ },
241
+ /**
242
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
243
+ * @summary Invite a customer by tenant
244
+ * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
245
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ async inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>> {
250
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByTenant(inviteByCustomerRequestDto, authorization, options);
251
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
252
+ },
253
+ /**
254
+ * Verify the invite sent to the customer via email.
255
+ * @summary Verify customer\'s invite token
256
+ * @param {string} inviteToken Invite token sent to the customer
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ async verifyInvite(inviteToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyCustomerInviteResponseClass>> {
261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyInvite(inviteToken, options);
262
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
263
+ },
264
+ }
265
+ };
266
+
267
+ /**
268
+ * InvitesApi - factory interface
269
+ * @export
270
+ */
271
+ export const InvitesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
272
+ const localVarFp = InvitesApiFp(configuration)
273
+ return {
274
+ /**
275
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
276
+ * @summary Register a customer after invite
277
+ * @param {CreateCustomerRequestDto} createCustomerRequestDto
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: any): AxiosPromise<CreateCustomerResponseClass> {
282
+ return localVarFp.createCustomer(createCustomerRequestDto, options).then((request) => request(axios, basePath));
283
+ },
284
+ /**
285
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
286
+ * @summary Invite a customer by self
287
+ * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
288
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByCustomerResponseClass> {
293
+ return localVarFp.inviteByCustomer(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
294
+ },
295
+ /**
296
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
297
+ * @summary Invite a customer by tenant
298
+ * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
299
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass> {
304
+ return localVarFp.inviteByTenant(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
305
+ },
306
+ /**
307
+ * Verify the invite sent to the customer via email.
308
+ * @summary Verify customer\'s invite token
309
+ * @param {string} inviteToken Invite token sent to the customer
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ verifyInvite(inviteToken: string, options?: any): AxiosPromise<VerifyCustomerInviteResponseClass> {
314
+ return localVarFp.verifyInvite(inviteToken, options).then((request) => request(axios, basePath));
315
+ },
316
+ };
317
+ };
318
+
319
+ /**
320
+ * Request parameters for createCustomer operation in InvitesApi.
321
+ * @export
322
+ * @interface InvitesApiCreateCustomerRequest
323
+ */
324
+ export interface InvitesApiCreateCustomerRequest {
325
+ /**
326
+ *
327
+ * @type {CreateCustomerRequestDto}
328
+ * @memberof InvitesApiCreateCustomer
329
+ */
330
+ readonly createCustomerRequestDto: CreateCustomerRequestDto
331
+ }
332
+
333
+ /**
334
+ * Request parameters for inviteByCustomer operation in InvitesApi.
335
+ * @export
336
+ * @interface InvitesApiInviteByCustomerRequest
337
+ */
338
+ export interface InvitesApiInviteByCustomerRequest {
339
+ /**
340
+ *
341
+ * @type {InviteByCustomerRequestDto}
342
+ * @memberof InvitesApiInviteByCustomer
343
+ */
344
+ readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
345
+
346
+ /**
347
+ * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
348
+ * @type {string}
349
+ * @memberof InvitesApiInviteByCustomer
350
+ */
351
+ readonly authorization?: string
352
+ }
353
+
354
+ /**
355
+ * Request parameters for inviteByTenant operation in InvitesApi.
356
+ * @export
357
+ * @interface InvitesApiInviteByTenantRequest
358
+ */
359
+ export interface InvitesApiInviteByTenantRequest {
360
+ /**
361
+ *
362
+ * @type {InviteByCustomerRequestDto}
363
+ * @memberof InvitesApiInviteByTenant
364
+ */
365
+ readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
366
+
367
+ /**
368
+ * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
369
+ * @type {string}
370
+ * @memberof InvitesApiInviteByTenant
371
+ */
372
+ readonly authorization?: string
373
+ }
374
+
375
+ /**
376
+ * Request parameters for verifyInvite operation in InvitesApi.
377
+ * @export
378
+ * @interface InvitesApiVerifyInviteRequest
379
+ */
380
+ export interface InvitesApiVerifyInviteRequest {
381
+ /**
382
+ * Invite token sent to the customer
383
+ * @type {string}
384
+ * @memberof InvitesApiVerifyInvite
385
+ */
386
+ readonly inviteToken: string
387
+ }
388
+
389
+ /**
390
+ * InvitesApi - object-oriented interface
391
+ * @export
392
+ * @class InvitesApi
393
+ * @extends {BaseAPI}
394
+ */
395
+ export class InvitesApi extends BaseAPI {
396
+ /**
397
+ * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
398
+ * @summary Register a customer after invite
399
+ * @param {InvitesApiCreateCustomerRequest} requestParameters Request parameters.
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ * @memberof InvitesApi
403
+ */
404
+ public createCustomer(requestParameters: InvitesApiCreateCustomerRequest, options?: AxiosRequestConfig) {
405
+ return InvitesApiFp(this.configuration).createCustomer(requestParameters.createCustomerRequestDto, options).then((request) => request(this.axios, this.basePath));
406
+ }
407
+
408
+ /**
409
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
410
+ * @summary Invite a customer by self
411
+ * @param {InvitesApiInviteByCustomerRequest} requestParameters Request parameters.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ * @memberof InvitesApi
415
+ */
416
+ public inviteByCustomer(requestParameters: InvitesApiInviteByCustomerRequest, options?: AxiosRequestConfig) {
417
+ return InvitesApiFp(this.configuration).inviteByCustomer(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
418
+ }
419
+
420
+ /**
421
+ * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
422
+ * @summary Invite a customer by tenant
423
+ * @param {InvitesApiInviteByTenantRequest} requestParameters Request parameters.
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ * @memberof InvitesApi
427
+ */
428
+ public inviteByTenant(requestParameters: InvitesApiInviteByTenantRequest, options?: AxiosRequestConfig) {
429
+ return InvitesApiFp(this.configuration).inviteByTenant(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
430
+ }
431
+
432
+ /**
433
+ * Verify the invite sent to the customer via email.
434
+ * @summary Verify customer\'s invite token
435
+ * @param {InvitesApiVerifyInviteRequest} requestParameters Request parameters.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ * @memberof InvitesApi
439
+ */
440
+ public verifyInvite(requestParameters: InvitesApiVerifyInviteRequest, options?: AxiosRequestConfig) {
441
+ return InvitesApiFp(this.configuration).verifyInvite(requestParameters.inviteToken, options).then((request) => request(this.axios, this.basePath));
442
+ }
443
+ }