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

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.
@@ -25,6 +25,7 @@ models/get-financial-account-response-class.ts
25
25
  models/index.ts
26
26
  models/inline-response200.ts
27
27
  models/inline-response503.ts
28
+ models/list-booking-process-response-class.ts
28
29
  models/list-financial-accounts-response-class.ts
29
30
  package.json
30
31
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk-node@1.0.1-beta.4 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.0.1-beta.5 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.0.1-beta.4
24
+ yarn add @emilgroup/accounting-sdk-node@1.0.1-beta.5
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { CreateBookingProcessRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateBookingProcessResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { ListBookingProcessResponseClass } from '../models';
27
29
  // URLSearchParams not necessarily used
28
30
  // @ts-ignore
29
31
  import { URL, URLSearchParams } from 'url';
@@ -35,7 +37,7 @@ const FormData = require('form-data');
35
37
  export const BookingProcessesApiAxiosParamCreator = function (configuration?: Configuration) {
36
38
  return {
37
39
  /**
38
- * 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.
40
+ * This endpoint creates a new booking process.
39
41
  * @summary Create the booking process
40
42
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
41
43
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -76,6 +78,82 @@ export const BookingProcessesApiAxiosParamCreator = function (configuration?: Co
76
78
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
79
  localVarRequestOptions.data = serializeDataIfNeeded(createBookingProcessRequestDto, localVarRequestOptions, configuration)
78
80
 
81
+ return {
82
+ url: toPathString(localVarUrlObj),
83
+ options: localVarRequestOptions,
84
+ };
85
+ },
86
+ /**
87
+ * 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.
88
+ * @summary List Booking processes
89
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
91
+ * @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.
92
+ * @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>
93
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
94
+ * @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>
95
+ * @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.
96
+ * @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>
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ listBookingProcesses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ const localVarPath = `/accountingservice/v1/booking-processes`;
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ let baseAccessToken;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ baseAccessToken = configuration.accessToken;
109
+ }
110
+
111
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
112
+ const localVarHeaderParameter = {} as any;
113
+ const localVarQueryParameter = {} as any;
114
+
115
+ // authentication bearer required
116
+ // http bearer authentication required
117
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
+
119
+ if (pageSize !== undefined) {
120
+ localVarQueryParameter['pageSize'] = pageSize;
121
+ }
122
+
123
+ if (pageToken !== undefined) {
124
+ localVarQueryParameter['pageToken'] = pageToken;
125
+ }
126
+
127
+ if (filter !== undefined) {
128
+ localVarQueryParameter['filter'] = filter;
129
+ }
130
+
131
+ if (search !== undefined) {
132
+ localVarQueryParameter['search'] = search;
133
+ }
134
+
135
+ if (order !== undefined) {
136
+ localVarQueryParameter['order'] = order;
137
+ }
138
+
139
+ if (expand !== undefined) {
140
+ localVarQueryParameter['expand'] = expand;
141
+ }
142
+
143
+ if (filters !== undefined) {
144
+ localVarQueryParameter['filters'] = filters;
145
+ }
146
+
147
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
148
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
149
+ }
150
+
151
+
152
+
153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
156
+
79
157
  return {
80
158
  url: toPathString(localVarUrlObj),
81
159
  options: localVarRequestOptions,
@@ -92,7 +170,7 @@ export const BookingProcessesApiFp = function(configuration?: Configuration) {
92
170
  const localVarAxiosParamCreator = BookingProcessesApiAxiosParamCreator(configuration)
93
171
  return {
94
172
  /**
95
- * 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.
173
+ * This endpoint creates a new booking process.
96
174
  * @summary Create the booking process
97
175
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
98
176
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -103,6 +181,24 @@ export const BookingProcessesApiFp = function(configuration?: Configuration) {
103
181
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingProcess(createBookingProcessRequestDto, authorization, options);
104
182
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
105
183
  },
184
+ /**
185
+ * 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.
186
+ * @summary List Booking processes
187
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
188
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
189
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
190
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
191
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
192
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
193
+ * @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.
194
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ async listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>> {
199
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
200
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
201
+ },
106
202
  }
107
203
  };
108
204
 
@@ -114,7 +210,7 @@ export const BookingProcessesApiFactory = function (configuration?: Configuratio
114
210
  const localVarFp = BookingProcessesApiFp(configuration)
115
211
  return {
116
212
  /**
117
- * 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.
213
+ * This endpoint creates a new booking process.
118
214
  * @summary Create the booking process
119
215
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
120
216
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -124,6 +220,23 @@ export const BookingProcessesApiFactory = function (configuration?: Configuratio
124
220
  createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass> {
125
221
  return localVarFp.createBookingProcess(createBookingProcessRequestDto, authorization, options).then((request) => request(axios, basePath));
126
222
  },
223
+ /**
224
+ * 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.
225
+ * @summary List Booking processes
226
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
229
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
230
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
232
+ * @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.
233
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass> {
238
+ return localVarFp.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
239
+ },
127
240
  };
128
241
  };
129
242
 
@@ -148,6 +261,69 @@ export interface BookingProcessesApiCreateBookingProcessRequest {
148
261
  readonly authorization?: string
149
262
  }
150
263
 
264
+ /**
265
+ * Request parameters for listBookingProcesses operation in BookingProcessesApi.
266
+ * @export
267
+ * @interface BookingProcessesApiListBookingProcessesRequest
268
+ */
269
+ export interface BookingProcessesApiListBookingProcessesRequest {
270
+ /**
271
+ * Bearer Token: provided by the login endpoint under the name accessToken.
272
+ * @type {string}
273
+ * @memberof BookingProcessesApiListBookingProcesses
274
+ */
275
+ readonly authorization?: string
276
+
277
+ /**
278
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
279
+ * @type {any}
280
+ * @memberof BookingProcessesApiListBookingProcesses
281
+ */
282
+ readonly pageSize?: any
283
+
284
+ /**
285
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
286
+ * @type {any}
287
+ * @memberof BookingProcessesApiListBookingProcesses
288
+ */
289
+ readonly pageToken?: any
290
+
291
+ /**
292
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
293
+ * @type {string}
294
+ * @memberof BookingProcessesApiListBookingProcesses
295
+ */
296
+ readonly filter?: string
297
+
298
+ /**
299
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
300
+ * @type {any}
301
+ * @memberof BookingProcessesApiListBookingProcesses
302
+ */
303
+ readonly search?: any
304
+
305
+ /**
306
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
307
+ * @type {string}
308
+ * @memberof BookingProcessesApiListBookingProcesses
309
+ */
310
+ readonly order?: string
311
+
312
+ /**
313
+ * 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.
314
+ * @type {any}
315
+ * @memberof BookingProcessesApiListBookingProcesses
316
+ */
317
+ readonly expand?: any
318
+
319
+ /**
320
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
321
+ * @type {string}
322
+ * @memberof BookingProcessesApiListBookingProcesses
323
+ */
324
+ readonly filters?: string
325
+ }
326
+
151
327
  /**
152
328
  * BookingProcessesApi - object-oriented interface
153
329
  * @export
@@ -156,7 +332,7 @@ export interface BookingProcessesApiCreateBookingProcessRequest {
156
332
  */
157
333
  export class BookingProcessesApi extends BaseAPI {
158
334
  /**
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.
335
+ * This endpoint creates a new booking process.
160
336
  * @summary Create the booking process
161
337
  * @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
162
338
  * @param {*} [options] Override http request option.
@@ -166,4 +342,16 @@ export class BookingProcessesApi extends BaseAPI {
166
342
  public createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig) {
167
343
  return BookingProcessesApiFp(this.configuration).createBookingProcess(requestParameters.createBookingProcessRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
168
344
  }
345
+
346
+ /**
347
+ * 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.
348
+ * @summary List Booking processes
349
+ * @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ * @memberof BookingProcessesApi
353
+ */
354
+ public listBookingProcesses(requestParameters: BookingProcessesApiListBookingProcessesRequest = {}, options?: AxiosRequestConfig) {
355
+ return BookingProcessesApiFp(this.configuration).listBookingProcesses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
356
+ }
169
357
  }
package/base.ts CHANGED
@@ -41,7 +41,7 @@ export const COLLECTION_FORMATS = {
41
41
 
42
42
  export interface LoginClass {
43
43
  accessToken: string;
44
- permissions: Array<string>;
44
+ permissions: string;
45
45
  }
46
46
 
47
47
  export enum Environment {
@@ -79,7 +79,7 @@ export class BaseAPI {
79
79
  protected configuration: Configuration;
80
80
  private username?: string;
81
81
  private password?: string;
82
- private permissions: Array<string> = [];
82
+ private permissions?: string;
83
83
 
84
84
  constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
85
85
  if (configuration) {
@@ -151,7 +151,7 @@ export class BaseAPI {
151
151
  }
152
152
 
153
153
  getPermissions(): Array<string> {
154
- return this.permissions;
154
+ return this.permissions.split(',');
155
155
  }
156
156
 
157
157
  async authorize(username: string, password: string): Promise<void> {
@@ -14,13 +14,14 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateBookingProcessRequestDto } from '../models';
16
16
  import { CreateBookingProcessResponseClass } from '../models';
17
+ import { ListBookingProcessResponseClass } from '../models';
17
18
  /**
18
19
  * BookingProcessesApi - axios parameter creator
19
20
  * @export
20
21
  */
21
22
  export declare const BookingProcessesApiAxiosParamCreator: (configuration?: Configuration) => {
22
23
  /**
23
- * 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.
24
+ * This endpoint creates a new booking process.
24
25
  * @summary Create the booking process
25
26
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
26
27
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -28,6 +29,21 @@ export declare const BookingProcessesApiAxiosParamCreator: (configuration?: Conf
28
29
  * @throws {RequiredError}
29
30
  */
30
31
  createBookingProcess: (createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * 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.
34
+ * @summary List Booking processes
35
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
36
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
37
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
38
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
39
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
40
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
41
+ * @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.
42
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listBookingProcesses: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
47
  };
32
48
  /**
33
49
  * BookingProcessesApi - functional programming interface
@@ -35,7 +51,7 @@ export declare const BookingProcessesApiAxiosParamCreator: (configuration?: Conf
35
51
  */
36
52
  export declare const BookingProcessesApiFp: (configuration?: Configuration) => {
37
53
  /**
38
- * 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.
54
+ * This endpoint creates a new booking process.
39
55
  * @summary Create the booking process
40
56
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
41
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -43,6 +59,21 @@ export declare const BookingProcessesApiFp: (configuration?: Configuration) => {
43
59
  * @throws {RequiredError}
44
60
  */
45
61
  createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingProcessResponseClass>>;
62
+ /**
63
+ * 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.
64
+ * @summary List Booking processes
65
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
66
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
67
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
68
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
69
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
70
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
71
+ * @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.
72
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>>;
46
77
  };
47
78
  /**
48
79
  * BookingProcessesApi - factory interface
@@ -50,7 +81,7 @@ export declare const BookingProcessesApiFp: (configuration?: Configuration) => {
50
81
  */
51
82
  export declare const BookingProcessesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
52
83
  /**
53
- * 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.
84
+ * This endpoint creates a new booking process.
54
85
  * @summary Create the booking process
55
86
  * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
56
87
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -58,6 +89,21 @@ export declare const BookingProcessesApiFactory: (configuration?: Configuration,
58
89
  * @throws {RequiredError}
59
90
  */
60
91
  createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass>;
92
+ /**
93
+ * 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.
94
+ * @summary List Booking processes
95
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
96
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
97
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
98
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
99
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
100
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
101
+ * @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.
102
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass>;
61
107
  };
62
108
  /**
63
109
  * Request parameters for createBookingProcess operation in BookingProcessesApi.
@@ -78,6 +124,61 @@ export interface BookingProcessesApiCreateBookingProcessRequest {
78
124
  */
79
125
  readonly authorization?: string;
80
126
  }
127
+ /**
128
+ * Request parameters for listBookingProcesses operation in BookingProcessesApi.
129
+ * @export
130
+ * @interface BookingProcessesApiListBookingProcessesRequest
131
+ */
132
+ export interface BookingProcessesApiListBookingProcessesRequest {
133
+ /**
134
+ * Bearer Token: provided by the login endpoint under the name accessToken.
135
+ * @type {string}
136
+ * @memberof BookingProcessesApiListBookingProcesses
137
+ */
138
+ readonly authorization?: string;
139
+ /**
140
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
141
+ * @type {any}
142
+ * @memberof BookingProcessesApiListBookingProcesses
143
+ */
144
+ readonly pageSize?: any;
145
+ /**
146
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
147
+ * @type {any}
148
+ * @memberof BookingProcessesApiListBookingProcesses
149
+ */
150
+ readonly pageToken?: any;
151
+ /**
152
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
153
+ * @type {string}
154
+ * @memberof BookingProcessesApiListBookingProcesses
155
+ */
156
+ readonly filter?: string;
157
+ /**
158
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
+ * @type {any}
160
+ * @memberof BookingProcessesApiListBookingProcesses
161
+ */
162
+ readonly search?: any;
163
+ /**
164
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
165
+ * @type {string}
166
+ * @memberof BookingProcessesApiListBookingProcesses
167
+ */
168
+ readonly order?: string;
169
+ /**
170
+ * 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.
171
+ * @type {any}
172
+ * @memberof BookingProcessesApiListBookingProcesses
173
+ */
174
+ readonly expand?: any;
175
+ /**
176
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
177
+ * @type {string}
178
+ * @memberof BookingProcessesApiListBookingProcesses
179
+ */
180
+ readonly filters?: string;
181
+ }
81
182
  /**
82
183
  * BookingProcessesApi - object-oriented interface
83
184
  * @export
@@ -86,7 +187,7 @@ export interface BookingProcessesApiCreateBookingProcessRequest {
86
187
  */
87
188
  export declare class BookingProcessesApi extends BaseAPI {
88
189
  /**
89
- * 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.
190
+ * This endpoint creates a new booking process.
90
191
  * @summary Create the booking process
91
192
  * @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
92
193
  * @param {*} [options] Override http request option.
@@ -94,4 +195,13 @@ export declare class BookingProcessesApi extends BaseAPI {
94
195
  * @memberof BookingProcessesApi
95
196
  */
96
197
  createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingProcessResponseClass, any>>;
198
+ /**
199
+ * 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.
200
+ * @summary List Booking processes
201
+ * @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ * @memberof BookingProcessesApi
205
+ */
206
+ listBookingProcesses(requestParameters?: BookingProcessesApiListBookingProcessesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingProcessResponseClass, any>>;
97
207
  }
@@ -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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
155
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
258
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
306
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
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;
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.5",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [