@emilgroup/account-sdk-node 1.0.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 +24 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/accounts-api.ts +667 -0
- package/api.ts +36 -0
- package/base.ts +189 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/accounts-api.d.ts +375 -0
- package/dist/api/accounts-api.js +634 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +36 -0
- package/dist/base.d.ts +69 -0
- package/dist/base.js +252 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/account-class.d.ts +132 -0
- package/dist/models/account-class.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +102 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-account-response-class.d.ts +25 -0
- package/dist/models/create-account-response-class.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/get-account-request-dto.d.ts +30 -0
- package/dist/models/get-account-request-dto.js +15 -0
- package/dist/models/get-account-response-class.d.ts +25 -0
- package/dist/models/get-account-response-class.js +15 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +26 -0
- package/dist/models/list-accounts-response-class.d.ts +31 -0
- package/dist/models/list-accounts-response-class.js +15 -0
- package/dist/models/register-policy-request-dto.d.ts +36 -0
- package/dist/models/register-policy-request-dto.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +108 -0
- package/dist/models/update-account-request-dto.js +21 -0
- package/dist/models/update-account-response-class.d.ts +25 -0
- package/dist/models/update-account-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/account-class.ts +138 -0
- package/models/create-account-request-dto.ts +111 -0
- package/models/create-account-response-class.ts +31 -0
- package/models/delete-request-dto.ts +30 -0
- package/models/get-account-request-dto.ts +36 -0
- package/models/get-account-response-class.ts +31 -0
- package/models/index.ts +10 -0
- package/models/list-accounts-response-class.ts +37 -0
- package/models/register-policy-request-dto.ts +42 -0
- package/models/update-account-request-dto.ts +117 -0
- package/models/update-account-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountService
|
|
5
|
+
* The EMIL AccountService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateAccountRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateAccountResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetAccountResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListAccountsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateAccountRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateAccountResponseClass } from '../models';
|
|
35
|
+
// URLSearchParams not necessarily used
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import { URL, URLSearchParams } from 'url';
|
|
38
|
+
const FormData = require('form-data');
|
|
39
|
+
/**
|
|
40
|
+
* AccountsApi - axios parameter creator
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
47
|
+
* @summary Create the account
|
|
48
|
+
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
49
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
createAccount: async (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
// verify required parameter 'createAccountRequestDto' is not null or undefined
|
|
55
|
+
assertParamExists('createAccount', 'createAccountRequestDto', createAccountRequestDto)
|
|
56
|
+
const localVarPath = `/accountservice/v1/accounts`;
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
let baseAccessToken;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
baseAccessToken = configuration.accessToken;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
// authentication bearer required
|
|
71
|
+
// http bearer authentication required
|
|
72
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
|
+
|
|
74
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
+
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAccountRequestDto, localVarRequestOptions, configuration)
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
94
|
+
* @summary Delete the account
|
|
95
|
+
* @param {string} code Unique identifier for the object.
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
deleteAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'code' is not null or undefined
|
|
102
|
+
assertParamExists('deleteAccount', 'code', code)
|
|
103
|
+
const localVarPath = `/accountservice/v1/accounts/{code}`
|
|
104
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
let baseAccessToken;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
baseAccessToken = configuration.accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
+
|
|
122
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
139
|
+
* @summary Retrieve the account
|
|
140
|
+
* @param {string} code Unique identifier for the object.
|
|
141
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
|
+
* @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
getAccount: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
|
+
// verify required parameter 'code' is not null or undefined
|
|
148
|
+
assertParamExists('getAccount', 'code', code)
|
|
149
|
+
const localVarPath = `/accountservice/v1/accounts/{code}`
|
|
150
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
153
|
+
let baseOptions;
|
|
154
|
+
let baseAccessToken;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
157
|
+
baseAccessToken = configuration.accessToken;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
161
|
+
const localVarHeaderParameter = {} as any;
|
|
162
|
+
const localVarQueryParameter = {} as any;
|
|
163
|
+
|
|
164
|
+
// authentication bearer required
|
|
165
|
+
// http bearer authentication required
|
|
166
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
167
|
+
|
|
168
|
+
if (expand !== undefined) {
|
|
169
|
+
localVarQueryParameter['expand'] = expand;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
173
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
181
|
+
|
|
182
|
+
return {
|
|
183
|
+
url: toPathString(localVarUrlObj),
|
|
184
|
+
options: localVarRequestOptions,
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
|
|
189
|
+
* @summary List accounts
|
|
190
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
191
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
192
|
+
* @param {string} [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.
|
|
193
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
|
|
194
|
+
* @param {string} [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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
|
|
195
|
+
* @param {string} [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. Parameters: **policy**.
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
listAccounts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
|
+
const localVarPath = `/accountservice/v1/accounts`;
|
|
201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
203
|
+
let baseOptions;
|
|
204
|
+
let baseAccessToken;
|
|
205
|
+
if (configuration) {
|
|
206
|
+
baseOptions = configuration.baseOptions;
|
|
207
|
+
baseAccessToken = configuration.accessToken;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
211
|
+
const localVarHeaderParameter = {} as any;
|
|
212
|
+
const localVarQueryParameter = {} as any;
|
|
213
|
+
|
|
214
|
+
// authentication bearer required
|
|
215
|
+
// http bearer authentication required
|
|
216
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
217
|
+
|
|
218
|
+
if (pageSize !== undefined) {
|
|
219
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (pageToken !== undefined) {
|
|
223
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (filter !== undefined) {
|
|
227
|
+
localVarQueryParameter['filter'] = filter;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (order !== undefined) {
|
|
231
|
+
localVarQueryParameter['order'] = order;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (expand !== undefined) {
|
|
235
|
+
localVarQueryParameter['expand'] = expand;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
239
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
245
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
247
|
+
|
|
248
|
+
return {
|
|
249
|
+
url: toPathString(localVarUrlObj),
|
|
250
|
+
options: localVarRequestOptions,
|
|
251
|
+
};
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
255
|
+
* @summary Update the account
|
|
256
|
+
* @param {string} code Unique identifier for the object.
|
|
257
|
+
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
258
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
updateAccount: async (code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
+
// verify required parameter 'code' is not null or undefined
|
|
264
|
+
assertParamExists('updateAccount', 'code', code)
|
|
265
|
+
// verify required parameter 'updateAccountRequestDto' is not null or undefined
|
|
266
|
+
assertParamExists('updateAccount', 'updateAccountRequestDto', updateAccountRequestDto)
|
|
267
|
+
const localVarPath = `/accountservice/v1/accounts/{code}`
|
|
268
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
|
+
let baseOptions;
|
|
272
|
+
let baseAccessToken;
|
|
273
|
+
if (configuration) {
|
|
274
|
+
baseOptions = configuration.baseOptions;
|
|
275
|
+
baseAccessToken = configuration.accessToken;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
279
|
+
const localVarHeaderParameter = {} as any;
|
|
280
|
+
const localVarQueryParameter = {} as any;
|
|
281
|
+
|
|
282
|
+
// authentication bearer required
|
|
283
|
+
// http bearer authentication required
|
|
284
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
285
|
+
|
|
286
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
287
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
293
|
+
|
|
294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
297
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAccountRequestDto, localVarRequestOptions, configuration)
|
|
298
|
+
|
|
299
|
+
return {
|
|
300
|
+
url: toPathString(localVarUrlObj),
|
|
301
|
+
options: localVarRequestOptions,
|
|
302
|
+
};
|
|
303
|
+
},
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* AccountsApi - functional programming interface
|
|
309
|
+
* @export
|
|
310
|
+
*/
|
|
311
|
+
export const AccountsApiFp = function(configuration?: Configuration) {
|
|
312
|
+
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
|
|
313
|
+
return {
|
|
314
|
+
/**
|
|
315
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
316
|
+
* @summary Create the account
|
|
317
|
+
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
318
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
319
|
+
* @param {*} [options] Override http request option.
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
*/
|
|
322
|
+
async createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>> {
|
|
323
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAccount(createAccountRequestDto, authorization, options);
|
|
324
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
325
|
+
},
|
|
326
|
+
/**
|
|
327
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
328
|
+
* @summary Delete the account
|
|
329
|
+
* @param {string} code Unique identifier for the object.
|
|
330
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
async deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccount(code, authorization, options);
|
|
336
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
340
|
+
* @summary Retrieve the account
|
|
341
|
+
* @param {string} code Unique identifier for the object.
|
|
342
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
343
|
+
* @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
async getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>> {
|
|
348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(code, authorization, expand, options);
|
|
349
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
350
|
+
},
|
|
351
|
+
/**
|
|
352
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
|
|
353
|
+
* @summary List accounts
|
|
354
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
355
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
356
|
+
* @param {string} [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.
|
|
357
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
|
|
358
|
+
* @param {string} [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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
|
|
359
|
+
* @param {string} [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. Parameters: **policy**.
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
async listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>> {
|
|
364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, order, expand, options);
|
|
365
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
|
+
},
|
|
367
|
+
/**
|
|
368
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
369
|
+
* @summary Update the account
|
|
370
|
+
* @param {string} code Unique identifier for the object.
|
|
371
|
+
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
372
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
async updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>> {
|
|
377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAccount(code, updateAccountRequestDto, authorization, options);
|
|
378
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
379
|
+
},
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* AccountsApi - factory interface
|
|
385
|
+
* @export
|
|
386
|
+
*/
|
|
387
|
+
export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
388
|
+
const localVarFp = AccountsApiFp(configuration)
|
|
389
|
+
return {
|
|
390
|
+
/**
|
|
391
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
392
|
+
* @summary Create the account
|
|
393
|
+
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
394
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateAccountResponseClass> {
|
|
399
|
+
return localVarFp.createAccount(createAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
403
|
+
* @summary Delete the account
|
|
404
|
+
* @param {string} code Unique identifier for the object.
|
|
405
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
deleteAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
410
|
+
return localVarFp.deleteAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
411
|
+
},
|
|
412
|
+
/**
|
|
413
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
414
|
+
* @summary Retrieve the account
|
|
415
|
+
* @param {string} code Unique identifier for the object.
|
|
416
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
417
|
+
* @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
*/
|
|
421
|
+
getAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetAccountResponseClass> {
|
|
422
|
+
return localVarFp.getAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
423
|
+
},
|
|
424
|
+
/**
|
|
425
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
|
|
426
|
+
* @summary List accounts
|
|
427
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
428
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
429
|
+
* @param {string} [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.
|
|
430
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
|
|
431
|
+
* @param {string} [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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
|
|
432
|
+
* @param {string} [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. Parameters: **policy**.
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListAccountsResponseClass> {
|
|
437
|
+
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, order, expand, options).then((request) => request(axios, basePath));
|
|
438
|
+
},
|
|
439
|
+
/**
|
|
440
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
441
|
+
* @summary Update the account
|
|
442
|
+
* @param {string} code Unique identifier for the object.
|
|
443
|
+
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
444
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateAccountResponseClass> {
|
|
449
|
+
return localVarFp.updateAccount(code, updateAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
450
|
+
},
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Request parameters for createAccount operation in AccountsApi.
|
|
456
|
+
* @export
|
|
457
|
+
* @interface AccountsApiCreateAccountRequest
|
|
458
|
+
*/
|
|
459
|
+
export interface AccountsApiCreateAccountRequest {
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @type {CreateAccountRequestDto}
|
|
463
|
+
* @memberof AccountsApiCreateAccount
|
|
464
|
+
*/
|
|
465
|
+
readonly createAccountRequestDto: CreateAccountRequestDto
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof AccountsApiCreateAccount
|
|
471
|
+
*/
|
|
472
|
+
readonly authorization?: string
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Request parameters for deleteAccount operation in AccountsApi.
|
|
477
|
+
* @export
|
|
478
|
+
* @interface AccountsApiDeleteAccountRequest
|
|
479
|
+
*/
|
|
480
|
+
export interface AccountsApiDeleteAccountRequest {
|
|
481
|
+
/**
|
|
482
|
+
* Unique identifier for the object.
|
|
483
|
+
* @type {string}
|
|
484
|
+
* @memberof AccountsApiDeleteAccount
|
|
485
|
+
*/
|
|
486
|
+
readonly code: string
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
490
|
+
* @type {string}
|
|
491
|
+
* @memberof AccountsApiDeleteAccount
|
|
492
|
+
*/
|
|
493
|
+
readonly authorization?: string
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Request parameters for getAccount operation in AccountsApi.
|
|
498
|
+
* @export
|
|
499
|
+
* @interface AccountsApiGetAccountRequest
|
|
500
|
+
*/
|
|
501
|
+
export interface AccountsApiGetAccountRequest {
|
|
502
|
+
/**
|
|
503
|
+
* Unique identifier for the object.
|
|
504
|
+
* @type {string}
|
|
505
|
+
* @memberof AccountsApiGetAccount
|
|
506
|
+
*/
|
|
507
|
+
readonly code: string
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
511
|
+
* @type {string}
|
|
512
|
+
* @memberof AccountsApiGetAccount
|
|
513
|
+
*/
|
|
514
|
+
readonly authorization?: string
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @memberof AccountsApiGetAccount
|
|
520
|
+
*/
|
|
521
|
+
readonly expand?: string
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Request parameters for listAccounts operation in AccountsApi.
|
|
526
|
+
* @export
|
|
527
|
+
* @interface AccountsApiListAccountsRequest
|
|
528
|
+
*/
|
|
529
|
+
export interface AccountsApiListAccountsRequest {
|
|
530
|
+
/**
|
|
531
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
532
|
+
* @type {string}
|
|
533
|
+
* @memberof AccountsApiListAccounts
|
|
534
|
+
*/
|
|
535
|
+
readonly authorization?: string
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
539
|
+
* @type {number}
|
|
540
|
+
* @memberof AccountsApiListAccounts
|
|
541
|
+
*/
|
|
542
|
+
readonly pageSize?: number
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* 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.
|
|
546
|
+
* @type {string}
|
|
547
|
+
* @memberof AccountsApiListAccounts
|
|
548
|
+
*/
|
|
549
|
+
readonly pageToken?: string
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **firstName**, **lastName**, **accountNumber**, **email**, **zipCode**, **birthDate**
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof AccountsApiListAccounts
|
|
555
|
+
*/
|
|
556
|
+
readonly filter?: string
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* 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. Parameters: **firstName**, **lastName**, **accountNumber**, **email**.
|
|
560
|
+
* @type {string}
|
|
561
|
+
* @memberof AccountsApiListAccounts
|
|
562
|
+
*/
|
|
563
|
+
readonly order?: string
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* 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. Parameters: **policy**.
|
|
567
|
+
* @type {string}
|
|
568
|
+
* @memberof AccountsApiListAccounts
|
|
569
|
+
*/
|
|
570
|
+
readonly expand?: string
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Request parameters for updateAccount operation in AccountsApi.
|
|
575
|
+
* @export
|
|
576
|
+
* @interface AccountsApiUpdateAccountRequest
|
|
577
|
+
*/
|
|
578
|
+
export interface AccountsApiUpdateAccountRequest {
|
|
579
|
+
/**
|
|
580
|
+
* Unique identifier for the object.
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof AccountsApiUpdateAccount
|
|
583
|
+
*/
|
|
584
|
+
readonly code: string
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
*
|
|
588
|
+
* @type {UpdateAccountRequestDto}
|
|
589
|
+
* @memberof AccountsApiUpdateAccount
|
|
590
|
+
*/
|
|
591
|
+
readonly updateAccountRequestDto: UpdateAccountRequestDto
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof AccountsApiUpdateAccount
|
|
597
|
+
*/
|
|
598
|
+
readonly authorization?: string
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* AccountsApi - object-oriented interface
|
|
603
|
+
* @export
|
|
604
|
+
* @class AccountsApi
|
|
605
|
+
* @extends {BaseAPI}
|
|
606
|
+
*/
|
|
607
|
+
export class AccountsApi extends BaseAPI {
|
|
608
|
+
/**
|
|
609
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
610
|
+
* @summary Create the account
|
|
611
|
+
* @param {AccountsApiCreateAccountRequest} requestParameters Request parameters.
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
* @memberof AccountsApi
|
|
615
|
+
*/
|
|
616
|
+
public createAccount(requestParameters: AccountsApiCreateAccountRequest, options?: AxiosRequestConfig) {
|
|
617
|
+
return AccountsApiFp(this.configuration).createAccount(requestParameters.createAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
622
|
+
* @summary Delete the account
|
|
623
|
+
* @param {AccountsApiDeleteAccountRequest} requestParameters Request parameters.
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
* @memberof AccountsApi
|
|
627
|
+
*/
|
|
628
|
+
public deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, options?: AxiosRequestConfig) {
|
|
629
|
+
return AccountsApiFp(this.configuration).deleteAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
634
|
+
* @summary Retrieve the account
|
|
635
|
+
* @param {AccountsApiGetAccountRequest} requestParameters Request parameters.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @memberof AccountsApi
|
|
639
|
+
*/
|
|
640
|
+
public getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig) {
|
|
641
|
+
return AccountsApiFp(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest account appearing first. For more information about pagination, read the Pagination documentation.
|
|
646
|
+
* @summary List accounts
|
|
647
|
+
* @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
* @memberof AccountsApi
|
|
651
|
+
*/
|
|
652
|
+
public listAccounts(requestParameters: AccountsApiListAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
653
|
+
return AccountsApiFp(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
658
|
+
* @summary Update the account
|
|
659
|
+
* @param {AccountsApiUpdateAccountRequest} requestParameters Request parameters.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof AccountsApi
|
|
663
|
+
*/
|
|
664
|
+
public updateAccount(requestParameters: AccountsApiUpdateAccountRequest, options?: AxiosRequestConfig) {
|
|
665
|
+
return AccountsApiFp(this.configuration).updateAccount(requestParameters.code, requestParameters.updateAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
666
|
+
}
|
|
667
|
+
}
|