@emilgroup/customer-sdk-node 1.9.0 → 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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/authentication-api.ts +601 -0
- package/api/claims-api.ts +16 -16
- package/api/customers-api.ts +72 -1770
- package/api/documents-api.ts +442 -0
- package/api/invites-api.ts +443 -0
- package/api/invoices-api.ts +245 -0
- package/api/payments-api.ts +277 -0
- package/api/policies-api.ts +16 -16
- package/api/products-api.ts +19 -19
- package/api.ts +10 -0
- package/dist/api/authentication-api.d.ts +332 -0
- package/dist/api/authentication-api.js +604 -0
- package/dist/api/claims-api.d.ts +16 -16
- package/dist/api/claims-api.js +12 -12
- package/dist/api/customers-api.d.ts +0 -954
- package/dist/api/customers-api.js +20 -1381
- package/dist/api/documents-api.d.ts +262 -0
- package/dist/api/documents-api.js +417 -0
- package/dist/api/invites-api.d.ts +248 -0
- package/dist/api/invites-api.js +456 -0
- package/dist/api/invoices-api.d.ts +150 -0
- package/dist/api/invoices-api.js +253 -0
- package/dist/api/payments-api.d.ts +162 -0
- package/dist/api/payments-api.js +306 -0
- package/dist/api/policies-api.d.ts +16 -16
- package/dist/api/policies-api.js +12 -12
- package/dist/api/products-api.d.ts +20 -20
- package/dist/api/products-api.js +12 -12
- package/dist/api.d.ts +5 -0
- package/dist/api.js +5 -0
- package/dist/models/account-class.d.ts +26 -1
- package/dist/models/account-class.js +7 -0
- package/dist/models/create-account-request-dto.d.ts +39 -9
- package/dist/models/create-account-request-dto.js +11 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/list-policies-response-class.d.ts +4 -4
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/models/account-class.ts +29 -1
- package/models/create-account-request-dto.ts +41 -9
- package/models/index.ts +1 -0
- package/models/list-policies-response-class.ts +4 -4
- package/models/list-products-response-class.ts +37 -0
- package/package.json +2 -2
package/api/customers-api.ts
CHANGED
|
@@ -21,51 +21,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CompletePaymentSetupPspRequest } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { CreateCustomerRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { CreateCustomerResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { ForgotPasswordRequestDto } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
24
|
import { GetCustomerResponseClass } from '../models';
|
|
39
25
|
// @ts-ignore
|
|
40
|
-
import { InitiateAuthRequestDto } from '../models';
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
import { InitiateAuthResponseClass } from '../models';
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
import { InviteByCustomerRequestDto } from '../models';
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
import { InviteByCustomerResponseClass } from '../models';
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
import { InviteByTenantResponseClass } from '../models';
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
import { ListDocumentsResponseClass } from '../models';
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
import { ListInvoicesResponseClass } from '../models';
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
import { RefreshTokenDto } from '../models';
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
import { ResetPasswordByCustomerRequestDto } from '../models';
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
import { RespondToAuthChallengeClass } from '../models';
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
import { RespondToAuthChallengeRequestDto } from '../models';
|
|
63
|
-
// @ts-ignore
|
|
64
26
|
import { UpdateCustomerRequestDto } from '../models';
|
|
65
27
|
// @ts-ignore
|
|
66
28
|
import { UpdateCustomerResponseClass } from '../models';
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
import { VerifyCustomerInviteResponseClass } from '../models';
|
|
69
29
|
// URLSearchParams not necessarily used
|
|
70
30
|
// @ts-ignore
|
|
71
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -76,129 +36,6 @@ const FormData = require('form-data');
|
|
|
76
36
|
*/
|
|
77
37
|
export const CustomersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
78
38
|
return {
|
|
79
|
-
/**
|
|
80
|
-
* Request to complete a payment change by customer.
|
|
81
|
-
* @summary Request payment setup complete by customer
|
|
82
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
83
|
-
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
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
|
-
completePaymentSetup: async (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
89
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
90
|
-
assertParamExists('completePaymentSetup', 'customerCode', customerCode)
|
|
91
|
-
// verify required parameter 'completePaymentSetupPspRequest' is not null or undefined
|
|
92
|
-
assertParamExists('completePaymentSetup', 'completePaymentSetupPspRequest', completePaymentSetupPspRequest)
|
|
93
|
-
const localVarPath = `/v1/customers/{customerCode}/payment_setup/complete`
|
|
94
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
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(completePaymentSetupPspRequest, localVarRequestOptions, configuration)
|
|
120
|
-
|
|
121
|
-
return {
|
|
122
|
-
url: toPathString(localVarUrlObj),
|
|
123
|
-
options: localVarRequestOptions,
|
|
124
|
-
};
|
|
125
|
-
},
|
|
126
|
-
/**
|
|
127
|
-
* 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.
|
|
128
|
-
* @summary Register a customer after invite
|
|
129
|
-
* @param {CreateCustomerRequestDto} createCustomerRequestDto
|
|
130
|
-
* @param {*} [options] Override http request option.
|
|
131
|
-
* @throws {RequiredError}
|
|
132
|
-
*/
|
|
133
|
-
createCustomer: async (createCustomerRequestDto: CreateCustomerRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
134
|
-
// verify required parameter 'createCustomerRequestDto' is not null or undefined
|
|
135
|
-
assertParamExists('createCustomer', 'createCustomerRequestDto', createCustomerRequestDto)
|
|
136
|
-
const localVarPath = `/v1/customers/create`;
|
|
137
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
139
|
-
let baseOptions;
|
|
140
|
-
let baseAccessToken;
|
|
141
|
-
if (configuration) {
|
|
142
|
-
baseOptions = configuration.baseOptions;
|
|
143
|
-
baseAccessToken = configuration.accessToken;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
147
|
-
const localVarHeaderParameter = {} as any;
|
|
148
|
-
const localVarQueryParameter = {} as any;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
-
|
|
154
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
155
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
157
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createCustomerRequestDto, localVarRequestOptions, configuration)
|
|
158
|
-
|
|
159
|
-
return {
|
|
160
|
-
url: toPathString(localVarUrlObj),
|
|
161
|
-
options: localVarRequestOptions,
|
|
162
|
-
};
|
|
163
|
-
},
|
|
164
|
-
/**
|
|
165
|
-
* Send a customer a reset-password token via email.
|
|
166
|
-
* @summary Forgot password by customer
|
|
167
|
-
* @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
|
|
168
|
-
* @param {*} [options] Override http request option.
|
|
169
|
-
* @throws {RequiredError}
|
|
170
|
-
*/
|
|
171
|
-
forgotPassword: async (forgotPasswordRequestDto: ForgotPasswordRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
172
|
-
// verify required parameter 'forgotPasswordRequestDto' is not null or undefined
|
|
173
|
-
assertParamExists('forgotPassword', 'forgotPasswordRequestDto', forgotPasswordRequestDto)
|
|
174
|
-
const localVarPath = `/v1/customers/forgot-password`;
|
|
175
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
176
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
177
|
-
let baseOptions;
|
|
178
|
-
let baseAccessToken;
|
|
179
|
-
if (configuration) {
|
|
180
|
-
baseOptions = configuration.baseOptions;
|
|
181
|
-
baseAccessToken = configuration.accessToken;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
185
|
-
const localVarHeaderParameter = {} as any;
|
|
186
|
-
const localVarQueryParameter = {} as any;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
191
|
-
|
|
192
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
193
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
194
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
195
|
-
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordRequestDto, localVarRequestOptions, configuration)
|
|
196
|
-
|
|
197
|
-
return {
|
|
198
|
-
url: toPathString(localVarUrlObj),
|
|
199
|
-
options: localVarRequestOptions,
|
|
200
|
-
};
|
|
201
|
-
},
|
|
202
39
|
/**
|
|
203
40
|
* Get customer details.
|
|
204
41
|
* @summary Get customer details
|
|
@@ -246,21 +83,20 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
246
83
|
};
|
|
247
84
|
},
|
|
248
85
|
/**
|
|
249
|
-
*
|
|
250
|
-
* @summary
|
|
251
|
-
* @param {string}
|
|
252
|
-
* @param {
|
|
86
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
87
|
+
* @summary Update customer details
|
|
88
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
89
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
253
90
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
91
|
* @param {*} [options] Override http request option.
|
|
255
92
|
* @throws {RequiredError}
|
|
256
93
|
*/
|
|
257
|
-
|
|
258
|
-
// verify required parameter 'documentCode' is not null or undefined
|
|
259
|
-
assertParamExists('getCustomerDocumentDownloadUrl', 'documentCode', documentCode)
|
|
94
|
+
updateCustomer: async (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
260
95
|
// verify required parameter 'customerCode' is not null or undefined
|
|
261
|
-
assertParamExists('
|
|
262
|
-
|
|
263
|
-
|
|
96
|
+
assertParamExists('updateCustomer', 'customerCode', customerCode)
|
|
97
|
+
// verify required parameter 'updateCustomerRequestDto' is not null or undefined
|
|
98
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestDto', updateCustomerRequestDto)
|
|
99
|
+
const localVarPath = `/v1/customers/{customerCode}`
|
|
264
100
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
265
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
266
102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -271,7 +107,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
271
107
|
baseAccessToken = configuration.accessToken;
|
|
272
108
|
}
|
|
273
109
|
|
|
274
|
-
const localVarRequestOptions = { method: '
|
|
110
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
275
111
|
const localVarHeaderParameter = {} as any;
|
|
276
112
|
const localVarQueryParameter = {} as any;
|
|
277
113
|
|
|
@@ -281,1419 +117,119 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
281
117
|
|
|
282
118
|
|
|
283
119
|
|
|
120
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
121
|
+
|
|
284
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
285
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
286
124
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestDto, localVarRequestOptions, configuration)
|
|
287
126
|
|
|
288
127
|
return {
|
|
289
128
|
url: toPathString(localVarUrlObj),
|
|
290
129
|
options: localVarRequestOptions,
|
|
291
130
|
};
|
|
292
131
|
},
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* CustomersApi - functional programming interface
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export const CustomersApiFp = function(configuration?: Configuration) {
|
|
140
|
+
const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
|
|
141
|
+
return {
|
|
293
142
|
/**
|
|
294
|
-
*
|
|
295
|
-
* @summary
|
|
296
|
-
* @param {
|
|
143
|
+
* Get customer details.
|
|
144
|
+
* @summary Get customer details
|
|
145
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
146
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
297
148
|
* @param {*} [options] Override http request option.
|
|
298
149
|
* @throws {RequiredError}
|
|
299
150
|
*/
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
const localVarPath = `/v1/customers/auth/initiate`;
|
|
304
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
305
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
306
|
-
let baseOptions;
|
|
307
|
-
let baseAccessToken;
|
|
308
|
-
if (configuration) {
|
|
309
|
-
baseOptions = configuration.baseOptions;
|
|
310
|
-
baseAccessToken = configuration.accessToken;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
314
|
-
const localVarHeaderParameter = {} as any;
|
|
315
|
-
const localVarQueryParameter = {} as any;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
320
|
-
|
|
321
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
322
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
323
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
324
|
-
localVarRequestOptions.data = serializeDataIfNeeded(initiateAuthRequestDto, localVarRequestOptions, configuration)
|
|
325
|
-
|
|
326
|
-
return {
|
|
327
|
-
url: toPathString(localVarUrlObj),
|
|
328
|
-
options: localVarRequestOptions,
|
|
329
|
-
};
|
|
151
|
+
async getCustomer(customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerResponseClass>> {
|
|
152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(customerCode, expand, authorization, options);
|
|
153
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
154
|
},
|
|
331
155
|
/**
|
|
332
|
-
*
|
|
333
|
-
* @summary
|
|
156
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
157
|
+
* @summary Update customer details
|
|
334
158
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
159
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
335
160
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
161
|
* @param {*} [options] Override http request option.
|
|
337
162
|
* @throws {RequiredError}
|
|
338
163
|
*/
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
const localVarPath = `/v1/customers/{customerCode}/payment_setup/initiate`
|
|
343
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
344
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
345
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
346
|
-
let baseOptions;
|
|
347
|
-
let baseAccessToken;
|
|
348
|
-
if (configuration) {
|
|
349
|
-
baseOptions = configuration.baseOptions;
|
|
350
|
-
baseAccessToken = configuration.accessToken;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
354
|
-
const localVarHeaderParameter = {} as any;
|
|
355
|
-
const localVarQueryParameter = {} as any;
|
|
356
|
-
|
|
357
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
358
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
364
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
366
|
-
|
|
367
|
-
return {
|
|
368
|
-
url: toPathString(localVarUrlObj),
|
|
369
|
-
options: localVarRequestOptions,
|
|
370
|
-
};
|
|
164
|
+
async updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options);
|
|
166
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
371
167
|
},
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* CustomersApi - factory interface
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
export const CustomersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
176
|
+
const localVarFp = CustomersApiFp(configuration)
|
|
177
|
+
return {
|
|
372
178
|
/**
|
|
373
|
-
*
|
|
374
|
-
* @summary
|
|
375
|
-
* @param {
|
|
376
|
-
* @param {string} [
|
|
179
|
+
* Get customer details.
|
|
180
|
+
* @summary Get customer details
|
|
181
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
182
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
183
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
377
184
|
* @param {*} [options] Override http request option.
|
|
378
185
|
* @throws {RequiredError}
|
|
379
186
|
*/
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
assertParamExists('inviteByCustomer', 'inviteByCustomerRequestDto', inviteByCustomerRequestDto)
|
|
383
|
-
const localVarPath = `/v1/customers/invites/by-customer`;
|
|
384
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
386
|
-
let baseOptions;
|
|
387
|
-
let baseAccessToken;
|
|
388
|
-
if (configuration) {
|
|
389
|
-
baseOptions = configuration.baseOptions;
|
|
390
|
-
baseAccessToken = configuration.accessToken;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
394
|
-
const localVarHeaderParameter = {} as any;
|
|
395
|
-
const localVarQueryParameter = {} as any;
|
|
396
|
-
|
|
397
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
398
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
404
|
-
|
|
405
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
408
|
-
localVarRequestOptions.data = serializeDataIfNeeded(inviteByCustomerRequestDto, localVarRequestOptions, configuration)
|
|
409
|
-
|
|
410
|
-
return {
|
|
411
|
-
url: toPathString(localVarUrlObj),
|
|
412
|
-
options: localVarRequestOptions,
|
|
413
|
-
};
|
|
187
|
+
getCustomer(customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetCustomerResponseClass> {
|
|
188
|
+
return localVarFp.getCustomer(customerCode, expand, authorization, options).then((request) => request(axios, basePath));
|
|
414
189
|
},
|
|
415
190
|
/**
|
|
416
|
-
*
|
|
417
|
-
* @summary
|
|
418
|
-
* @param {
|
|
419
|
-
* @param {
|
|
191
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
192
|
+
* @summary Update customer details
|
|
193
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
194
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
195
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
420
196
|
* @param {*} [options] Override http request option.
|
|
421
197
|
* @throws {RequiredError}
|
|
422
198
|
*/
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
429
|
-
let baseOptions;
|
|
430
|
-
let baseAccessToken;
|
|
431
|
-
if (configuration) {
|
|
432
|
-
baseOptions = configuration.baseOptions;
|
|
433
|
-
baseAccessToken = configuration.accessToken;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
437
|
-
const localVarHeaderParameter = {} as any;
|
|
438
|
-
const localVarQueryParameter = {} as any;
|
|
439
|
-
|
|
440
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
441
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
447
|
-
|
|
448
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
451
|
-
localVarRequestOptions.data = serializeDataIfNeeded(inviteByCustomerRequestDto, localVarRequestOptions, configuration)
|
|
452
|
-
|
|
453
|
-
return {
|
|
454
|
-
url: toPathString(localVarUrlObj),
|
|
455
|
-
options: localVarRequestOptions,
|
|
456
|
-
};
|
|
457
|
-
},
|
|
458
|
-
/**
|
|
459
|
-
* List all the documents of a customer.
|
|
460
|
-
* @summary List documents of a customer
|
|
461
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
462
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
463
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
464
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
465
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
466
|
-
* @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.
|
|
467
|
-
* @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.
|
|
468
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
469
|
-
* @param {*} [options] Override http request option.
|
|
470
|
-
* @throws {RequiredError}
|
|
471
|
-
*/
|
|
472
|
-
listDocuments: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
473
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
474
|
-
assertParamExists('listDocuments', 'customerCode', customerCode)
|
|
475
|
-
const localVarPath = `/v1/customers/{customerCode}/documents`
|
|
476
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
477
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
478
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
479
|
-
let baseOptions;
|
|
480
|
-
let baseAccessToken;
|
|
481
|
-
if (configuration) {
|
|
482
|
-
baseOptions = configuration.baseOptions;
|
|
483
|
-
baseAccessToken = configuration.accessToken;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
487
|
-
const localVarHeaderParameter = {} as any;
|
|
488
|
-
const localVarQueryParameter = {} as any;
|
|
489
|
-
|
|
490
|
-
if (pageSize !== undefined) {
|
|
491
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
if (pageToken !== undefined) {
|
|
495
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
if (filter !== undefined) {
|
|
499
|
-
localVarQueryParameter['filter'] = filter;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
if (search !== undefined) {
|
|
503
|
-
localVarQueryParameter['search'] = search;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
if (order !== undefined) {
|
|
507
|
-
localVarQueryParameter['order'] = order;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
if (expand !== undefined) {
|
|
511
|
-
localVarQueryParameter['expand'] = expand;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
515
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
521
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
522
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
523
|
-
|
|
524
|
-
return {
|
|
525
|
-
url: toPathString(localVarUrlObj),
|
|
526
|
-
options: localVarRequestOptions,
|
|
527
|
-
};
|
|
528
|
-
},
|
|
529
|
-
/**
|
|
530
|
-
* List all the invoices of a customer.
|
|
531
|
-
* @summary List invoices of a customer
|
|
532
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
533
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
534
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
535
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
536
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
537
|
-
* @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.
|
|
538
|
-
* @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.
|
|
539
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
540
|
-
* @param {*} [options] Override http request option.
|
|
541
|
-
* @throws {RequiredError}
|
|
542
|
-
*/
|
|
543
|
-
listInvoices: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
544
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
545
|
-
assertParamExists('listInvoices', 'customerCode', customerCode)
|
|
546
|
-
const localVarPath = `/v1/customers/{customerCode}/invoices`
|
|
547
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
548
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
549
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
550
|
-
let baseOptions;
|
|
551
|
-
let baseAccessToken;
|
|
552
|
-
if (configuration) {
|
|
553
|
-
baseOptions = configuration.baseOptions;
|
|
554
|
-
baseAccessToken = configuration.accessToken;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
558
|
-
const localVarHeaderParameter = {} as any;
|
|
559
|
-
const localVarQueryParameter = {} as any;
|
|
560
|
-
|
|
561
|
-
if (pageSize !== undefined) {
|
|
562
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
if (pageToken !== undefined) {
|
|
566
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
if (filter !== undefined) {
|
|
570
|
-
localVarQueryParameter['filter'] = filter;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
if (search !== undefined) {
|
|
574
|
-
localVarQueryParameter['search'] = search;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (order !== undefined) {
|
|
578
|
-
localVarQueryParameter['order'] = order;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (expand !== undefined) {
|
|
582
|
-
localVarQueryParameter['expand'] = expand;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
586
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
592
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
593
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
594
|
-
|
|
595
|
-
return {
|
|
596
|
-
url: toPathString(localVarUrlObj),
|
|
597
|
-
options: localVarRequestOptions,
|
|
598
|
-
};
|
|
599
|
-
},
|
|
600
|
-
/**
|
|
601
|
-
* Get new access token, new refresh token.
|
|
602
|
-
* @summary Refresh token by customer
|
|
603
|
-
* @param {RefreshTokenDto} refreshTokenDto
|
|
604
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login.
|
|
605
|
-
* @param {*} [options] Override http request option.
|
|
606
|
-
* @throws {RequiredError}
|
|
607
|
-
*/
|
|
608
|
-
refreshToken: async (refreshTokenDto: RefreshTokenDto, cookie?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
609
|
-
// verify required parameter 'refreshTokenDto' is not null or undefined
|
|
610
|
-
assertParamExists('refreshToken', 'refreshTokenDto', refreshTokenDto)
|
|
611
|
-
const localVarPath = `/v1/customers/refresh-token`;
|
|
612
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
613
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
614
|
-
let baseOptions;
|
|
615
|
-
let baseAccessToken;
|
|
616
|
-
if (configuration) {
|
|
617
|
-
baseOptions = configuration.baseOptions;
|
|
618
|
-
baseAccessToken = configuration.accessToken;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
622
|
-
const localVarHeaderParameter = {} as any;
|
|
623
|
-
const localVarQueryParameter = {} as any;
|
|
624
|
-
|
|
625
|
-
if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
626
|
-
localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
632
|
-
|
|
633
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
634
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
635
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
636
|
-
localVarRequestOptions.data = serializeDataIfNeeded(refreshTokenDto, localVarRequestOptions, configuration)
|
|
637
|
-
|
|
638
|
-
return {
|
|
639
|
-
url: toPathString(localVarUrlObj),
|
|
640
|
-
options: localVarRequestOptions,
|
|
641
|
-
};
|
|
642
|
-
},
|
|
643
|
-
/**
|
|
644
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
645
|
-
* @summary Change password by customer
|
|
646
|
-
* @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
|
|
647
|
-
* @param {*} [options] Override http request option.
|
|
648
|
-
* @throws {RequiredError}
|
|
649
|
-
*/
|
|
650
|
-
resetPassword: async (resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
651
|
-
// verify required parameter 'resetPasswordByCustomerRequestDto' is not null or undefined
|
|
652
|
-
assertParamExists('resetPassword', 'resetPasswordByCustomerRequestDto', resetPasswordByCustomerRequestDto)
|
|
653
|
-
const localVarPath = `/v1/customers/reset-password`;
|
|
654
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
655
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
656
|
-
let baseOptions;
|
|
657
|
-
let baseAccessToken;
|
|
658
|
-
if (configuration) {
|
|
659
|
-
baseOptions = configuration.baseOptions;
|
|
660
|
-
baseAccessToken = configuration.accessToken;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
664
|
-
const localVarHeaderParameter = {} as any;
|
|
665
|
-
const localVarQueryParameter = {} as any;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
670
|
-
|
|
671
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
672
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
673
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
674
|
-
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordByCustomerRequestDto, localVarRequestOptions, configuration)
|
|
675
|
-
|
|
676
|
-
return {
|
|
677
|
-
url: toPathString(localVarUrlObj),
|
|
678
|
-
options: localVarRequestOptions,
|
|
679
|
-
};
|
|
680
|
-
},
|
|
681
|
-
/**
|
|
682
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
683
|
-
* @summary Respond to auth challenge by customer
|
|
684
|
-
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
685
|
-
* @param {*} [options] Override http request option.
|
|
686
|
-
* @throws {RequiredError}
|
|
687
|
-
*/
|
|
688
|
-
respondToAuthChallenge: async (respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
689
|
-
// verify required parameter 'respondToAuthChallengeRequestDto' is not null or undefined
|
|
690
|
-
assertParamExists('respondToAuthChallenge', 'respondToAuthChallengeRequestDto', respondToAuthChallengeRequestDto)
|
|
691
|
-
const localVarPath = `/v1/customers/auth/respond`;
|
|
692
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
693
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
694
|
-
let baseOptions;
|
|
695
|
-
let baseAccessToken;
|
|
696
|
-
if (configuration) {
|
|
697
|
-
baseOptions = configuration.baseOptions;
|
|
698
|
-
baseAccessToken = configuration.accessToken;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
702
|
-
const localVarHeaderParameter = {} as any;
|
|
703
|
-
const localVarQueryParameter = {} as any;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
708
|
-
|
|
709
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
710
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
711
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
712
|
-
localVarRequestOptions.data = serializeDataIfNeeded(respondToAuthChallengeRequestDto, localVarRequestOptions, configuration)
|
|
713
|
-
|
|
714
|
-
return {
|
|
715
|
-
url: toPathString(localVarUrlObj),
|
|
716
|
-
options: localVarRequestOptions,
|
|
717
|
-
};
|
|
718
|
-
},
|
|
719
|
-
/**
|
|
720
|
-
* Update customer details like phone, email, names, addresses etc.
|
|
721
|
-
* @summary Update customer details
|
|
722
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
723
|
-
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
724
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
725
|
-
* @param {*} [options] Override http request option.
|
|
726
|
-
* @throws {RequiredError}
|
|
727
|
-
*/
|
|
728
|
-
updateCustomer: async (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
729
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
730
|
-
assertParamExists('updateCustomer', 'customerCode', customerCode)
|
|
731
|
-
// verify required parameter 'updateCustomerRequestDto' is not null or undefined
|
|
732
|
-
assertParamExists('updateCustomer', 'updateCustomerRequestDto', updateCustomerRequestDto)
|
|
733
|
-
const localVarPath = `/v1/customers/{customerCode}`
|
|
734
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
735
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
736
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
737
|
-
let baseOptions;
|
|
738
|
-
let baseAccessToken;
|
|
739
|
-
if (configuration) {
|
|
740
|
-
baseOptions = configuration.baseOptions;
|
|
741
|
-
baseAccessToken = configuration.accessToken;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
745
|
-
const localVarHeaderParameter = {} as any;
|
|
746
|
-
const localVarQueryParameter = {} as any;
|
|
747
|
-
|
|
748
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
749
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
755
|
-
|
|
756
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
757
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
759
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestDto, localVarRequestOptions, configuration)
|
|
760
|
-
|
|
761
|
-
return {
|
|
762
|
-
url: toPathString(localVarUrlObj),
|
|
763
|
-
options: localVarRequestOptions,
|
|
764
|
-
};
|
|
765
|
-
},
|
|
766
|
-
/**
|
|
767
|
-
* API to upload and attach documents to an account.
|
|
768
|
-
* @summary Upload account documents
|
|
769
|
-
* @param {string} customerCode
|
|
770
|
-
* @param {*} [options] Override http request option.
|
|
771
|
-
* @throws {RequiredError}
|
|
772
|
-
*/
|
|
773
|
-
uploadAccountDocuments: async (customerCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
774
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
775
|
-
assertParamExists('uploadAccountDocuments', 'customerCode', customerCode)
|
|
776
|
-
const localVarPath = `/v1/customers/{customerCode}/documents`
|
|
777
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
778
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
779
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
780
|
-
let baseOptions;
|
|
781
|
-
let baseAccessToken;
|
|
782
|
-
if (configuration) {
|
|
783
|
-
baseOptions = configuration.baseOptions;
|
|
784
|
-
baseAccessToken = configuration.accessToken;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
788
|
-
const localVarHeaderParameter = {} as any;
|
|
789
|
-
const localVarQueryParameter = {} as any;
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
794
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
795
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
796
|
-
|
|
797
|
-
return {
|
|
798
|
-
url: toPathString(localVarUrlObj),
|
|
799
|
-
options: localVarRequestOptions,
|
|
800
|
-
};
|
|
801
|
-
},
|
|
802
|
-
/**
|
|
803
|
-
* Verify the invite sent to the customer via email.
|
|
804
|
-
* @summary Verify customer\'s invite token
|
|
805
|
-
* @param {string} inviteToken Invite token sent to the customer
|
|
806
|
-
* @param {*} [options] Override http request option.
|
|
807
|
-
* @throws {RequiredError}
|
|
808
|
-
*/
|
|
809
|
-
verifyInvite: async (inviteToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
810
|
-
// verify required parameter 'inviteToken' is not null or undefined
|
|
811
|
-
assertParamExists('verifyInvite', 'inviteToken', inviteToken)
|
|
812
|
-
const localVarPath = `/v1/customers/invites/verify`;
|
|
813
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
814
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
815
|
-
let baseOptions;
|
|
816
|
-
let baseAccessToken;
|
|
817
|
-
if (configuration) {
|
|
818
|
-
baseOptions = configuration.baseOptions;
|
|
819
|
-
baseAccessToken = configuration.accessToken;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
823
|
-
const localVarHeaderParameter = {} as any;
|
|
824
|
-
const localVarQueryParameter = {} as any;
|
|
825
|
-
|
|
826
|
-
if (inviteToken !== undefined) {
|
|
827
|
-
localVarQueryParameter['inviteToken'] = inviteToken;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
833
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
834
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
835
|
-
|
|
836
|
-
return {
|
|
837
|
-
url: toPathString(localVarUrlObj),
|
|
838
|
-
options: localVarRequestOptions,
|
|
839
|
-
};
|
|
840
|
-
},
|
|
841
|
-
/**
|
|
842
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
843
|
-
* @summary Verify a reset password token
|
|
844
|
-
* @param {string} resetToken reset password token
|
|
845
|
-
* @param {*} [options] Override http request option.
|
|
846
|
-
* @throws {RequiredError}
|
|
847
|
-
*/
|
|
848
|
-
verifyResetPasswordToken: async (resetToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
849
|
-
// verify required parameter 'resetToken' is not null or undefined
|
|
850
|
-
assertParamExists('verifyResetPasswordToken', 'resetToken', resetToken)
|
|
851
|
-
const localVarPath = `/v1/customers/verify-reset-password`;
|
|
852
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
853
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
854
|
-
let baseOptions;
|
|
855
|
-
let baseAccessToken;
|
|
856
|
-
if (configuration) {
|
|
857
|
-
baseOptions = configuration.baseOptions;
|
|
858
|
-
baseAccessToken = configuration.accessToken;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
862
|
-
const localVarHeaderParameter = {} as any;
|
|
863
|
-
const localVarQueryParameter = {} as any;
|
|
864
|
-
|
|
865
|
-
if (resetToken !== undefined) {
|
|
866
|
-
localVarQueryParameter['resetToken'] = resetToken;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
872
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
873
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
874
|
-
|
|
875
|
-
return {
|
|
876
|
-
url: toPathString(localVarUrlObj),
|
|
877
|
-
options: localVarRequestOptions,
|
|
878
|
-
};
|
|
879
|
-
},
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* CustomersApi - functional programming interface
|
|
885
|
-
* @export
|
|
886
|
-
*/
|
|
887
|
-
export const CustomersApiFp = function(configuration?: Configuration) {
|
|
888
|
-
const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
|
|
889
|
-
return {
|
|
890
|
-
/**
|
|
891
|
-
* Request to complete a payment change by customer.
|
|
892
|
-
* @summary Request payment setup complete by customer
|
|
893
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
894
|
-
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
895
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
896
|
-
* @param {*} [options] Override http request option.
|
|
897
|
-
* @throws {RequiredError}
|
|
898
|
-
*/
|
|
899
|
-
async completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
900
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options);
|
|
901
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
902
|
-
},
|
|
903
|
-
/**
|
|
904
|
-
* 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.
|
|
905
|
-
* @summary Register a customer after invite
|
|
906
|
-
* @param {CreateCustomerRequestDto} createCustomerRequestDto
|
|
907
|
-
* @param {*} [options] Override http request option.
|
|
908
|
-
* @throws {RequiredError}
|
|
909
|
-
*/
|
|
910
|
-
async createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerResponseClass>> {
|
|
911
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomer(createCustomerRequestDto, options);
|
|
912
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
913
|
-
},
|
|
914
|
-
/**
|
|
915
|
-
* Send a customer a reset-password token via email.
|
|
916
|
-
* @summary Forgot password by customer
|
|
917
|
-
* @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
|
|
918
|
-
* @param {*} [options] Override http request option.
|
|
919
|
-
* @throws {RequiredError}
|
|
920
|
-
*/
|
|
921
|
-
async forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
922
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(forgotPasswordRequestDto, options);
|
|
923
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
924
|
-
},
|
|
925
|
-
/**
|
|
926
|
-
* Get customer details.
|
|
927
|
-
* @summary Get customer details
|
|
928
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
929
|
-
* @param {string} [expand] Fields to expand response by - [account]
|
|
930
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
931
|
-
* @param {*} [options] Override http request option.
|
|
932
|
-
* @throws {RequiredError}
|
|
933
|
-
*/
|
|
934
|
-
async getCustomer(customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerResponseClass>> {
|
|
935
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(customerCode, expand, authorization, options);
|
|
936
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
937
|
-
},
|
|
938
|
-
/**
|
|
939
|
-
* Get a presigned download url for document.
|
|
940
|
-
* @summary Get a presigned download url for document
|
|
941
|
-
* @param {string} documentCode The document code.
|
|
942
|
-
* @param {string} customerCode
|
|
943
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
944
|
-
* @param {*} [options] Override http request option.
|
|
945
|
-
* @throws {RequiredError}
|
|
946
|
-
*/
|
|
947
|
-
async getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>> {
|
|
948
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options);
|
|
949
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
950
|
-
},
|
|
951
|
-
/**
|
|
952
|
-
* Start auth process to get new access token, refresh token after successful login.
|
|
953
|
-
* @summary Initiate auth by customer
|
|
954
|
-
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
955
|
-
* @param {*} [options] Override http request option.
|
|
956
|
-
* @throws {RequiredError}
|
|
957
|
-
*/
|
|
958
|
-
async initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>> {
|
|
959
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateAuth(initiateAuthRequestDto, options);
|
|
960
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
961
|
-
},
|
|
962
|
-
/**
|
|
963
|
-
* Request to initiate a payment change by customer.
|
|
964
|
-
* @summary Request payment setup initiation by customer
|
|
965
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
966
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
967
|
-
* @param {*} [options] Override http request option.
|
|
968
|
-
* @throws {RequiredError}
|
|
969
|
-
*/
|
|
970
|
-
async initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
971
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options);
|
|
972
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
973
|
-
},
|
|
974
|
-
/**
|
|
975
|
-
* 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.
|
|
976
|
-
* @summary Invite a customer by self
|
|
977
|
-
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
978
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
979
|
-
* @param {*} [options] Override http request option.
|
|
980
|
-
* @throws {RequiredError}
|
|
981
|
-
*/
|
|
982
|
-
async inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByCustomerResponseClass>> {
|
|
983
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByCustomer(inviteByCustomerRequestDto, authorization, options);
|
|
984
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
985
|
-
},
|
|
986
|
-
/**
|
|
987
|
-
* 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.
|
|
988
|
-
* @summary Invite a customer by tenant
|
|
989
|
-
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
990
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
991
|
-
* @param {*} [options] Override http request option.
|
|
992
|
-
* @throws {RequiredError}
|
|
993
|
-
*/
|
|
994
|
-
async inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>> {
|
|
995
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByTenant(inviteByCustomerRequestDto, authorization, options);
|
|
996
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
997
|
-
},
|
|
998
|
-
/**
|
|
999
|
-
* List all the documents of a customer.
|
|
1000
|
-
* @summary List documents of a customer
|
|
1001
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1002
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1003
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1004
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1005
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1006
|
-
* @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.
|
|
1007
|
-
* @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.
|
|
1008
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1009
|
-
* @param {*} [options] Override http request option.
|
|
1010
|
-
* @throws {RequiredError}
|
|
1011
|
-
*/
|
|
1012
|
-
async 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>> {
|
|
1013
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
1014
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1015
|
-
},
|
|
1016
|
-
/**
|
|
1017
|
-
* List all the invoices of a customer.
|
|
1018
|
-
* @summary List invoices of a customer
|
|
1019
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1020
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1021
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1022
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1023
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1024
|
-
* @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.
|
|
1025
|
-
* @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.
|
|
1026
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1027
|
-
* @param {*} [options] Override http request option.
|
|
1028
|
-
* @throws {RequiredError}
|
|
1029
|
-
*/
|
|
1030
|
-
async 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>> {
|
|
1031
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
1032
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1033
|
-
},
|
|
1034
|
-
/**
|
|
1035
|
-
* Get new access token, new refresh token.
|
|
1036
|
-
* @summary Refresh token by customer
|
|
1037
|
-
* @param {RefreshTokenDto} refreshTokenDto
|
|
1038
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login.
|
|
1039
|
-
* @param {*} [options] Override http request option.
|
|
1040
|
-
* @throws {RequiredError}
|
|
1041
|
-
*/
|
|
1042
|
-
async refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1043
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(refreshTokenDto, cookie, options);
|
|
1044
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1045
|
-
},
|
|
1046
|
-
/**
|
|
1047
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1048
|
-
* @summary Change password by customer
|
|
1049
|
-
* @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
|
|
1050
|
-
* @param {*} [options] Override http request option.
|
|
1051
|
-
* @throws {RequiredError}
|
|
1052
|
-
*/
|
|
1053
|
-
async resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1054
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resetPassword(resetPasswordByCustomerRequestDto, options);
|
|
1055
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1056
|
-
},
|
|
1057
|
-
/**
|
|
1058
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
1059
|
-
* @summary Respond to auth challenge by customer
|
|
1060
|
-
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
1061
|
-
* @param {*} [options] Override http request option.
|
|
1062
|
-
* @throws {RequiredError}
|
|
1063
|
-
*/
|
|
1064
|
-
async respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToAuthChallengeClass>> {
|
|
1065
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.respondToAuthChallenge(respondToAuthChallengeRequestDto, options);
|
|
1066
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1067
|
-
},
|
|
1068
|
-
/**
|
|
1069
|
-
* Update customer details like phone, email, names, addresses etc.
|
|
1070
|
-
* @summary Update customer details
|
|
1071
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1072
|
-
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1073
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1074
|
-
* @param {*} [options] Override http request option.
|
|
1075
|
-
* @throws {RequiredError}
|
|
1076
|
-
*/
|
|
1077
|
-
async updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
1078
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options);
|
|
1079
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1080
|
-
},
|
|
1081
|
-
/**
|
|
1082
|
-
* API to upload and attach documents to an account.
|
|
1083
|
-
* @summary Upload account documents
|
|
1084
|
-
* @param {string} customerCode
|
|
1085
|
-
* @param {*} [options] Override http request option.
|
|
1086
|
-
* @throws {RequiredError}
|
|
1087
|
-
*/
|
|
1088
|
-
async uploadAccountDocuments(customerCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
1089
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAccountDocuments(customerCode, options);
|
|
1090
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1091
|
-
},
|
|
1092
|
-
/**
|
|
1093
|
-
* Verify the invite sent to the customer via email.
|
|
1094
|
-
* @summary Verify customer\'s invite token
|
|
1095
|
-
* @param {string} inviteToken Invite token sent to the customer
|
|
1096
|
-
* @param {*} [options] Override http request option.
|
|
1097
|
-
* @throws {RequiredError}
|
|
1098
|
-
*/
|
|
1099
|
-
async verifyInvite(inviteToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyCustomerInviteResponseClass>> {
|
|
1100
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyInvite(inviteToken, options);
|
|
1101
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1102
|
-
},
|
|
1103
|
-
/**
|
|
1104
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
1105
|
-
* @summary Verify a reset password token
|
|
1106
|
-
* @param {string} resetToken reset password token
|
|
1107
|
-
* @param {*} [options] Override http request option.
|
|
1108
|
-
* @throws {RequiredError}
|
|
1109
|
-
*/
|
|
1110
|
-
async verifyResetPasswordToken(resetToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1111
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyResetPasswordToken(resetToken, options);
|
|
1112
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1113
|
-
},
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
|
-
/**
|
|
1118
|
-
* CustomersApi - factory interface
|
|
1119
|
-
* @export
|
|
1120
|
-
*/
|
|
1121
|
-
export const CustomersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1122
|
-
const localVarFp = CustomersApiFp(configuration)
|
|
1123
|
-
return {
|
|
1124
|
-
/**
|
|
1125
|
-
* Request to complete a payment change by customer.
|
|
1126
|
-
* @summary Request payment setup complete by customer
|
|
1127
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1128
|
-
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
1129
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1130
|
-
* @param {*} [options] Override http request option.
|
|
1131
|
-
* @throws {RequiredError}
|
|
1132
|
-
*/
|
|
1133
|
-
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
1134
|
-
return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then((request) => request(axios, basePath));
|
|
1135
|
-
},
|
|
1136
|
-
/**
|
|
1137
|
-
* 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.
|
|
1138
|
-
* @summary Register a customer after invite
|
|
1139
|
-
* @param {CreateCustomerRequestDto} createCustomerRequestDto
|
|
1140
|
-
* @param {*} [options] Override http request option.
|
|
1141
|
-
* @throws {RequiredError}
|
|
1142
|
-
*/
|
|
1143
|
-
createCustomer(createCustomerRequestDto: CreateCustomerRequestDto, options?: any): AxiosPromise<CreateCustomerResponseClass> {
|
|
1144
|
-
return localVarFp.createCustomer(createCustomerRequestDto, options).then((request) => request(axios, basePath));
|
|
1145
|
-
},
|
|
1146
|
-
/**
|
|
1147
|
-
* Send a customer a reset-password token via email.
|
|
1148
|
-
* @summary Forgot password by customer
|
|
1149
|
-
* @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
|
|
1150
|
-
* @param {*} [options] Override http request option.
|
|
1151
|
-
* @throws {RequiredError}
|
|
1152
|
-
*/
|
|
1153
|
-
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void> {
|
|
1154
|
-
return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
|
|
1155
|
-
},
|
|
1156
|
-
/**
|
|
1157
|
-
* Get customer details.
|
|
1158
|
-
* @summary Get customer details
|
|
1159
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1160
|
-
* @param {string} [expand] Fields to expand response by - [account]
|
|
1161
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1162
|
-
* @param {*} [options] Override http request option.
|
|
1163
|
-
* @throws {RequiredError}
|
|
1164
|
-
*/
|
|
1165
|
-
getCustomer(customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetCustomerResponseClass> {
|
|
1166
|
-
return localVarFp.getCustomer(customerCode, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1167
|
-
},
|
|
1168
|
-
/**
|
|
1169
|
-
* Get a presigned download url for document.
|
|
1170
|
-
* @summary Get a presigned download url for document
|
|
1171
|
-
* @param {string} documentCode The document code.
|
|
1172
|
-
* @param {string} customerCode
|
|
1173
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1174
|
-
* @param {*} [options] Override http request option.
|
|
1175
|
-
* @throws {RequiredError}
|
|
1176
|
-
*/
|
|
1177
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass> {
|
|
1178
|
-
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options).then((request) => request(axios, basePath));
|
|
1179
|
-
},
|
|
1180
|
-
/**
|
|
1181
|
-
* Start auth process to get new access token, refresh token after successful login.
|
|
1182
|
-
* @summary Initiate auth by customer
|
|
1183
|
-
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
1184
|
-
* @param {*} [options] Override http request option.
|
|
1185
|
-
* @throws {RequiredError}
|
|
1186
|
-
*/
|
|
1187
|
-
initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass> {
|
|
1188
|
-
return localVarFp.initiateAuth(initiateAuthRequestDto, options).then((request) => request(axios, basePath));
|
|
1189
|
-
},
|
|
1190
|
-
/**
|
|
1191
|
-
* Request to initiate a payment change by customer.
|
|
1192
|
-
* @summary Request payment setup initiation by customer
|
|
1193
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1194
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1195
|
-
* @param {*} [options] Override http request option.
|
|
1196
|
-
* @throws {RequiredError}
|
|
1197
|
-
*/
|
|
1198
|
-
initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
1199
|
-
return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then((request) => request(axios, basePath));
|
|
1200
|
-
},
|
|
1201
|
-
/**
|
|
1202
|
-
* 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.
|
|
1203
|
-
* @summary Invite a customer by self
|
|
1204
|
-
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1205
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1206
|
-
* @param {*} [options] Override http request option.
|
|
1207
|
-
* @throws {RequiredError}
|
|
1208
|
-
*/
|
|
1209
|
-
inviteByCustomer(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByCustomerResponseClass> {
|
|
1210
|
-
return localVarFp.inviteByCustomer(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1211
|
-
},
|
|
1212
|
-
/**
|
|
1213
|
-
* 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.
|
|
1214
|
-
* @summary Invite a customer by tenant
|
|
1215
|
-
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1216
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1217
|
-
* @param {*} [options] Override http request option.
|
|
1218
|
-
* @throws {RequiredError}
|
|
1219
|
-
*/
|
|
1220
|
-
inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass> {
|
|
1221
|
-
return localVarFp.inviteByTenant(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1222
|
-
},
|
|
1223
|
-
/**
|
|
1224
|
-
* List all the documents of a customer.
|
|
1225
|
-
* @summary List documents of a customer
|
|
1226
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1227
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1228
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1229
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1230
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1231
|
-
* @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.
|
|
1232
|
-
* @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.
|
|
1233
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1234
|
-
* @param {*} [options] Override http request option.
|
|
1235
|
-
* @throws {RequiredError}
|
|
1236
|
-
*/
|
|
1237
|
-
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
1238
|
-
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1239
|
-
},
|
|
1240
|
-
/**
|
|
1241
|
-
* List all the invoices of a customer.
|
|
1242
|
-
* @summary List invoices of a customer
|
|
1243
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1244
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1245
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1246
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1247
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1248
|
-
* @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.
|
|
1249
|
-
* @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.
|
|
1250
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1251
|
-
* @param {*} [options] Override http request option.
|
|
1252
|
-
* @throws {RequiredError}
|
|
1253
|
-
*/
|
|
1254
|
-
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
|
|
1255
|
-
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1256
|
-
},
|
|
1257
|
-
/**
|
|
1258
|
-
* Get new access token, new refresh token.
|
|
1259
|
-
* @summary Refresh token by customer
|
|
1260
|
-
* @param {RefreshTokenDto} refreshTokenDto
|
|
1261
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login.
|
|
1262
|
-
* @param {*} [options] Override http request option.
|
|
1263
|
-
* @throws {RequiredError}
|
|
1264
|
-
*/
|
|
1265
|
-
refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void> {
|
|
1266
|
-
return localVarFp.refreshToken(refreshTokenDto, cookie, options).then((request) => request(axios, basePath));
|
|
1267
|
-
},
|
|
1268
|
-
/**
|
|
1269
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1270
|
-
* @summary Change password by customer
|
|
1271
|
-
* @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
|
|
1272
|
-
* @param {*} [options] Override http request option.
|
|
1273
|
-
* @throws {RequiredError}
|
|
1274
|
-
*/
|
|
1275
|
-
resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: any): AxiosPromise<void> {
|
|
1276
|
-
return localVarFp.resetPassword(resetPasswordByCustomerRequestDto, options).then((request) => request(axios, basePath));
|
|
1277
|
-
},
|
|
1278
|
-
/**
|
|
1279
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
1280
|
-
* @summary Respond to auth challenge by customer
|
|
1281
|
-
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
1282
|
-
* @param {*} [options] Override http request option.
|
|
1283
|
-
* @throws {RequiredError}
|
|
1284
|
-
*/
|
|
1285
|
-
respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass> {
|
|
1286
|
-
return localVarFp.respondToAuthChallenge(respondToAuthChallengeRequestDto, options).then((request) => request(axios, basePath));
|
|
1287
|
-
},
|
|
1288
|
-
/**
|
|
1289
|
-
* Update customer details like phone, email, names, addresses etc.
|
|
1290
|
-
* @summary Update customer details
|
|
1291
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1292
|
-
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1293
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1294
|
-
* @param {*} [options] Override http request option.
|
|
1295
|
-
* @throws {RequiredError}
|
|
1296
|
-
*/
|
|
1297
|
-
updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
1298
|
-
return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1299
|
-
},
|
|
1300
|
-
/**
|
|
1301
|
-
* API to upload and attach documents to an account.
|
|
1302
|
-
* @summary Upload account documents
|
|
1303
|
-
* @param {string} customerCode
|
|
1304
|
-
* @param {*} [options] Override http request option.
|
|
1305
|
-
* @throws {RequiredError}
|
|
1306
|
-
*/
|
|
1307
|
-
uploadAccountDocuments(customerCode: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
1308
|
-
return localVarFp.uploadAccountDocuments(customerCode, options).then((request) => request(axios, basePath));
|
|
1309
|
-
},
|
|
1310
|
-
/**
|
|
1311
|
-
* Verify the invite sent to the customer via email.
|
|
1312
|
-
* @summary Verify customer\'s invite token
|
|
1313
|
-
* @param {string} inviteToken Invite token sent to the customer
|
|
1314
|
-
* @param {*} [options] Override http request option.
|
|
1315
|
-
* @throws {RequiredError}
|
|
1316
|
-
*/
|
|
1317
|
-
verifyInvite(inviteToken: string, options?: any): AxiosPromise<VerifyCustomerInviteResponseClass> {
|
|
1318
|
-
return localVarFp.verifyInvite(inviteToken, options).then((request) => request(axios, basePath));
|
|
1319
|
-
},
|
|
1320
|
-
/**
|
|
1321
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
1322
|
-
* @summary Verify a reset password token
|
|
1323
|
-
* @param {string} resetToken reset password token
|
|
1324
|
-
* @param {*} [options] Override http request option.
|
|
1325
|
-
* @throws {RequiredError}
|
|
1326
|
-
*/
|
|
1327
|
-
verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void> {
|
|
1328
|
-
return localVarFp.verifyResetPasswordToken(resetToken, options).then((request) => request(axios, basePath));
|
|
1329
|
-
},
|
|
1330
|
-
};
|
|
1331
|
-
};
|
|
1332
|
-
|
|
1333
|
-
/**
|
|
1334
|
-
* Request parameters for completePaymentSetup operation in CustomersApi.
|
|
1335
|
-
* @export
|
|
1336
|
-
* @interface CustomersApiCompletePaymentSetupRequest
|
|
1337
|
-
*/
|
|
1338
|
-
export interface CustomersApiCompletePaymentSetupRequest {
|
|
1339
|
-
/**
|
|
1340
|
-
* The customer code or \"me\" for the currently logged in customer.
|
|
1341
|
-
* @type {string}
|
|
1342
|
-
* @memberof CustomersApiCompletePaymentSetup
|
|
1343
|
-
*/
|
|
1344
|
-
readonly customerCode: string
|
|
1345
|
-
|
|
1346
|
-
/**
|
|
1347
|
-
*
|
|
1348
|
-
* @type {CompletePaymentSetupPspRequest}
|
|
1349
|
-
* @memberof CustomersApiCompletePaymentSetup
|
|
1350
|
-
*/
|
|
1351
|
-
readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1355
|
-
* @type {string}
|
|
1356
|
-
* @memberof CustomersApiCompletePaymentSetup
|
|
1357
|
-
*/
|
|
1358
|
-
readonly authorization?: string
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
/**
|
|
1362
|
-
* Request parameters for createCustomer operation in CustomersApi.
|
|
1363
|
-
* @export
|
|
1364
|
-
* @interface CustomersApiCreateCustomerRequest
|
|
1365
|
-
*/
|
|
1366
|
-
export interface CustomersApiCreateCustomerRequest {
|
|
1367
|
-
/**
|
|
1368
|
-
*
|
|
1369
|
-
* @type {CreateCustomerRequestDto}
|
|
1370
|
-
* @memberof CustomersApiCreateCustomer
|
|
1371
|
-
*/
|
|
1372
|
-
readonly createCustomerRequestDto: CreateCustomerRequestDto
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* Request parameters for forgotPassword operation in CustomersApi.
|
|
1377
|
-
* @export
|
|
1378
|
-
* @interface CustomersApiForgotPasswordRequest
|
|
1379
|
-
*/
|
|
1380
|
-
export interface CustomersApiForgotPasswordRequest {
|
|
1381
|
-
/**
|
|
1382
|
-
*
|
|
1383
|
-
* @type {ForgotPasswordRequestDto}
|
|
1384
|
-
* @memberof CustomersApiForgotPassword
|
|
1385
|
-
*/
|
|
1386
|
-
readonly forgotPasswordRequestDto: ForgotPasswordRequestDto
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* Request parameters for getCustomer operation in CustomersApi.
|
|
1391
|
-
* @export
|
|
1392
|
-
* @interface CustomersApiGetCustomerRequest
|
|
1393
|
-
*/
|
|
1394
|
-
export interface CustomersApiGetCustomerRequest {
|
|
1395
|
-
/**
|
|
1396
|
-
* The customer code or \"me\" for the currently logged in customer.
|
|
1397
|
-
* @type {string}
|
|
1398
|
-
* @memberof CustomersApiGetCustomer
|
|
1399
|
-
*/
|
|
1400
|
-
readonly customerCode: string
|
|
1401
|
-
|
|
1402
|
-
/**
|
|
1403
|
-
* Fields to expand response by - [account]
|
|
1404
|
-
* @type {string}
|
|
1405
|
-
* @memberof CustomersApiGetCustomer
|
|
1406
|
-
*/
|
|
1407
|
-
readonly expand?: string
|
|
1408
|
-
|
|
1409
|
-
/**
|
|
1410
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1411
|
-
* @type {string}
|
|
1412
|
-
* @memberof CustomersApiGetCustomer
|
|
1413
|
-
*/
|
|
1414
|
-
readonly authorization?: string
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* Request parameters for getCustomerDocumentDownloadUrl operation in CustomersApi.
|
|
1419
|
-
* @export
|
|
1420
|
-
* @interface CustomersApiGetCustomerDocumentDownloadUrlRequest
|
|
1421
|
-
*/
|
|
1422
|
-
export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
|
|
1423
|
-
/**
|
|
1424
|
-
* The document code.
|
|
1425
|
-
* @type {string}
|
|
1426
|
-
* @memberof CustomersApiGetCustomerDocumentDownloadUrl
|
|
1427
|
-
*/
|
|
1428
|
-
readonly documentCode: string
|
|
1429
|
-
|
|
1430
|
-
/**
|
|
1431
|
-
*
|
|
1432
|
-
* @type {string}
|
|
1433
|
-
* @memberof CustomersApiGetCustomerDocumentDownloadUrl
|
|
1434
|
-
*/
|
|
1435
|
-
readonly customerCode: string
|
|
1436
|
-
|
|
1437
|
-
/**
|
|
1438
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1439
|
-
* @type {string}
|
|
1440
|
-
* @memberof CustomersApiGetCustomerDocumentDownloadUrl
|
|
1441
|
-
*/
|
|
1442
|
-
readonly authorization?: string
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
* Request parameters for initiateAuth operation in CustomersApi.
|
|
1447
|
-
* @export
|
|
1448
|
-
* @interface CustomersApiInitiateAuthRequest
|
|
1449
|
-
*/
|
|
1450
|
-
export interface CustomersApiInitiateAuthRequest {
|
|
1451
|
-
/**
|
|
1452
|
-
*
|
|
1453
|
-
* @type {InitiateAuthRequestDto}
|
|
1454
|
-
* @memberof CustomersApiInitiateAuth
|
|
1455
|
-
*/
|
|
1456
|
-
readonly initiateAuthRequestDto: InitiateAuthRequestDto
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
/**
|
|
1460
|
-
* Request parameters for initiatePaymentSetup operation in CustomersApi.
|
|
1461
|
-
* @export
|
|
1462
|
-
* @interface CustomersApiInitiatePaymentSetupRequest
|
|
1463
|
-
*/
|
|
1464
|
-
export interface CustomersApiInitiatePaymentSetupRequest {
|
|
1465
|
-
/**
|
|
1466
|
-
* The customer code or \"me\" for the currently logged in customer.
|
|
1467
|
-
* @type {string}
|
|
1468
|
-
* @memberof CustomersApiInitiatePaymentSetup
|
|
1469
|
-
*/
|
|
1470
|
-
readonly customerCode: string
|
|
1471
|
-
|
|
1472
|
-
/**
|
|
1473
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1474
|
-
* @type {string}
|
|
1475
|
-
* @memberof CustomersApiInitiatePaymentSetup
|
|
1476
|
-
*/
|
|
1477
|
-
readonly authorization?: string
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
/**
|
|
1481
|
-
* Request parameters for inviteByCustomer operation in CustomersApi.
|
|
1482
|
-
* @export
|
|
1483
|
-
* @interface CustomersApiInviteByCustomerRequest
|
|
1484
|
-
*/
|
|
1485
|
-
export interface CustomersApiInviteByCustomerRequest {
|
|
1486
|
-
/**
|
|
1487
|
-
*
|
|
1488
|
-
* @type {InviteByCustomerRequestDto}
|
|
1489
|
-
* @memberof CustomersApiInviteByCustomer
|
|
1490
|
-
*/
|
|
1491
|
-
readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1495
|
-
* @type {string}
|
|
1496
|
-
* @memberof CustomersApiInviteByCustomer
|
|
1497
|
-
*/
|
|
1498
|
-
readonly authorization?: string
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
/**
|
|
1502
|
-
* Request parameters for inviteByTenant operation in CustomersApi.
|
|
1503
|
-
* @export
|
|
1504
|
-
* @interface CustomersApiInviteByTenantRequest
|
|
1505
|
-
*/
|
|
1506
|
-
export interface CustomersApiInviteByTenantRequest {
|
|
1507
|
-
/**
|
|
1508
|
-
*
|
|
1509
|
-
* @type {InviteByCustomerRequestDto}
|
|
1510
|
-
* @memberof CustomersApiInviteByTenant
|
|
1511
|
-
*/
|
|
1512
|
-
readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
|
|
1513
|
-
|
|
1514
|
-
/**
|
|
1515
|
-
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1516
|
-
* @type {string}
|
|
1517
|
-
* @memberof CustomersApiInviteByTenant
|
|
1518
|
-
*/
|
|
1519
|
-
readonly authorization?: string
|
|
1520
|
-
}
|
|
199
|
+
updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
200
|
+
return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
};
|
|
1521
204
|
|
|
1522
205
|
/**
|
|
1523
|
-
* Request parameters for
|
|
206
|
+
* Request parameters for getCustomer operation in CustomersApi.
|
|
1524
207
|
* @export
|
|
1525
|
-
* @interface
|
|
208
|
+
* @interface CustomersApiGetCustomerRequest
|
|
1526
209
|
*/
|
|
1527
|
-
export interface
|
|
210
|
+
export interface CustomersApiGetCustomerRequest {
|
|
1528
211
|
/**
|
|
1529
212
|
* The customer code or \"me\" for the currently logged in customer.
|
|
1530
213
|
* @type {string}
|
|
1531
|
-
* @memberof
|
|
214
|
+
* @memberof CustomersApiGetCustomer
|
|
1532
215
|
*/
|
|
1533
216
|
readonly customerCode: string
|
|
1534
217
|
|
|
1535
218
|
/**
|
|
1536
|
-
*
|
|
1537
|
-
* @type {any}
|
|
1538
|
-
* @memberof CustomersApiListDocuments
|
|
1539
|
-
*/
|
|
1540
|
-
readonly pageSize?: any
|
|
1541
|
-
|
|
1542
|
-
/**
|
|
1543
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1544
|
-
* @type {any}
|
|
1545
|
-
* @memberof CustomersApiListDocuments
|
|
1546
|
-
*/
|
|
1547
|
-
readonly pageToken?: any
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1551
|
-
* @type {any}
|
|
1552
|
-
* @memberof CustomersApiListDocuments
|
|
1553
|
-
*/
|
|
1554
|
-
readonly filter?: any
|
|
1555
|
-
|
|
1556
|
-
/**
|
|
1557
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1558
|
-
* @type {any}
|
|
1559
|
-
* @memberof CustomersApiListDocuments
|
|
1560
|
-
*/
|
|
1561
|
-
readonly search?: any
|
|
1562
|
-
|
|
1563
|
-
/**
|
|
1564
|
-
* 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.
|
|
1565
|
-
* @type {any}
|
|
1566
|
-
* @memberof CustomersApiListDocuments
|
|
1567
|
-
*/
|
|
1568
|
-
readonly order?: any
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* 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.
|
|
1572
|
-
* @type {any}
|
|
1573
|
-
* @memberof CustomersApiListDocuments
|
|
1574
|
-
*/
|
|
1575
|
-
readonly expand?: any
|
|
1576
|
-
|
|
1577
|
-
/**
|
|
1578
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1579
|
-
* @type {string}
|
|
1580
|
-
* @memberof CustomersApiListDocuments
|
|
1581
|
-
*/
|
|
1582
|
-
readonly authorization?: string
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
/**
|
|
1586
|
-
* Request parameters for listInvoices operation in CustomersApi.
|
|
1587
|
-
* @export
|
|
1588
|
-
* @interface CustomersApiListInvoicesRequest
|
|
1589
|
-
*/
|
|
1590
|
-
export interface CustomersApiListInvoicesRequest {
|
|
1591
|
-
/**
|
|
1592
|
-
* The customer code or \"me\" for the currently logged in customer.
|
|
219
|
+
* Fields to expand response by - [account]
|
|
1593
220
|
* @type {string}
|
|
1594
|
-
* @memberof
|
|
1595
|
-
*/
|
|
1596
|
-
readonly customerCode: string
|
|
1597
|
-
|
|
1598
|
-
/**
|
|
1599
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1600
|
-
* @type {any}
|
|
1601
|
-
* @memberof CustomersApiListInvoices
|
|
1602
|
-
*/
|
|
1603
|
-
readonly pageSize?: any
|
|
1604
|
-
|
|
1605
|
-
/**
|
|
1606
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1607
|
-
* @type {any}
|
|
1608
|
-
* @memberof CustomersApiListInvoices
|
|
1609
|
-
*/
|
|
1610
|
-
readonly pageToken?: any
|
|
1611
|
-
|
|
1612
|
-
/**
|
|
1613
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1614
|
-
* @type {any}
|
|
1615
|
-
* @memberof CustomersApiListInvoices
|
|
1616
|
-
*/
|
|
1617
|
-
readonly filter?: any
|
|
1618
|
-
|
|
1619
|
-
/**
|
|
1620
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1621
|
-
* @type {any}
|
|
1622
|
-
* @memberof CustomersApiListInvoices
|
|
1623
|
-
*/
|
|
1624
|
-
readonly search?: any
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* 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.
|
|
1628
|
-
* @type {any}
|
|
1629
|
-
* @memberof CustomersApiListInvoices
|
|
1630
|
-
*/
|
|
1631
|
-
readonly order?: any
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* 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.
|
|
1635
|
-
* @type {any}
|
|
1636
|
-
* @memberof CustomersApiListInvoices
|
|
221
|
+
* @memberof CustomersApiGetCustomer
|
|
1637
222
|
*/
|
|
1638
|
-
readonly expand?:
|
|
223
|
+
readonly expand?: string
|
|
1639
224
|
|
|
1640
225
|
/**
|
|
1641
226
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1642
227
|
* @type {string}
|
|
1643
|
-
* @memberof
|
|
228
|
+
* @memberof CustomersApiGetCustomer
|
|
1644
229
|
*/
|
|
1645
230
|
readonly authorization?: string
|
|
1646
231
|
}
|
|
1647
232
|
|
|
1648
|
-
/**
|
|
1649
|
-
* Request parameters for refreshToken operation in CustomersApi.
|
|
1650
|
-
* @export
|
|
1651
|
-
* @interface CustomersApiRefreshTokenRequest
|
|
1652
|
-
*/
|
|
1653
|
-
export interface CustomersApiRefreshTokenRequest {
|
|
1654
|
-
/**
|
|
1655
|
-
*
|
|
1656
|
-
* @type {RefreshTokenDto}
|
|
1657
|
-
* @memberof CustomersApiRefreshToken
|
|
1658
|
-
*/
|
|
1659
|
-
readonly refreshTokenDto: RefreshTokenDto
|
|
1660
|
-
|
|
1661
|
-
/**
|
|
1662
|
-
* HTTP only cookie that was sent during login.
|
|
1663
|
-
* @type {string}
|
|
1664
|
-
* @memberof CustomersApiRefreshToken
|
|
1665
|
-
*/
|
|
1666
|
-
readonly cookie?: string
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* Request parameters for resetPassword operation in CustomersApi.
|
|
1671
|
-
* @export
|
|
1672
|
-
* @interface CustomersApiResetPasswordRequest
|
|
1673
|
-
*/
|
|
1674
|
-
export interface CustomersApiResetPasswordRequest {
|
|
1675
|
-
/**
|
|
1676
|
-
*
|
|
1677
|
-
* @type {ResetPasswordByCustomerRequestDto}
|
|
1678
|
-
* @memberof CustomersApiResetPassword
|
|
1679
|
-
*/
|
|
1680
|
-
readonly resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
/**
|
|
1684
|
-
* Request parameters for respondToAuthChallenge operation in CustomersApi.
|
|
1685
|
-
* @export
|
|
1686
|
-
* @interface CustomersApiRespondToAuthChallengeRequest
|
|
1687
|
-
*/
|
|
1688
|
-
export interface CustomersApiRespondToAuthChallengeRequest {
|
|
1689
|
-
/**
|
|
1690
|
-
*
|
|
1691
|
-
* @type {RespondToAuthChallengeRequestDto}
|
|
1692
|
-
* @memberof CustomersApiRespondToAuthChallenge
|
|
1693
|
-
*/
|
|
1694
|
-
readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
233
|
/**
|
|
1698
234
|
* Request parameters for updateCustomer operation in CustomersApi.
|
|
1699
235
|
* @export
|
|
@@ -1722,48 +258,6 @@ export interface CustomersApiUpdateCustomerRequest {
|
|
|
1722
258
|
readonly authorization?: string
|
|
1723
259
|
}
|
|
1724
260
|
|
|
1725
|
-
/**
|
|
1726
|
-
* Request parameters for uploadAccountDocuments operation in CustomersApi.
|
|
1727
|
-
* @export
|
|
1728
|
-
* @interface CustomersApiUploadAccountDocumentsRequest
|
|
1729
|
-
*/
|
|
1730
|
-
export interface CustomersApiUploadAccountDocumentsRequest {
|
|
1731
|
-
/**
|
|
1732
|
-
*
|
|
1733
|
-
* @type {string}
|
|
1734
|
-
* @memberof CustomersApiUploadAccountDocuments
|
|
1735
|
-
*/
|
|
1736
|
-
readonly customerCode: string
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
/**
|
|
1740
|
-
* Request parameters for verifyInvite operation in CustomersApi.
|
|
1741
|
-
* @export
|
|
1742
|
-
* @interface CustomersApiVerifyInviteRequest
|
|
1743
|
-
*/
|
|
1744
|
-
export interface CustomersApiVerifyInviteRequest {
|
|
1745
|
-
/**
|
|
1746
|
-
* Invite token sent to the customer
|
|
1747
|
-
* @type {string}
|
|
1748
|
-
* @memberof CustomersApiVerifyInvite
|
|
1749
|
-
*/
|
|
1750
|
-
readonly inviteToken: string
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
/**
|
|
1754
|
-
* Request parameters for verifyResetPasswordToken operation in CustomersApi.
|
|
1755
|
-
* @export
|
|
1756
|
-
* @interface CustomersApiVerifyResetPasswordTokenRequest
|
|
1757
|
-
*/
|
|
1758
|
-
export interface CustomersApiVerifyResetPasswordTokenRequest {
|
|
1759
|
-
/**
|
|
1760
|
-
* reset password token
|
|
1761
|
-
* @type {string}
|
|
1762
|
-
* @memberof CustomersApiVerifyResetPasswordToken
|
|
1763
|
-
*/
|
|
1764
|
-
readonly resetToken: string
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
261
|
/**
|
|
1768
262
|
* CustomersApi - object-oriented interface
|
|
1769
263
|
* @export
|
|
@@ -1771,42 +265,6 @@ export interface CustomersApiVerifyResetPasswordTokenRequest {
|
|
|
1771
265
|
* @extends {BaseAPI}
|
|
1772
266
|
*/
|
|
1773
267
|
export class CustomersApi extends BaseAPI {
|
|
1774
|
-
/**
|
|
1775
|
-
* Request to complete a payment change by customer.
|
|
1776
|
-
* @summary Request payment setup complete by customer
|
|
1777
|
-
* @param {CustomersApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
1778
|
-
* @param {*} [options] Override http request option.
|
|
1779
|
-
* @throws {RequiredError}
|
|
1780
|
-
* @memberof CustomersApi
|
|
1781
|
-
*/
|
|
1782
|
-
public completePaymentSetup(requestParameters: CustomersApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
1783
|
-
return CustomersApiFp(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
/**
|
|
1787
|
-
* 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.
|
|
1788
|
-
* @summary Register a customer after invite
|
|
1789
|
-
* @param {CustomersApiCreateCustomerRequest} requestParameters Request parameters.
|
|
1790
|
-
* @param {*} [options] Override http request option.
|
|
1791
|
-
* @throws {RequiredError}
|
|
1792
|
-
* @memberof CustomersApi
|
|
1793
|
-
*/
|
|
1794
|
-
public createCustomer(requestParameters: CustomersApiCreateCustomerRequest, options?: AxiosRequestConfig) {
|
|
1795
|
-
return CustomersApiFp(this.configuration).createCustomer(requestParameters.createCustomerRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* Send a customer a reset-password token via email.
|
|
1800
|
-
* @summary Forgot password by customer
|
|
1801
|
-
* @param {CustomersApiForgotPasswordRequest} requestParameters Request parameters.
|
|
1802
|
-
* @param {*} [options] Override http request option.
|
|
1803
|
-
* @throws {RequiredError}
|
|
1804
|
-
* @memberof CustomersApi
|
|
1805
|
-
*/
|
|
1806
|
-
public forgotPassword(requestParameters: CustomersApiForgotPasswordRequest, options?: AxiosRequestConfig) {
|
|
1807
|
-
return CustomersApiFp(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
268
|
/**
|
|
1811
269
|
* Get customer details.
|
|
1812
270
|
* @summary Get customer details
|
|
@@ -1819,126 +277,6 @@ export class CustomersApi extends BaseAPI {
|
|
|
1819
277
|
return CustomersApiFp(this.configuration).getCustomer(requestParameters.customerCode, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1820
278
|
}
|
|
1821
279
|
|
|
1822
|
-
/**
|
|
1823
|
-
* Get a presigned download url for document.
|
|
1824
|
-
* @summary Get a presigned download url for document
|
|
1825
|
-
* @param {CustomersApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
1826
|
-
* @param {*} [options] Override http request option.
|
|
1827
|
-
* @throws {RequiredError}
|
|
1828
|
-
* @memberof CustomersApi
|
|
1829
|
-
*/
|
|
1830
|
-
public getCustomerDocumentDownloadUrl(requestParameters: CustomersApiGetCustomerDocumentDownloadUrlRequest, options?: AxiosRequestConfig) {
|
|
1831
|
-
return CustomersApiFp(this.configuration).getCustomerDocumentDownloadUrl(requestParameters.documentCode, requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Start auth process to get new access token, refresh token after successful login.
|
|
1836
|
-
* @summary Initiate auth by customer
|
|
1837
|
-
* @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
|
|
1838
|
-
* @param {*} [options] Override http request option.
|
|
1839
|
-
* @throws {RequiredError}
|
|
1840
|
-
* @memberof CustomersApi
|
|
1841
|
-
*/
|
|
1842
|
-
public initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig) {
|
|
1843
|
-
return CustomersApiFp(this.configuration).initiateAuth(requestParameters.initiateAuthRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
/**
|
|
1847
|
-
* Request to initiate a payment change by customer.
|
|
1848
|
-
* @summary Request payment setup initiation by customer
|
|
1849
|
-
* @param {CustomersApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
1850
|
-
* @param {*} [options] Override http request option.
|
|
1851
|
-
* @throws {RequiredError}
|
|
1852
|
-
* @memberof CustomersApi
|
|
1853
|
-
*/
|
|
1854
|
-
public initiatePaymentSetup(requestParameters: CustomersApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
1855
|
-
return CustomersApiFp(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
/**
|
|
1859
|
-
* 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.
|
|
1860
|
-
* @summary Invite a customer by self
|
|
1861
|
-
* @param {CustomersApiInviteByCustomerRequest} requestParameters Request parameters.
|
|
1862
|
-
* @param {*} [options] Override http request option.
|
|
1863
|
-
* @throws {RequiredError}
|
|
1864
|
-
* @memberof CustomersApi
|
|
1865
|
-
*/
|
|
1866
|
-
public inviteByCustomer(requestParameters: CustomersApiInviteByCustomerRequest, options?: AxiosRequestConfig) {
|
|
1867
|
-
return CustomersApiFp(this.configuration).inviteByCustomer(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
/**
|
|
1871
|
-
* 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.
|
|
1872
|
-
* @summary Invite a customer by tenant
|
|
1873
|
-
* @param {CustomersApiInviteByTenantRequest} requestParameters Request parameters.
|
|
1874
|
-
* @param {*} [options] Override http request option.
|
|
1875
|
-
* @throws {RequiredError}
|
|
1876
|
-
* @memberof CustomersApi
|
|
1877
|
-
*/
|
|
1878
|
-
public inviteByTenant(requestParameters: CustomersApiInviteByTenantRequest, options?: AxiosRequestConfig) {
|
|
1879
|
-
return CustomersApiFp(this.configuration).inviteByTenant(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* List all the documents of a customer.
|
|
1884
|
-
* @summary List documents of a customer
|
|
1885
|
-
* @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
|
|
1886
|
-
* @param {*} [options] Override http request option.
|
|
1887
|
-
* @throws {RequiredError}
|
|
1888
|
-
* @memberof CustomersApi
|
|
1889
|
-
*/
|
|
1890
|
-
public listDocuments(requestParameters: CustomersApiListDocumentsRequest, options?: AxiosRequestConfig) {
|
|
1891
|
-
return CustomersApiFp(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
/**
|
|
1895
|
-
* List all the invoices of a customer.
|
|
1896
|
-
* @summary List invoices of a customer
|
|
1897
|
-
* @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
|
|
1898
|
-
* @param {*} [options] Override http request option.
|
|
1899
|
-
* @throws {RequiredError}
|
|
1900
|
-
* @memberof CustomersApi
|
|
1901
|
-
*/
|
|
1902
|
-
public listInvoices(requestParameters: CustomersApiListInvoicesRequest, options?: AxiosRequestConfig) {
|
|
1903
|
-
return CustomersApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
/**
|
|
1907
|
-
* Get new access token, new refresh token.
|
|
1908
|
-
* @summary Refresh token by customer
|
|
1909
|
-
* @param {CustomersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
1910
|
-
* @param {*} [options] Override http request option.
|
|
1911
|
-
* @throws {RequiredError}
|
|
1912
|
-
* @memberof CustomersApi
|
|
1913
|
-
*/
|
|
1914
|
-
public refreshToken(requestParameters: CustomersApiRefreshTokenRequest, options?: AxiosRequestConfig) {
|
|
1915
|
-
return CustomersApiFp(this.configuration).refreshToken(requestParameters.refreshTokenDto, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
/**
|
|
1919
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1920
|
-
* @summary Change password by customer
|
|
1921
|
-
* @param {CustomersApiResetPasswordRequest} requestParameters Request parameters.
|
|
1922
|
-
* @param {*} [options] Override http request option.
|
|
1923
|
-
* @throws {RequiredError}
|
|
1924
|
-
* @memberof CustomersApi
|
|
1925
|
-
*/
|
|
1926
|
-
public resetPassword(requestParameters: CustomersApiResetPasswordRequest, options?: AxiosRequestConfig) {
|
|
1927
|
-
return CustomersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordByCustomerRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
/**
|
|
1931
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
1932
|
-
* @summary Respond to auth challenge by customer
|
|
1933
|
-
* @param {CustomersApiRespondToAuthChallengeRequest} requestParameters Request parameters.
|
|
1934
|
-
* @param {*} [options] Override http request option.
|
|
1935
|
-
* @throws {RequiredError}
|
|
1936
|
-
* @memberof CustomersApi
|
|
1937
|
-
*/
|
|
1938
|
-
public respondToAuthChallenge(requestParameters: CustomersApiRespondToAuthChallengeRequest, options?: AxiosRequestConfig) {
|
|
1939
|
-
return CustomersApiFp(this.configuration).respondToAuthChallenge(requestParameters.respondToAuthChallengeRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
280
|
/**
|
|
1943
281
|
* Update customer details like phone, email, names, addresses etc.
|
|
1944
282
|
* @summary Update customer details
|
|
@@ -1950,40 +288,4 @@ export class CustomersApi extends BaseAPI {
|
|
|
1950
288
|
public updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig) {
|
|
1951
289
|
return CustomersApiFp(this.configuration).updateCustomer(requestParameters.customerCode, requestParameters.updateCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1952
290
|
}
|
|
1953
|
-
|
|
1954
|
-
/**
|
|
1955
|
-
* API to upload and attach documents to an account.
|
|
1956
|
-
* @summary Upload account documents
|
|
1957
|
-
* @param {CustomersApiUploadAccountDocumentsRequest} requestParameters Request parameters.
|
|
1958
|
-
* @param {*} [options] Override http request option.
|
|
1959
|
-
* @throws {RequiredError}
|
|
1960
|
-
* @memberof CustomersApi
|
|
1961
|
-
*/
|
|
1962
|
-
public uploadAccountDocuments(requestParameters: CustomersApiUploadAccountDocumentsRequest, options?: AxiosRequestConfig) {
|
|
1963
|
-
return CustomersApiFp(this.configuration).uploadAccountDocuments(requestParameters.customerCode, options).then((request) => request(this.axios, this.basePath));
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
/**
|
|
1967
|
-
* Verify the invite sent to the customer via email.
|
|
1968
|
-
* @summary Verify customer\'s invite token
|
|
1969
|
-
* @param {CustomersApiVerifyInviteRequest} requestParameters Request parameters.
|
|
1970
|
-
* @param {*} [options] Override http request option.
|
|
1971
|
-
* @throws {RequiredError}
|
|
1972
|
-
* @memberof CustomersApi
|
|
1973
|
-
*/
|
|
1974
|
-
public verifyInvite(requestParameters: CustomersApiVerifyInviteRequest, options?: AxiosRequestConfig) {
|
|
1975
|
-
return CustomersApiFp(this.configuration).verifyInvite(requestParameters.inviteToken, options).then((request) => request(this.axios, this.basePath));
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
/**
|
|
1979
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
1980
|
-
* @summary Verify a reset password token
|
|
1981
|
-
* @param {CustomersApiVerifyResetPasswordTokenRequest} requestParameters Request parameters.
|
|
1982
|
-
* @param {*} [options] Override http request option.
|
|
1983
|
-
* @throws {RequiredError}
|
|
1984
|
-
* @memberof CustomersApi
|
|
1985
|
-
*/
|
|
1986
|
-
public verifyResetPasswordToken(requestParameters: CustomersApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig) {
|
|
1987
|
-
return CustomersApiFp(this.configuration).verifyResetPasswordToken(requestParameters.resetToken, options).then((request) => request(this.axios, this.basePath));
|
|
1988
|
-
}
|
|
1989
291
|
}
|