@emilgroup/customer-sdk-node 1.9.1 → 1.11.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 (57) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +58 -2
  3. package/api/authentication-api.ts +601 -0
  4. package/api/claims-api.ts +158 -40
  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 +291 -0
  10. package/api/policies-api.ts +16 -16
  11. package/api/products-api.ts +16 -16
  12. package/api.ts +11 -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 +106 -31
  16. package/dist/api/claims-api.js +84 -36
  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 +171 -0
  26. package/dist/api/payments-api.js +312 -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 +7 -1
  32. package/dist/api.js +6 -0
  33. package/dist/models/account-class.d.ts +31 -1
  34. package/dist/models/account-class.js +11 -0
  35. package/dist/models/claim-class.d.ts +132 -0
  36. package/dist/models/claim-class.js +15 -0
  37. package/dist/models/create-account-request-dto.d.ts +39 -9
  38. package/dist/models/create-account-request-dto.js +11 -1
  39. package/dist/models/create-customer-claim-response-class.d.ts +25 -0
  40. package/dist/models/create-customer-claim-response-class.js +15 -0
  41. package/dist/models/index.d.ts +4 -0
  42. package/dist/models/index.js +4 -0
  43. package/dist/models/list-customer-claims-response-class.d.ts +31 -0
  44. package/dist/models/list-customer-claims-response-class.js +15 -0
  45. package/dist/models/update-account-request-dto.d.ts +17 -0
  46. package/dist/models/update-account-request-dto.js +5 -1
  47. package/dist/models/update-customer-claim-response-class.d.ts +25 -0
  48. package/dist/models/update-customer-claim-response-class.js +15 -0
  49. package/models/account-class.ts +35 -1
  50. package/models/claim-class.ts +138 -0
  51. package/models/create-account-request-dto.ts +41 -9
  52. package/models/create-customer-claim-response-class.ts +31 -0
  53. package/models/index.ts +4 -0
  54. package/models/list-customer-claims-response-class.ts +37 -0
  55. package/models/update-account-request-dto.ts +18 -0
  56. package/models/update-customer-claim-response-class.ts +31 -0
  57. package/package.json +1 -1
@@ -12,60 +12,14 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CompletePaymentSetupPspRequest } from '../models';
16
- import { CompletePaymentSetupResponseClass } from '../models';
17
- import { CreateCustomerRequestDto } from '../models';
18
- import { CreateCustomerResponseClass } from '../models';
19
- import { CreatePresignedPostResponseClass } from '../models';
20
- import { ForgotPasswordRequestDto } from '../models';
21
- import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
22
15
  import { GetCustomerResponseClass } from '../models';
23
- import { InitiateAuthRequestDto } from '../models';
24
- import { InitiateAuthResponseClass } from '../models';
25
- import { InitiatePaymentSetupResponseClass } from '../models';
26
- import { InviteByCustomerRequestDto } from '../models';
27
- import { InviteByCustomerResponseClass } from '../models';
28
- import { InviteByTenantResponseClass } from '../models';
29
- import { ListDocumentsResponseClass } from '../models';
30
- import { ListInvoicesResponseClass } from '../models';
31
- import { RefreshTokenDto } from '../models';
32
- import { ResetPasswordByCustomerRequestDto } from '../models';
33
- import { RespondToAuthChallengeClass } from '../models';
34
- import { RespondToAuthChallengeRequestDto } from '../models';
35
16
  import { UpdateCustomerRequestDto } from '../models';
36
17
  import { UpdateCustomerResponseClass } from '../models';
37
- import { VerifyCustomerInviteResponseClass } from '../models';
38
18
  /**
39
19
  * CustomersApi - axios parameter creator
40
20
  * @export
41
21
  */
42
22
  export declare const CustomersApiAxiosParamCreator: (configuration?: Configuration) => {
43
- /**
44
- * Request to complete a payment change by customer.
45
- * @summary Request payment setup complete by customer
46
- * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
47
- * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
48
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
49
- * @param {*} [options] Override http request option.
50
- * @throws {RequiredError}
51
- */
52
- completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
- /**
54
- * 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.
55
- * @summary Register a customer after invite
56
- * @param {CreateCustomerRequestDto} createCustomerRequestDto
57
- * @param {*} [options] Override http request option.
58
- * @throws {RequiredError}
59
- */
60
- createCustomer: (createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
- /**
62
- * Send a customer a reset-password token via email.
63
- * @summary Forgot password by customer
64
- * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
65
- * @param {*} [options] Override http request option.
66
- * @throws {RequiredError}
67
- */
68
- forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
23
  /**
70
24
  * Get customer details.
71
25
  * @summary Get customer details
@@ -76,106 +30,6 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
76
30
  * @throws {RequiredError}
77
31
  */
78
32
  getCustomer: (customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
- /**
80
- * Get a presigned download url for document.
81
- * @summary Get a presigned download url for document
82
- * @param {string} documentCode The document code.
83
- * @param {string} customerCode
84
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
85
- * @param {*} [options] Override http request option.
86
- * @throws {RequiredError}
87
- */
88
- getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
89
- /**
90
- * Start auth process to get new access token, refresh token after successful login.
91
- * @summary Initiate auth by customer
92
- * @param {InitiateAuthRequestDto} initiateAuthRequestDto
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- initiateAuth: (initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
97
- /**
98
- * Request to initiate a payment change by customer.
99
- * @summary Request payment setup initiation by customer
100
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
101
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
- * @param {*} [options] Override http request option.
103
- * @throws {RequiredError}
104
- */
105
- initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
106
- /**
107
- * 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.
108
- * @summary Invite a customer by self
109
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
110
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
111
- * @param {*} [options] Override http request option.
112
- * @throws {RequiredError}
113
- */
114
- inviteByCustomer: (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
115
- /**
116
- * 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.
117
- * @summary Invite a customer by tenant
118
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
119
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
120
- * @param {*} [options] Override http request option.
121
- * @throws {RequiredError}
122
- */
123
- inviteByTenant: (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
124
- /**
125
- * List all the documents of a customer.
126
- * @summary List documents of a customer
127
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
128
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
129
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
130
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
131
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
132
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
133
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
134
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- */
138
- listDocuments: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
139
- /**
140
- * List all the invoices of a customer.
141
- * @summary List invoices of a customer
142
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
143
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
144
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
145
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
146
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
147
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
148
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
149
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
150
- * @param {*} [options] Override http request option.
151
- * @throws {RequiredError}
152
- */
153
- listInvoices: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
154
- /**
155
- * Get new access token, new refresh token.
156
- * @summary Refresh token by customer
157
- * @param {RefreshTokenDto} refreshTokenDto
158
- * @param {string} [cookie] HTTP only cookie that was sent during login.
159
- * @param {*} [options] Override http request option.
160
- * @throws {RequiredError}
161
- */
162
- refreshToken: (refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
163
- /**
164
- * Change customer\'s password using the token provided by the reset password endpoint.
165
- * @summary Change password by customer
166
- * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
167
- * @param {*} [options] Override http request option.
168
- * @throws {RequiredError}
169
- */
170
- resetPassword: (resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
171
- /**
172
- * Respond to the auth challenge to get new access token, refresh token after successful login.
173
- * @summary Respond to auth challenge by customer
174
- * @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
175
- * @param {*} [options] Override http request option.
176
- * @throws {RequiredError}
177
- */
178
- respondToAuthChallenge: (respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
179
33
  /**
180
34
  * Update customer details like phone, email, names, addresses etc.
181
35
  * @summary Update customer details
@@ -186,62 +40,12 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
186
40
  * @throws {RequiredError}
187
41
  */
188
42
  updateCustomer: (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
189
- /**
190
- * API to upload and attach documents to an account.
191
- * @summary Upload account documents
192
- * @param {string} customerCode
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- uploadAccountDocuments: (customerCode: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
197
- /**
198
- * Verify the invite sent to the customer via email.
199
- * @summary Verify customer\'s invite token
200
- * @param {string} inviteToken Invite token sent to the customer
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- */
204
- verifyInvite: (inviteToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
205
- /**
206
- * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
207
- * @summary Verify a reset password token
208
- * @param {string} resetToken reset password token
209
- * @param {*} [options] Override http request option.
210
- * @throws {RequiredError}
211
- */
212
- verifyResetPasswordToken: (resetToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
213
43
  };
214
44
  /**
215
45
  * CustomersApi - functional programming interface
216
46
  * @export
217
47
  */
218
48
  export declare const CustomersApiFp: (configuration?: Configuration) => {
219
- /**
220
- * Request to complete a payment change by customer.
221
- * @summary Request payment setup complete by customer
222
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
223
- * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
224
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
225
- * @param {*} [options] Override http request option.
226
- * @throws {RequiredError}
227
- */
228
- completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
229
- /**
230
- * 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.
231
- * @summary Register a customer after invite
232
- * @param {CreateCustomerRequestDto} createCustomerRequestDto
233
- * @param {*} [options] Override http request option.
234
- * @throws {RequiredError}
235
- */
236
- createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerResponseClass>>;
237
- /**
238
- * Send a customer a reset-password token via email.
239
- * @summary Forgot password by customer
240
- * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
241
- * @param {*} [options] Override http request option.
242
- * @throws {RequiredError}
243
- */
244
- forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
245
49
  /**
246
50
  * Get customer details.
247
51
  * @summary Get customer details
@@ -252,106 +56,6 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
252
56
  * @throws {RequiredError}
253
57
  */
254
58
  getCustomer(customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerResponseClass>>;
255
- /**
256
- * Get a presigned download url for document.
257
- * @summary Get a presigned download url for document
258
- * @param {string} documentCode The document code.
259
- * @param {string} customerCode
260
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
261
- * @param {*} [options] Override http request option.
262
- * @throws {RequiredError}
263
- */
264
- getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
265
- /**
266
- * Start auth process to get new access token, refresh token after successful login.
267
- * @summary Initiate auth by customer
268
- * @param {InitiateAuthRequestDto} initiateAuthRequestDto
269
- * @param {*} [options] Override http request option.
270
- * @throws {RequiredError}
271
- */
272
- initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>>;
273
- /**
274
- * Request to initiate a payment change by customer.
275
- * @summary Request payment setup initiation by customer
276
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
277
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
- * @param {*} [options] Override http request option.
279
- * @throws {RequiredError}
280
- */
281
- initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
282
- /**
283
- * 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.
284
- * @summary Invite a customer by self
285
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
286
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
287
- * @param {*} [options] Override http request option.
288
- * @throws {RequiredError}
289
- */
290
- inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByCustomerResponseClass>>;
291
- /**
292
- * 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.
293
- * @summary Invite a customer by tenant
294
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
295
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
296
- * @param {*} [options] Override http request option.
297
- * @throws {RequiredError}
298
- */
299
- inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>>;
300
- /**
301
- * List all the documents of a customer.
302
- * @summary List documents of a customer
303
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
304
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
305
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
306
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
307
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
308
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
309
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
310
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
311
- * @param {*} [options] Override http request option.
312
- * @throws {RequiredError}
313
- */
314
- listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
315
- /**
316
- * List all the invoices of a customer.
317
- * @summary List invoices of a customer
318
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
319
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
320
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
321
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
322
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
323
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
324
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
325
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
326
- * @param {*} [options] Override http request option.
327
- * @throws {RequiredError}
328
- */
329
- listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
330
- /**
331
- * Get new access token, new refresh token.
332
- * @summary Refresh token by customer
333
- * @param {RefreshTokenDto} refreshTokenDto
334
- * @param {string} [cookie] HTTP only cookie that was sent during login.
335
- * @param {*} [options] Override http request option.
336
- * @throws {RequiredError}
337
- */
338
- refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
339
- /**
340
- * Change customer\'s password using the token provided by the reset password endpoint.
341
- * @summary Change password by customer
342
- * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
343
- * @param {*} [options] Override http request option.
344
- * @throws {RequiredError}
345
- */
346
- resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
347
- /**
348
- * Respond to the auth challenge to get new access token, refresh token after successful login.
349
- * @summary Respond to auth challenge by customer
350
- * @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
351
- * @param {*} [options] Override http request option.
352
- * @throws {RequiredError}
353
- */
354
- respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToAuthChallengeClass>>;
355
59
  /**
356
60
  * Update customer details like phone, email, names, addresses etc.
357
61
  * @summary Update customer details
@@ -362,62 +66,12 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
362
66
  * @throws {RequiredError}
363
67
  */
364
68
  updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
365
- /**
366
- * API to upload and attach documents to an account.
367
- * @summary Upload account documents
368
- * @param {string} customerCode
369
- * @param {*} [options] Override http request option.
370
- * @throws {RequiredError}
371
- */
372
- uploadAccountDocuments(customerCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
373
- /**
374
- * Verify the invite sent to the customer via email.
375
- * @summary Verify customer\'s invite token
376
- * @param {string} inviteToken Invite token sent to the customer
377
- * @param {*} [options] Override http request option.
378
- * @throws {RequiredError}
379
- */
380
- verifyInvite(inviteToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyCustomerInviteResponseClass>>;
381
- /**
382
- * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
383
- * @summary Verify a reset password token
384
- * @param {string} resetToken reset password token
385
- * @param {*} [options] Override http request option.
386
- * @throws {RequiredError}
387
- */
388
- verifyResetPasswordToken(resetToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
389
69
  };
390
70
  /**
391
71
  * CustomersApi - factory interface
392
72
  * @export
393
73
  */
394
74
  export declare const CustomersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
395
- /**
396
- * Request to complete a payment change by customer.
397
- * @summary Request payment setup complete by customer
398
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
399
- * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
400
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
401
- * @param {*} [options] Override http request option.
402
- * @throws {RequiredError}
403
- */
404
- completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
405
- /**
406
- * 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.
407
- * @summary Register a customer after invite
408
- * @param {CreateCustomerRequestDto} createCustomerRequestDto
409
- * @param {*} [options] Override http request option.
410
- * @throws {RequiredError}
411
- */
412
- createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: any): AxiosPromise<CreateCustomerResponseClass>;
413
- /**
414
- * Send a customer a reset-password token via email.
415
- * @summary Forgot password by customer
416
- * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
417
- * @param {*} [options] Override http request option.
418
- * @throws {RequiredError}
419
- */
420
- forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
421
75
  /**
422
76
  * Get customer details.
423
77
  * @summary Get customer details
@@ -428,106 +82,6 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
428
82
  * @throws {RequiredError}
429
83
  */
430
84
  getCustomer(customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetCustomerResponseClass>;
431
- /**
432
- * Get a presigned download url for document.
433
- * @summary Get a presigned download url for document
434
- * @param {string} documentCode The document code.
435
- * @param {string} customerCode
436
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
437
- * @param {*} [options] Override http request option.
438
- * @throws {RequiredError}
439
- */
440
- getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
441
- /**
442
- * Start auth process to get new access token, refresh token after successful login.
443
- * @summary Initiate auth by customer
444
- * @param {InitiateAuthRequestDto} initiateAuthRequestDto
445
- * @param {*} [options] Override http request option.
446
- * @throws {RequiredError}
447
- */
448
- initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass>;
449
- /**
450
- * Request to initiate a payment change by customer.
451
- * @summary Request payment setup initiation by customer
452
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
453
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
454
- * @param {*} [options] Override http request option.
455
- * @throws {RequiredError}
456
- */
457
- initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
458
- /**
459
- * 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.
460
- * @summary Invite a customer by self
461
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
462
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
463
- * @param {*} [options] Override http request option.
464
- * @throws {RequiredError}
465
- */
466
- inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByCustomerResponseClass>;
467
- /**
468
- * 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.
469
- * @summary Invite a customer by tenant
470
- * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
471
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
472
- * @param {*} [options] Override http request option.
473
- * @throws {RequiredError}
474
- */
475
- inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass>;
476
- /**
477
- * List all the documents of a customer.
478
- * @summary List documents of a customer
479
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
480
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
481
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
482
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
483
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
484
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
485
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
486
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
487
- * @param {*} [options] Override http request option.
488
- * @throws {RequiredError}
489
- */
490
- listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
491
- /**
492
- * List all the invoices of a customer.
493
- * @summary List invoices of a customer
494
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
495
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
496
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
497
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
498
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
499
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
500
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
501
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
502
- * @param {*} [options] Override http request option.
503
- * @throws {RequiredError}
504
- */
505
- listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
506
- /**
507
- * Get new access token, new refresh token.
508
- * @summary Refresh token by customer
509
- * @param {RefreshTokenDto} refreshTokenDto
510
- * @param {string} [cookie] HTTP only cookie that was sent during login.
511
- * @param {*} [options] Override http request option.
512
- * @throws {RequiredError}
513
- */
514
- refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void>;
515
- /**
516
- * Change customer\'s password using the token provided by the reset password endpoint.
517
- * @summary Change password by customer
518
- * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
519
- * @param {*} [options] Override http request option.
520
- * @throws {RequiredError}
521
- */
522
- resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: any): AxiosPromise<void>;
523
- /**
524
- * Respond to the auth challenge to get new access token, refresh token after successful login.
525
- * @summary Respond to auth challenge by customer
526
- * @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
527
- * @param {*} [options] Override http request option.
528
- * @throws {RequiredError}
529
- */
530
- respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass>;
531
85
  /**
532
86
  * Update customer details like phone, email, names, addresses etc.
533
87
  * @summary Update customer details
@@ -538,82 +92,7 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
538
92
  * @throws {RequiredError}
539
93
  */
540
94
  updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
541
- /**
542
- * API to upload and attach documents to an account.
543
- * @summary Upload account documents
544
- * @param {string} customerCode
545
- * @param {*} [options] Override http request option.
546
- * @throws {RequiredError}
547
- */
548
- uploadAccountDocuments(customerCode: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
549
- /**
550
- * Verify the invite sent to the customer via email.
551
- * @summary Verify customer\'s invite token
552
- * @param {string} inviteToken Invite token sent to the customer
553
- * @param {*} [options] Override http request option.
554
- * @throws {RequiredError}
555
- */
556
- verifyInvite(inviteToken: string, options?: any): AxiosPromise<VerifyCustomerInviteResponseClass>;
557
- /**
558
- * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
559
- * @summary Verify a reset password token
560
- * @param {string} resetToken reset password token
561
- * @param {*} [options] Override http request option.
562
- * @throws {RequiredError}
563
- */
564
- verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
565
95
  };
566
- /**
567
- * Request parameters for completePaymentSetup operation in CustomersApi.
568
- * @export
569
- * @interface CustomersApiCompletePaymentSetupRequest
570
- */
571
- export interface CustomersApiCompletePaymentSetupRequest {
572
- /**
573
- * The customer code or \&quot;me\&quot; for the currently logged in customer.
574
- * @type {string}
575
- * @memberof CustomersApiCompletePaymentSetup
576
- */
577
- readonly customerCode: string;
578
- /**
579
- *
580
- * @type {CompletePaymentSetupPspRequest}
581
- * @memberof CustomersApiCompletePaymentSetup
582
- */
583
- readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest;
584
- /**
585
- * Bearer Token: provided by the login endpoint under the name accessToken.
586
- * @type {string}
587
- * @memberof CustomersApiCompletePaymentSetup
588
- */
589
- readonly authorization?: string;
590
- }
591
- /**
592
- * Request parameters for createCustomer operation in CustomersApi.
593
- * @export
594
- * @interface CustomersApiCreateCustomerRequest
595
- */
596
- export interface CustomersApiCreateCustomerRequest {
597
- /**
598
- *
599
- * @type {CreateCustomerRequestDto}
600
- * @memberof CustomersApiCreateCustomer
601
- */
602
- readonly createCustomerRequestDto: CreateCustomerRequestDto;
603
- }
604
- /**
605
- * Request parameters for forgotPassword operation in CustomersApi.
606
- * @export
607
- * @interface CustomersApiForgotPasswordRequest
608
- */
609
- export interface CustomersApiForgotPasswordRequest {
610
- /**
611
- *
612
- * @type {ForgotPasswordRequestDto}
613
- * @memberof CustomersApiForgotPassword
614
- */
615
- readonly forgotPasswordRequestDto: ForgotPasswordRequestDto;
616
- }
617
96
  /**
618
97
  * Request parameters for getCustomer operation in CustomersApi.
619
98
  * @export
@@ -639,256 +118,6 @@ export interface CustomersApiGetCustomerRequest {
639
118
  */
640
119
  readonly authorization?: string;
641
120
  }
642
- /**
643
- * Request parameters for getCustomerDocumentDownloadUrl operation in CustomersApi.
644
- * @export
645
- * @interface CustomersApiGetCustomerDocumentDownloadUrlRequest
646
- */
647
- export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
648
- /**
649
- * The document code.
650
- * @type {string}
651
- * @memberof CustomersApiGetCustomerDocumentDownloadUrl
652
- */
653
- readonly documentCode: string;
654
- /**
655
- *
656
- * @type {string}
657
- * @memberof CustomersApiGetCustomerDocumentDownloadUrl
658
- */
659
- readonly customerCode: string;
660
- /**
661
- * Bearer Token: provided by the login endpoint under the name accessToken.
662
- * @type {string}
663
- * @memberof CustomersApiGetCustomerDocumentDownloadUrl
664
- */
665
- readonly authorization?: string;
666
- }
667
- /**
668
- * Request parameters for initiateAuth operation in CustomersApi.
669
- * @export
670
- * @interface CustomersApiInitiateAuthRequest
671
- */
672
- export interface CustomersApiInitiateAuthRequest {
673
- /**
674
- *
675
- * @type {InitiateAuthRequestDto}
676
- * @memberof CustomersApiInitiateAuth
677
- */
678
- readonly initiateAuthRequestDto: InitiateAuthRequestDto;
679
- }
680
- /**
681
- * Request parameters for initiatePaymentSetup operation in CustomersApi.
682
- * @export
683
- * @interface CustomersApiInitiatePaymentSetupRequest
684
- */
685
- export interface CustomersApiInitiatePaymentSetupRequest {
686
- /**
687
- * The customer code or \&quot;me\&quot; for the currently logged in customer.
688
- * @type {string}
689
- * @memberof CustomersApiInitiatePaymentSetup
690
- */
691
- readonly customerCode: string;
692
- /**
693
- * Bearer Token: provided by the login endpoint under the name accessToken.
694
- * @type {string}
695
- * @memberof CustomersApiInitiatePaymentSetup
696
- */
697
- readonly authorization?: string;
698
- }
699
- /**
700
- * Request parameters for inviteByCustomer operation in CustomersApi.
701
- * @export
702
- * @interface CustomersApiInviteByCustomerRequest
703
- */
704
- export interface CustomersApiInviteByCustomerRequest {
705
- /**
706
- *
707
- * @type {InviteByCustomerRequestDto}
708
- * @memberof CustomersApiInviteByCustomer
709
- */
710
- readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto;
711
- /**
712
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
713
- * @type {string}
714
- * @memberof CustomersApiInviteByCustomer
715
- */
716
- readonly authorization?: string;
717
- }
718
- /**
719
- * Request parameters for inviteByTenant operation in CustomersApi.
720
- * @export
721
- * @interface CustomersApiInviteByTenantRequest
722
- */
723
- export interface CustomersApiInviteByTenantRequest {
724
- /**
725
- *
726
- * @type {InviteByCustomerRequestDto}
727
- * @memberof CustomersApiInviteByTenant
728
- */
729
- readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto;
730
- /**
731
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
732
- * @type {string}
733
- * @memberof CustomersApiInviteByTenant
734
- */
735
- readonly authorization?: string;
736
- }
737
- /**
738
- * Request parameters for listDocuments operation in CustomersApi.
739
- * @export
740
- * @interface CustomersApiListDocumentsRequest
741
- */
742
- export interface CustomersApiListDocumentsRequest {
743
- /**
744
- * The customer code or \&quot;me\&quot; for the currently logged in customer.
745
- * @type {string}
746
- * @memberof CustomersApiListDocuments
747
- */
748
- readonly customerCode: string;
749
- /**
750
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
751
- * @type {any}
752
- * @memberof CustomersApiListDocuments
753
- */
754
- readonly pageSize?: any;
755
- /**
756
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
757
- * @type {any}
758
- * @memberof CustomersApiListDocuments
759
- */
760
- readonly pageToken?: any;
761
- /**
762
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
763
- * @type {any}
764
- * @memberof CustomersApiListDocuments
765
- */
766
- readonly filter?: any;
767
- /**
768
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
769
- * @type {any}
770
- * @memberof CustomersApiListDocuments
771
- */
772
- readonly search?: any;
773
- /**
774
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
775
- * @type {any}
776
- * @memberof CustomersApiListDocuments
777
- */
778
- readonly order?: any;
779
- /**
780
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
781
- * @type {any}
782
- * @memberof CustomersApiListDocuments
783
- */
784
- readonly expand?: any;
785
- /**
786
- * Bearer Token: provided by the login endpoint under the name accessToken.
787
- * @type {string}
788
- * @memberof CustomersApiListDocuments
789
- */
790
- readonly authorization?: string;
791
- }
792
- /**
793
- * Request parameters for listInvoices operation in CustomersApi.
794
- * @export
795
- * @interface CustomersApiListInvoicesRequest
796
- */
797
- export interface CustomersApiListInvoicesRequest {
798
- /**
799
- * The customer code or \&quot;me\&quot; for the currently logged in customer.
800
- * @type {string}
801
- * @memberof CustomersApiListInvoices
802
- */
803
- readonly customerCode: string;
804
- /**
805
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
806
- * @type {any}
807
- * @memberof CustomersApiListInvoices
808
- */
809
- readonly pageSize?: any;
810
- /**
811
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
812
- * @type {any}
813
- * @memberof CustomersApiListInvoices
814
- */
815
- readonly pageToken?: any;
816
- /**
817
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
818
- * @type {any}
819
- * @memberof CustomersApiListInvoices
820
- */
821
- readonly filter?: any;
822
- /**
823
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
824
- * @type {any}
825
- * @memberof CustomersApiListInvoices
826
- */
827
- readonly search?: any;
828
- /**
829
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
830
- * @type {any}
831
- * @memberof CustomersApiListInvoices
832
- */
833
- readonly order?: any;
834
- /**
835
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
836
- * @type {any}
837
- * @memberof CustomersApiListInvoices
838
- */
839
- readonly expand?: any;
840
- /**
841
- * Bearer Token: provided by the login endpoint under the name accessToken.
842
- * @type {string}
843
- * @memberof CustomersApiListInvoices
844
- */
845
- readonly authorization?: string;
846
- }
847
- /**
848
- * Request parameters for refreshToken operation in CustomersApi.
849
- * @export
850
- * @interface CustomersApiRefreshTokenRequest
851
- */
852
- export interface CustomersApiRefreshTokenRequest {
853
- /**
854
- *
855
- * @type {RefreshTokenDto}
856
- * @memberof CustomersApiRefreshToken
857
- */
858
- readonly refreshTokenDto: RefreshTokenDto;
859
- /**
860
- * HTTP only cookie that was sent during login.
861
- * @type {string}
862
- * @memberof CustomersApiRefreshToken
863
- */
864
- readonly cookie?: string;
865
- }
866
- /**
867
- * Request parameters for resetPassword operation in CustomersApi.
868
- * @export
869
- * @interface CustomersApiResetPasswordRequest
870
- */
871
- export interface CustomersApiResetPasswordRequest {
872
- /**
873
- *
874
- * @type {ResetPasswordByCustomerRequestDto}
875
- * @memberof CustomersApiResetPassword
876
- */
877
- readonly resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto;
878
- }
879
- /**
880
- * Request parameters for respondToAuthChallenge operation in CustomersApi.
881
- * @export
882
- * @interface CustomersApiRespondToAuthChallengeRequest
883
- */
884
- export interface CustomersApiRespondToAuthChallengeRequest {
885
- /**
886
- *
887
- * @type {RespondToAuthChallengeRequestDto}
888
- * @memberof CustomersApiRespondToAuthChallenge
889
- */
890
- readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto;
891
- }
892
121
  /**
893
122
  * Request parameters for updateCustomer operation in CustomersApi.
894
123
  * @export
@@ -914,45 +143,6 @@ export interface CustomersApiUpdateCustomerRequest {
914
143
  */
915
144
  readonly authorization?: string;
916
145
  }
917
- /**
918
- * Request parameters for uploadAccountDocuments operation in CustomersApi.
919
- * @export
920
- * @interface CustomersApiUploadAccountDocumentsRequest
921
- */
922
- export interface CustomersApiUploadAccountDocumentsRequest {
923
- /**
924
- *
925
- * @type {string}
926
- * @memberof CustomersApiUploadAccountDocuments
927
- */
928
- readonly customerCode: string;
929
- }
930
- /**
931
- * Request parameters for verifyInvite operation in CustomersApi.
932
- * @export
933
- * @interface CustomersApiVerifyInviteRequest
934
- */
935
- export interface CustomersApiVerifyInviteRequest {
936
- /**
937
- * Invite token sent to the customer
938
- * @type {string}
939
- * @memberof CustomersApiVerifyInvite
940
- */
941
- readonly inviteToken: string;
942
- }
943
- /**
944
- * Request parameters for verifyResetPasswordToken operation in CustomersApi.
945
- * @export
946
- * @interface CustomersApiVerifyResetPasswordTokenRequest
947
- */
948
- export interface CustomersApiVerifyResetPasswordTokenRequest {
949
- /**
950
- * reset password token
951
- * @type {string}
952
- * @memberof CustomersApiVerifyResetPasswordToken
953
- */
954
- readonly resetToken: string;
955
- }
956
146
  /**
957
147
  * CustomersApi - object-oriented interface
958
148
  * @export
@@ -960,33 +150,6 @@ export interface CustomersApiVerifyResetPasswordTokenRequest {
960
150
  * @extends {BaseAPI}
961
151
  */
962
152
  export declare class CustomersApi extends BaseAPI {
963
- /**
964
- * Request to complete a payment change by customer.
965
- * @summary Request payment setup complete by customer
966
- * @param {CustomersApiCompletePaymentSetupRequest} requestParameters Request parameters.
967
- * @param {*} [options] Override http request option.
968
- * @throws {RequiredError}
969
- * @memberof CustomersApi
970
- */
971
- completePaymentSetup(requestParameters: CustomersApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
972
- /**
973
- * 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.
974
- * @summary Register a customer after invite
975
- * @param {CustomersApiCreateCustomerRequest} requestParameters Request parameters.
976
- * @param {*} [options] Override http request option.
977
- * @throws {RequiredError}
978
- * @memberof CustomersApi
979
- */
980
- createCustomer(requestParameters: CustomersApiCreateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomerResponseClass, any>>;
981
- /**
982
- * Send a customer a reset-password token via email.
983
- * @summary Forgot password by customer
984
- * @param {CustomersApiForgotPasswordRequest} requestParameters Request parameters.
985
- * @param {*} [options] Override http request option.
986
- * @throws {RequiredError}
987
- * @memberof CustomersApi
988
- */
989
- forgotPassword(requestParameters: CustomersApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
990
153
  /**
991
154
  * Get customer details.
992
155
  * @summary Get customer details
@@ -996,96 +159,6 @@ export declare class CustomersApi extends BaseAPI {
996
159
  * @memberof CustomersApi
997
160
  */
998
161
  getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomerResponseClass, any>>;
999
- /**
1000
- * Get a presigned download url for document.
1001
- * @summary Get a presigned download url for document
1002
- * @param {CustomersApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
1003
- * @param {*} [options] Override http request option.
1004
- * @throws {RequiredError}
1005
- * @memberof CustomersApi
1006
- */
1007
- getCustomerDocumentDownloadUrl(requestParameters: CustomersApiGetCustomerDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomerDocumentDownloadUrlResponseClass, any>>;
1008
- /**
1009
- * Start auth process to get new access token, refresh token after successful login.
1010
- * @summary Initiate auth by customer
1011
- * @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
1012
- * @param {*} [options] Override http request option.
1013
- * @throws {RequiredError}
1014
- * @memberof CustomersApi
1015
- */
1016
- initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateAuthResponseClass, any>>;
1017
- /**
1018
- * Request to initiate a payment change by customer.
1019
- * @summary Request payment setup initiation by customer
1020
- * @param {CustomersApiInitiatePaymentSetupRequest} requestParameters Request parameters.
1021
- * @param {*} [options] Override http request option.
1022
- * @throws {RequiredError}
1023
- * @memberof CustomersApi
1024
- */
1025
- initiatePaymentSetup(requestParameters: CustomersApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
1026
- /**
1027
- * 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.
1028
- * @summary Invite a customer by self
1029
- * @param {CustomersApiInviteByCustomerRequest} requestParameters Request parameters.
1030
- * @param {*} [options] Override http request option.
1031
- * @throws {RequiredError}
1032
- * @memberof CustomersApi
1033
- */
1034
- inviteByCustomer(requestParameters: CustomersApiInviteByCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByCustomerResponseClass, any>>;
1035
- /**
1036
- * 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.
1037
- * @summary Invite a customer by tenant
1038
- * @param {CustomersApiInviteByTenantRequest} requestParameters Request parameters.
1039
- * @param {*} [options] Override http request option.
1040
- * @throws {RequiredError}
1041
- * @memberof CustomersApi
1042
- */
1043
- inviteByTenant(requestParameters: CustomersApiInviteByTenantRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByTenantResponseClass, any>>;
1044
- /**
1045
- * List all the documents of a customer.
1046
- * @summary List documents of a customer
1047
- * @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
1048
- * @param {*} [options] Override http request option.
1049
- * @throws {RequiredError}
1050
- * @memberof CustomersApi
1051
- */
1052
- listDocuments(requestParameters: CustomersApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any>>;
1053
- /**
1054
- * List all the invoices of a customer.
1055
- * @summary List invoices of a customer
1056
- * @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
1057
- * @param {*} [options] Override http request option.
1058
- * @throws {RequiredError}
1059
- * @memberof CustomersApi
1060
- */
1061
- listInvoices(requestParameters: CustomersApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any>>;
1062
- /**
1063
- * Get new access token, new refresh token.
1064
- * @summary Refresh token by customer
1065
- * @param {CustomersApiRefreshTokenRequest} requestParameters Request parameters.
1066
- * @param {*} [options] Override http request option.
1067
- * @throws {RequiredError}
1068
- * @memberof CustomersApi
1069
- */
1070
- refreshToken(requestParameters: CustomersApiRefreshTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1071
- /**
1072
- * Change customer\'s password using the token provided by the reset password endpoint.
1073
- * @summary Change password by customer
1074
- * @param {CustomersApiResetPasswordRequest} requestParameters Request parameters.
1075
- * @param {*} [options] Override http request option.
1076
- * @throws {RequiredError}
1077
- * @memberof CustomersApi
1078
- */
1079
- resetPassword(requestParameters: CustomersApiResetPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1080
- /**
1081
- * Respond to the auth challenge to get new access token, refresh token after successful login.
1082
- * @summary Respond to auth challenge by customer
1083
- * @param {CustomersApiRespondToAuthChallengeRequest} requestParameters Request parameters.
1084
- * @param {*} [options] Override http request option.
1085
- * @throws {RequiredError}
1086
- * @memberof CustomersApi
1087
- */
1088
- respondToAuthChallenge(requestParameters: CustomersApiRespondToAuthChallengeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RespondToAuthChallengeClass, any>>;
1089
162
  /**
1090
163
  * Update customer details like phone, email, names, addresses etc.
1091
164
  * @summary Update customer details
@@ -1095,31 +168,4 @@ export declare class CustomersApi extends BaseAPI {
1095
168
  * @memberof CustomersApi
1096
169
  */
1097
170
  updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCustomerResponseClass, any>>;
1098
- /**
1099
- * API to upload and attach documents to an account.
1100
- * @summary Upload account documents
1101
- * @param {CustomersApiUploadAccountDocumentsRequest} requestParameters Request parameters.
1102
- * @param {*} [options] Override http request option.
1103
- * @throws {RequiredError}
1104
- * @memberof CustomersApi
1105
- */
1106
- uploadAccountDocuments(requestParameters: CustomersApiUploadAccountDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
1107
- /**
1108
- * Verify the invite sent to the customer via email.
1109
- * @summary Verify customer\'s invite token
1110
- * @param {CustomersApiVerifyInviteRequest} requestParameters Request parameters.
1111
- * @param {*} [options] Override http request option.
1112
- * @throws {RequiredError}
1113
- * @memberof CustomersApi
1114
- */
1115
- verifyInvite(requestParameters: CustomersApiVerifyInviteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyCustomerInviteResponseClass, any>>;
1116
- /**
1117
- * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
1118
- * @summary Verify a reset password token
1119
- * @param {CustomersApiVerifyResetPasswordTokenRequest} requestParameters Request parameters.
1120
- * @param {*} [options] Override http request option.
1121
- * @throws {RequiredError}
1122
- * @memberof CustomersApi
1123
- */
1124
- verifyResetPasswordToken(requestParameters: CustomersApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1125
171
  }