@emilgroup/accounting-sdk-node 1.0.1-beta.4 → 1.0.1-beta.6

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.
@@ -97,7 +97,7 @@ var BookingProcessesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
100
+ * This endpoint creates a new booking process.
101
101
  * @summary Create the booking process
102
102
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -145,6 +145,78 @@ var BookingProcessesApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
+ /**
149
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
150
+ * @summary List Booking processes
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
153
+ * @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.
154
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code</i>
155
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
156
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, updatedAt, createdAt</i>
157
+ * @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.
158
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code</i>
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ listBookingProcesses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
163
+ if (options === void 0) { options = {}; }
164
+ return __awaiter(_this, void 0, void 0, function () {
165
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
+ return __generator(this, function (_a) {
167
+ switch (_a.label) {
168
+ case 0:
169
+ localVarPath = "/accountingservice/v1/booking-processes";
170
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (pageSize !== undefined) {
186
+ localVarQueryParameter['pageSize'] = pageSize;
187
+ }
188
+ if (pageToken !== undefined) {
189
+ localVarQueryParameter['pageToken'] = pageToken;
190
+ }
191
+ if (filter !== undefined) {
192
+ localVarQueryParameter['filter'] = filter;
193
+ }
194
+ if (search !== undefined) {
195
+ localVarQueryParameter['search'] = search;
196
+ }
197
+ if (order !== undefined) {
198
+ localVarQueryParameter['order'] = order;
199
+ }
200
+ if (expand !== undefined) {
201
+ localVarQueryParameter['expand'] = expand;
202
+ }
203
+ if (filters !== undefined) {
204
+ localVarQueryParameter['filters'] = filters;
205
+ }
206
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
207
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
208
+ }
209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
212
+ return [2 /*return*/, {
213
+ url: (0, common_1.toPathString)(localVarUrlObj),
214
+ options: localVarRequestOptions,
215
+ }];
216
+ }
217
+ });
218
+ });
219
+ },
148
220
  };
149
221
  };
150
222
  exports.BookingProcessesApiAxiosParamCreator = BookingProcessesApiAxiosParamCreator;
@@ -156,7 +228,7 @@ var BookingProcessesApiFp = function (configuration) {
156
228
  var localVarAxiosParamCreator = (0, exports.BookingProcessesApiAxiosParamCreator)(configuration);
157
229
  return {
158
230
  /**
159
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
231
+ * This endpoint creates a new booking process.
160
232
  * @summary Create the booking process
161
233
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
162
234
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -176,6 +248,33 @@ var BookingProcessesApiFp = function (configuration) {
176
248
  });
177
249
  });
178
250
  },
251
+ /**
252
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
253
+ * @summary List Booking processes
254
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
256
+ * @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.
257
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code</i>
258
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
259
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, updatedAt, createdAt</i>
260
+ * @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.
261
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code</i>
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ listBookingProcesses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
266
+ return __awaiter(this, void 0, void 0, function () {
267
+ var localVarAxiosArgs;
268
+ return __generator(this, function (_a) {
269
+ switch (_a.label) {
270
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
271
+ case 1:
272
+ localVarAxiosArgs = _a.sent();
273
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
274
+ }
275
+ });
276
+ });
277
+ },
179
278
  };
180
279
  };
181
280
  exports.BookingProcessesApiFp = BookingProcessesApiFp;
@@ -187,7 +286,7 @@ var BookingProcessesApiFactory = function (configuration, basePath, axios) {
187
286
  var localVarFp = (0, exports.BookingProcessesApiFp)(configuration);
188
287
  return {
189
288
  /**
190
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
289
+ * This endpoint creates a new booking process.
191
290
  * @summary Create the booking process
192
291
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
193
292
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -197,6 +296,23 @@ var BookingProcessesApiFactory = function (configuration, basePath, axios) {
197
296
  createBookingProcess: function (createBookingProcessRequestDto, authorization, options) {
198
297
  return localVarFp.createBookingProcess(createBookingProcessRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
199
298
  },
299
+ /**
300
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
301
+ * @summary List Booking processes
302
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
304
+ * @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.
305
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code</i>
306
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
307
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, updatedAt, createdAt</i>
308
+ * @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.
309
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code</i>
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ listBookingProcesses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
314
+ return localVarFp.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
315
+ },
200
316
  };
201
317
  };
202
318
  exports.BookingProcessesApiFactory = BookingProcessesApiFactory;
@@ -212,7 +328,7 @@ var BookingProcessesApi = /** @class */ (function (_super) {
212
328
  return _super !== null && _super.apply(this, arguments) || this;
213
329
  }
214
330
  /**
215
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
331
+ * This endpoint creates a new booking process.
216
332
  * @summary Create the booking process
217
333
  * @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
218
334
  * @param {*} [options] Override http request option.
@@ -223,6 +339,19 @@ var BookingProcessesApi = /** @class */ (function (_super) {
223
339
  var _this = this;
224
340
  return (0, exports.BookingProcessesApiFp)(this.configuration).createBookingProcess(requestParameters.createBookingProcessRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
225
341
  };
342
+ /**
343
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
344
+ * @summary List Booking processes
345
+ * @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ * @memberof BookingProcessesApi
349
+ */
350
+ BookingProcessesApi.prototype.listBookingProcesses = function (requestParameters, options) {
351
+ var _this = this;
352
+ if (requestParameters === void 0) { requestParameters = {}; }
353
+ return (0, exports.BookingProcessesApiFp)(this.configuration).listBookingProcesses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
354
+ };
226
355
  return BookingProcessesApi;
227
356
  }(base_1.BaseAPI));
228
357
  exports.BookingProcessesApi = BookingProcessesApi;
@@ -22,8 +22,8 @@ import { ListFinancialAccountsResponseClass } from '../models';
22
22
  */
23
23
  export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
24
24
  /**
25
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
26
- * @summary Create the account
25
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
26
+ * @summary Create the Financial Account
27
27
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
28
28
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
29
29
  * @param {*} [options] Override http request option.
@@ -31,8 +31,8 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
31
31
  */
32
32
  createFinancialAccount: (createFinancialAccountRequestDto: CreateFinancialAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
33
  /**
34
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
35
- * @summary Delete the account
34
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
35
+ * @summary Delete the Financial Account
36
36
  * @param {string} code Unique identifier for the object.
37
37
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
38
  * @param {*} [options] Override http request option.
@@ -40,8 +40,8 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
40
40
  */
41
41
  deleteFinancialAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
42
  /**
43
- * 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.
44
- * @summary Retrieve the account
43
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
44
+ * @summary Retrieve the Financial Account
45
45
  * @param {string} code Unique identifier for the object.
46
46
  * @param {string} expand
47
47
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -71,8 +71,8 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
71
71
  */
72
72
  export declare const FinancialAccountsApiFp: (configuration?: Configuration) => {
73
73
  /**
74
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
75
- * @summary Create the account
74
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
75
+ * @summary Create the Financial Account
76
76
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
77
77
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
78
78
  * @param {*} [options] Override http request option.
@@ -80,8 +80,8 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
80
80
  */
81
81
  createFinancialAccount(createFinancialAccountRequestDto: CreateFinancialAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFinancialAccountResponseClass>>;
82
82
  /**
83
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
84
- * @summary Delete the account
83
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
84
+ * @summary Delete the Financial Account
85
85
  * @param {string} code Unique identifier for the object.
86
86
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
87
87
  * @param {*} [options] Override http request option.
@@ -89,8 +89,8 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
89
89
  */
90
90
  deleteFinancialAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
91
91
  /**
92
- * 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.
93
- * @summary Retrieve the account
92
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
93
+ * @summary Retrieve the Financial Account
94
94
  * @param {string} code Unique identifier for the object.
95
95
  * @param {string} expand
96
96
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -120,8 +120,8 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
120
120
  */
121
121
  export declare const FinancialAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
122
122
  /**
123
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
124
- * @summary Create the account
123
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
124
+ * @summary Create the Financial Account
125
125
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
126
126
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
127
127
  * @param {*} [options] Override http request option.
@@ -129,8 +129,8 @@ export declare const FinancialAccountsApiFactory: (configuration?: Configuration
129
129
  */
130
130
  createFinancialAccount(createFinancialAccountRequestDto: CreateFinancialAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateFinancialAccountResponseClass>;
131
131
  /**
132
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
133
- * @summary Delete the account
132
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
133
+ * @summary Delete the Financial Account
134
134
  * @param {string} code Unique identifier for the object.
135
135
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
136
136
  * @param {*} [options] Override http request option.
@@ -138,8 +138,8 @@ export declare const FinancialAccountsApiFactory: (configuration?: Configuration
138
138
  */
139
139
  deleteFinancialAccount(code: string, authorization?: string, options?: any): AxiosPromise<void>;
140
140
  /**
141
- * 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.
142
- * @summary Retrieve the account
141
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
142
+ * @summary Retrieve the Financial Account
143
143
  * @param {string} code Unique identifier for the object.
144
144
  * @param {string} expand
145
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -289,8 +289,8 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
289
289
  */
290
290
  export declare class FinancialAccountsApi extends BaseAPI {
291
291
  /**
292
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
293
- * @summary Create the account
292
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
293
+ * @summary Create the Financial Account
294
294
  * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
295
295
  * @param {*} [options] Override http request option.
296
296
  * @throws {RequiredError}
@@ -298,8 +298,8 @@ export declare class FinancialAccountsApi extends BaseAPI {
298
298
  */
299
299
  createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any>>;
300
300
  /**
301
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
302
- * @summary Delete the account
301
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
302
+ * @summary Delete the Financial Account
303
303
  * @param {FinancialAccountsApiDeleteFinancialAccountRequest} requestParameters Request parameters.
304
304
  * @param {*} [options] Override http request option.
305
305
  * @throws {RequiredError}
@@ -307,8 +307,8 @@ export declare class FinancialAccountsApi extends BaseAPI {
307
307
  */
308
308
  deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
309
309
  /**
310
- * 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.
311
- * @summary Retrieve the account
310
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
311
+ * @summary Retrieve the Financial Account
312
312
  * @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
313
313
  * @param {*} [options] Override http request option.
314
314
  * @throws {RequiredError}
@@ -97,8 +97,8 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
101
- * @summary Create the account
100
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
101
+ * @summary Create the Financial Account
102
102
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
@@ -146,8 +146,8 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
150
- * @summary Delete the account
149
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
150
+ * @summary Delete the Financial Account
151
151
  * @param {string} code Unique identifier for the object.
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {*} [options] Override http request option.
@@ -194,8 +194,8 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  },
196
196
  /**
197
- * 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.
198
- * @summary Retrieve the account
197
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
198
+ * @summary Retrieve the Financial Account
199
199
  * @param {string} code Unique identifier for the object.
200
200
  * @param {string} expand
201
201
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -330,8 +330,8 @@ var FinancialAccountsApiFp = function (configuration) {
330
330
  var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
331
331
  return {
332
332
  /**
333
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
334
- * @summary Create the account
333
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
334
+ * @summary Create the Financial Account
335
335
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
336
336
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
337
337
  * @param {*} [options] Override http request option.
@@ -351,8 +351,8 @@ var FinancialAccountsApiFp = function (configuration) {
351
351
  });
352
352
  },
353
353
  /**
354
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
355
- * @summary Delete the account
354
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
355
+ * @summary Delete the Financial Account
356
356
  * @param {string} code Unique identifier for the object.
357
357
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
358
358
  * @param {*} [options] Override http request option.
@@ -372,8 +372,8 @@ var FinancialAccountsApiFp = function (configuration) {
372
372
  });
373
373
  },
374
374
  /**
375
- * 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.
376
- * @summary Retrieve the account
375
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
376
+ * @summary Retrieve the Financial Account
377
377
  * @param {string} code Unique identifier for the object.
378
378
  * @param {string} expand
379
379
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -431,8 +431,8 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
431
431
  var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
432
432
  return {
433
433
  /**
434
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
435
- * @summary Create the account
434
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
435
+ * @summary Create the Financial Account
436
436
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
437
437
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
438
  * @param {*} [options] Override http request option.
@@ -442,8 +442,8 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
442
442
  return localVarFp.createFinancialAccount(createFinancialAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
443
443
  },
444
444
  /**
445
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
446
- * @summary Delete the account
445
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
446
+ * @summary Delete the Financial Account
447
447
  * @param {string} code Unique identifier for the object.
448
448
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
449
  * @param {*} [options] Override http request option.
@@ -453,8 +453,8 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
453
453
  return localVarFp.deleteFinancialAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
454
454
  },
455
455
  /**
456
- * 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.
457
- * @summary Retrieve the account
456
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
457
+ * @summary Retrieve the Financial Account
458
458
  * @param {string} code Unique identifier for the object.
459
459
  * @param {string} expand
460
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -496,8 +496,8 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
496
496
  return _super !== null && _super.apply(this, arguments) || this;
497
497
  }
498
498
  /**
499
- * This will create an account in the database. The account will be created with the provided name, type, and account number. Optionally, you can provide a parent account ID to create a sub-account.
500
- * @summary Create the account
499
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
500
+ * @summary Create the Financial Account
501
501
  * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
502
502
  * @param {*} [options] Override http request option.
503
503
  * @throws {RequiredError}
@@ -508,8 +508,8 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
508
508
  return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
509
509
  };
510
510
  /**
511
- * Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
512
- * @summary Delete the account
511
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
512
+ * @summary Delete the Financial Account
513
513
  * @param {FinancialAccountsApiDeleteFinancialAccountRequest} requestParameters Request parameters.
514
514
  * @param {*} [options] Override http request option.
515
515
  * @throws {RequiredError}
@@ -520,8 +520,8 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
520
520
  return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
521
521
  };
522
522
  /**
523
- * 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.
524
- * @summary Retrieve the account
523
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
524
+ * @summary Retrieve the Financial Account
525
525
  * @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
526
526
  * @param {*} [options] Override http request option.
527
527
  * @throws {RequiredError}
package/dist/base.d.ts CHANGED
@@ -24,7 +24,7 @@ export declare const COLLECTION_FORMATS: {
24
24
  };
25
25
  export interface LoginClass {
26
26
  accessToken: string;
27
- permissions: Array<string>;
27
+ permissions: string;
28
28
  }
29
29
  export declare enum Environment {
30
30
  Production = "https://apiv2.emil.de",
@@ -53,7 +53,7 @@ export declare class BaseAPI {
53
53
  protected configuration: Configuration;
54
54
  private username?;
55
55
  private password?;
56
- private permissions;
56
+ private permissions?;
57
57
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
58
58
  initialize(env?: Environment): Promise<void>;
59
59
  private loadCredentials;
package/dist/base.js CHANGED
@@ -150,7 +150,6 @@ var BaseAPI = /** @class */ (function () {
150
150
  if (axios === void 0) { axios = axios_1.default; }
151
151
  this.basePath = basePath;
152
152
  this.axios = axios;
153
- this.permissions = [];
154
153
  if (configuration) {
155
154
  this.configuration = configuration;
156
155
  this.basePath = configuration.basePath || this.basePath;
@@ -244,7 +243,7 @@ var BaseAPI = /** @class */ (function () {
244
243
  this.configuration.basePath = env;
245
244
  };
246
245
  BaseAPI.prototype.getPermissions = function () {
247
- return this.permissions;
246
+ return this.permissions.split(',');
248
247
  };
249
248
  BaseAPI.prototype.authorize = function (username, password) {
250
249
  return __awaiter(this, void 0, void 0, function () {
@@ -11,4 +11,5 @@ export * from './financial-transaction-data-dto';
11
11
  export * from './get-financial-account-response-class';
12
12
  export * from './inline-response200';
13
13
  export * from './inline-response503';
14
+ export * from './list-booking-process-response-class';
14
15
  export * from './list-financial-accounts-response-class';
@@ -27,4 +27,5 @@ __exportStar(require("./financial-transaction-data-dto"), exports);
27
27
  __exportStar(require("./get-financial-account-response-class"), exports);
28
28
  __exportStar(require("./inline-response200"), exports);
29
29
  __exportStar(require("./inline-response503"), exports);
30
+ __exportStar(require("./list-booking-process-response-class"), exports);
30
31
  __exportStar(require("./list-financial-accounts-response-class"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { BookingProcessClass } from './booking-process-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListBookingProcessResponseClass
17
+ */
18
+ export interface ListBookingProcessResponseClass {
19
+ /**
20
+ * The list of booking processs.
21
+ * @type {Array<BookingProcessClass>}
22
+ * @memberof ListBookingProcessResponseClass
23
+ */
24
+ 'items': Array<BookingProcessClass>;
25
+ /**
26
+ * Next page token
27
+ * @type {string}
28
+ * @memberof ListBookingProcessResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
package/models/index.ts CHANGED
@@ -11,4 +11,5 @@ export * from './financial-transaction-data-dto';
11
11
  export * from './get-financial-account-response-class';
12
12
  export * from './inline-response200';
13
13
  export * from './inline-response503';
14
+ export * from './list-booking-process-response-class';
14
15
  export * from './list-financial-accounts-response-class';
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { BookingProcessClass } from './booking-process-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListBookingProcessResponseClass
22
+ */
23
+ export interface ListBookingProcessResponseClass {
24
+ /**
25
+ * The list of booking processs.
26
+ * @type {Array<BookingProcessClass>}
27
+ * @memberof ListBookingProcessResponseClass
28
+ */
29
+ 'items': Array<BookingProcessClass>;
30
+ /**
31
+ * Next page token
32
+ * @type {string}
33
+ * @memberof ListBookingProcessResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.0.1-beta.4",
3
+ "version": "1.0.1-beta.6",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [