@emilgroup/billing-sdk-node 1.43.0 → 1.43.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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/billing-sdk-node@1.43.0 --save
20
+ npm install @emilgroup/billing-sdk-node@1.43.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.43.0
24
+ yarn add @emilgroup/billing-sdk-node@1.43.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -35,7 +35,7 @@ const FormData = require('form-data');
35
35
  export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
38
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference. **Required Permissions** \"billing-management.invoices.create\"
39
39
  * @summary Create the correction invoice
40
40
  * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
41
41
  * @param {string} [authorization] Bearer Token
@@ -97,7 +97,7 @@ export const CorrectionInvoicesApiFp = function(configuration?: Configuration) {
97
97
  const localVarAxiosParamCreator = CorrectionInvoicesApiAxiosParamCreator(configuration)
98
98
  return {
99
99
  /**
100
- * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
100
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference. **Required Permissions** \"billing-management.invoices.create\"
101
101
  * @summary Create the correction invoice
102
102
  * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
103
103
  * @param {string} [authorization] Bearer Token
@@ -120,7 +120,7 @@ export const CorrectionInvoicesApiFactory = function (configuration?: Configurat
120
120
  const localVarFp = CorrectionInvoicesApiFp(configuration)
121
121
  return {
122
122
  /**
123
- * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
123
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference. **Required Permissions** \"billing-management.invoices.create\"
124
124
  * @summary Create the correction invoice
125
125
  * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
126
126
  * @param {string} [authorization] Bearer Token
@@ -170,7 +170,7 @@ export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
170
170
  */
171
171
  export class CorrectionInvoicesApi extends BaseAPI {
172
172
  /**
173
- * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
173
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference. **Required Permissions** \"billing-management.invoices.create\"
174
174
  * @summary Create the correction invoice
175
175
  * @param {CorrectionInvoicesApiCreateCorrectionInvoiceRequest} requestParameters Request parameters.
176
176
  * @param {*} [options] Override http request option.
@@ -33,7 +33,7 @@ const FormData = require('form-data');
33
33
  export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Configuration) {
34
34
  return {
35
35
  /**
36
- *
36
+ * undefined **Required Permissions** \"billing-management.invoices.create\"
37
37
  * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
38
38
  * @param {string} [authorization] Bearer Token
39
39
  * @param {*} [options] Override http request option.
@@ -79,7 +79,7 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
79
79
  };
80
80
  },
81
81
  /**
82
- *
82
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
83
83
  * @param {string} [authorization] Bearer Token
84
84
  * @param {*} [options] Override http request option.
85
85
  * @throws {RequiredError}
@@ -119,7 +119,7 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
119
119
  };
120
120
  },
121
121
  /**
122
- *
122
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
123
123
  * @param {object} body
124
124
  * @param {string} [authorization] Bearer Token
125
125
  * @param {*} [options] Override http request option.
@@ -175,7 +175,7 @@ export const DraftInvoiceApiFp = function(configuration?: Configuration) {
175
175
  const localVarAxiosParamCreator = DraftInvoiceApiAxiosParamCreator(configuration)
176
176
  return {
177
177
  /**
178
- *
178
+ * undefined **Required Permissions** \"billing-management.invoices.create\"
179
179
  * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
180
180
  * @param {string} [authorization] Bearer Token
181
181
  * @param {*} [options] Override http request option.
@@ -186,7 +186,7 @@ export const DraftInvoiceApiFp = function(configuration?: Configuration) {
186
186
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
187
187
  },
188
188
  /**
189
- *
189
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
190
190
  * @param {string} [authorization] Bearer Token
191
191
  * @param {*} [options] Override http request option.
192
192
  * @throws {RequiredError}
@@ -196,7 +196,7 @@ export const DraftInvoiceApiFp = function(configuration?: Configuration) {
196
196
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
197
197
  },
198
198
  /**
199
- *
199
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
200
200
  * @param {object} body
201
201
  * @param {string} [authorization] Bearer Token
202
202
  * @param {*} [options] Override http request option.
@@ -217,7 +217,7 @@ export const DraftInvoiceApiFactory = function (configuration?: Configuration, b
217
217
  const localVarFp = DraftInvoiceApiFp(configuration)
218
218
  return {
219
219
  /**
220
- *
220
+ * undefined **Required Permissions** \"billing-management.invoices.create\"
221
221
  * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
222
222
  * @param {string} [authorization] Bearer Token
223
223
  * @param {*} [options] Override http request option.
@@ -227,7 +227,7 @@ export const DraftInvoiceApiFactory = function (configuration?: Configuration, b
227
227
  return localVarFp.createDraftInvoice(createDraftInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
228
228
  },
229
229
  /**
230
- *
230
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
231
231
  * @param {string} [authorization] Bearer Token
232
232
  * @param {*} [options] Override http request option.
233
233
  * @throws {RequiredError}
@@ -236,7 +236,7 @@ export const DraftInvoiceApiFactory = function (configuration?: Configuration, b
236
236
  return localVarFp.deleteAllDraftInvoices(authorization, options).then((request) => request(axios, basePath));
237
237
  },
238
238
  /**
239
- *
239
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
240
240
  * @param {object} body
241
241
  * @param {string} [authorization] Bearer Token
242
242
  * @param {*} [options] Override http request option.
@@ -312,7 +312,7 @@ export interface DraftInvoiceApiDeleteDraftInvoiceRequest {
312
312
  */
313
313
  export class DraftInvoiceApi extends BaseAPI {
314
314
  /**
315
- *
315
+ * undefined **Required Permissions** \"billing-management.invoices.create\"
316
316
  * @param {DraftInvoiceApiCreateDraftInvoiceRequest} requestParameters Request parameters.
317
317
  * @param {*} [options] Override http request option.
318
318
  * @throws {RequiredError}
@@ -323,7 +323,7 @@ export class DraftInvoiceApi extends BaseAPI {
323
323
  }
324
324
 
325
325
  /**
326
- *
326
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
327
327
  * @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
328
328
  * @param {*} [options] Override http request option.
329
329
  * @throws {RequiredError}
@@ -334,7 +334,7 @@ export class DraftInvoiceApi extends BaseAPI {
334
334
  }
335
335
 
336
336
  /**
337
- *
337
+ * undefined **Required Permissions** \"billing-management.invoices.delete\"
338
338
  * @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
339
339
  * @param {*} [options] Override http request option.
340
340
  * @throws {RequiredError}
@@ -43,7 +43,7 @@ const FormData = require('form-data');
43
43
  export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
44
44
  return {
45
45
  /**
46
- * This will create a custom estimated invoice.
46
+ * This will create a custom estimated invoice. **Required Permissions** \"billing-management.invoices.create\"
47
47
  * @summary Create the custom estimated invoice
48
48
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
49
49
  * @param {string} [authorization] Bearer Token
@@ -90,7 +90,7 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
90
90
  };
91
91
  },
92
92
  /**
93
- * This creates an estimated invoice. It will not be saved in the database.
93
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
94
94
  * @summary Create the estimated invoice
95
95
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
96
96
  * @param {string} [authorization] Bearer Token
@@ -137,7 +137,7 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
137
137
  };
138
138
  },
139
139
  /**
140
- * This creates an estimated invoice. It will not be saved in the database.
140
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
141
141
  * @summary Create the estimated invoice
142
142
  * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
143
143
  * @param {string} [authorization] Bearer Token
@@ -194,7 +194,7 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
194
194
  const localVarAxiosParamCreator = EstimatedInvoicesApiAxiosParamCreator(configuration)
195
195
  return {
196
196
  /**
197
- * This will create a custom estimated invoice.
197
+ * This will create a custom estimated invoice. **Required Permissions** \"billing-management.invoices.create\"
198
198
  * @summary Create the custom estimated invoice
199
199
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
200
200
  * @param {string} [authorization] Bearer Token
@@ -206,7 +206,7 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
206
206
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
207
207
  },
208
208
  /**
209
- * This creates an estimated invoice. It will not be saved in the database.
209
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
210
210
  * @summary Create the estimated invoice
211
211
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
212
212
  * @param {string} [authorization] Bearer Token
@@ -218,7 +218,7 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
218
218
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
219
219
  },
220
220
  /**
221
- * This creates an estimated invoice. It will not be saved in the database.
221
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
222
222
  * @summary Create the estimated invoice
223
223
  * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
224
224
  * @param {string} [authorization] Bearer Token
@@ -240,7 +240,7 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
240
240
  const localVarFp = EstimatedInvoicesApiFp(configuration)
241
241
  return {
242
242
  /**
243
- * This will create a custom estimated invoice.
243
+ * This will create a custom estimated invoice. **Required Permissions** \"billing-management.invoices.create\"
244
244
  * @summary Create the custom estimated invoice
245
245
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
246
246
  * @param {string} [authorization] Bearer Token
@@ -251,7 +251,7 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
251
251
  return localVarFp.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
252
252
  },
253
253
  /**
254
- * This creates an estimated invoice. It will not be saved in the database.
254
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
255
255
  * @summary Create the estimated invoice
256
256
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
257
257
  * @param {string} [authorization] Bearer Token
@@ -262,7 +262,7 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
262
262
  return localVarFp.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
263
263
  },
264
264
  /**
265
- * This creates an estimated invoice. It will not be saved in the database.
265
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
266
266
  * @summary Create the estimated invoice
267
267
  * @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
268
268
  * @param {string} [authorization] Bearer Token
@@ -346,7 +346,7 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
346
346
  */
347
347
  export class EstimatedInvoicesApi extends BaseAPI {
348
348
  /**
349
- * This will create a custom estimated invoice.
349
+ * This will create a custom estimated invoice. **Required Permissions** \"billing-management.invoices.create\"
350
350
  * @summary Create the custom estimated invoice
351
351
  * @param {EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest} requestParameters Request parameters.
352
352
  * @param {*} [options] Override http request option.
@@ -358,7 +358,7 @@ export class EstimatedInvoicesApi extends BaseAPI {
358
358
  }
359
359
 
360
360
  /**
361
- * This creates an estimated invoice. It will not be saved in the database.
361
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
362
362
  * @summary Create the estimated invoice
363
363
  * @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
364
364
  * @param {*} [options] Override http request option.
@@ -370,7 +370,7 @@ export class EstimatedInvoicesApi extends BaseAPI {
370
370
  }
371
371
 
372
372
  /**
373
- * This creates an estimated invoice. It will not be saved in the database.
373
+ * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
374
374
  * @summary Create the estimated invoice
375
375
  * @param {EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest} requestParameters Request parameters.
376
376
  * @param {*} [options] Override http request option.
@@ -35,7 +35,7 @@ const FormData = require('form-data');
35
35
  export const InitialInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
38
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice. **Required Permissions** \"billing-management.invoices.create\"
39
39
  * @summary Create the initial invoice
40
40
  * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
41
41
  * @param {string} [authorization] Bearer Token
@@ -97,7 +97,7 @@ export const InitialInvoicesApiFp = function(configuration?: Configuration) {
97
97
  const localVarAxiosParamCreator = InitialInvoicesApiAxiosParamCreator(configuration)
98
98
  return {
99
99
  /**
100
- * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
100
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice. **Required Permissions** \"billing-management.invoices.create\"
101
101
  * @summary Create the initial invoice
102
102
  * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
103
103
  * @param {string} [authorization] Bearer Token
@@ -120,7 +120,7 @@ export const InitialInvoicesApiFactory = function (configuration?: Configuration
120
120
  const localVarFp = InitialInvoicesApiFp(configuration)
121
121
  return {
122
122
  /**
123
- * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
123
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice. **Required Permissions** \"billing-management.invoices.create\"
124
124
  * @summary Create the initial invoice
125
125
  * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
126
126
  * @param {string} [authorization] Bearer Token
@@ -170,7 +170,7 @@ export interface InitialInvoicesApiCreateInitialInvoiceRequest {
170
170
  */
171
171
  export class InitialInvoicesApi extends BaseAPI {
172
172
  /**
173
- * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
173
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice. **Required Permissions** \"billing-management.invoices.create\"
174
174
  * @summary Create the initial invoice
175
175
  * @param {InitialInvoicesApiCreateInitialInvoiceRequest} requestParameters Request parameters.
176
176
  * @param {*} [options] Override http request option.
@@ -41,7 +41,7 @@ const FormData = require('form-data');
41
41
  export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
42
42
  return {
43
43
  /**
44
- * This will create invoice for a policy and save it in the DB.
44
+ * This will create invoice for a policy and save it in the DB. **Required Permissions** \"billing-management.invoices.create\"
45
45
  * @summary Create the invoice
46
46
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
47
47
  * @param {string} [authorization] Bearer Token
@@ -93,7 +93,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
93
93
  };
94
94
  },
95
95
  /**
96
- * Gets an invoice.
96
+ * Gets an invoice. **Required Permissions** \"billing-management.invoices.view\"
97
97
  * @summary Retrieve the invoice
98
98
  * @param {string} code
99
99
  * @param {string} expand
@@ -145,16 +145,16 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
145
145
  };
146
146
  },
147
147
  /**
148
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
148
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
149
149
  * @summary List invoices
150
150
  * @param {string} [authorization] Bearer Token
151
151
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
152
152
  * @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.
153
- * @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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
153
+ * @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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
154
154
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
155
155
  * @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: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
156
156
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments<i>
157
- * @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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
157
+ * @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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
@@ -221,7 +221,7 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
221
221
  };
222
222
  },
223
223
  /**
224
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
224
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
225
225
  * @summary List policies billing dates
226
226
  * @param {string} [authorization] Bearer Token
227
227
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -308,7 +308,7 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
308
308
  const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
309
309
  return {
310
310
  /**
311
- * This will create invoice for a policy and save it in the DB.
311
+ * This will create invoice for a policy and save it in the DB. **Required Permissions** \"billing-management.invoices.create\"
312
312
  * @summary Create the invoice
313
313
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
314
314
  * @param {string} [authorization] Bearer Token
@@ -321,7 +321,7 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
321
321
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
322
322
  },
323
323
  /**
324
- * Gets an invoice.
324
+ * Gets an invoice. **Required Permissions** \"billing-management.invoices.view\"
325
325
  * @summary Retrieve the invoice
326
326
  * @param {string} code
327
327
  * @param {string} expand
@@ -334,16 +334,16 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
334
334
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
335
335
  },
336
336
  /**
337
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
337
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
338
338
  * @summary List invoices
339
339
  * @param {string} [authorization] Bearer Token
340
340
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
341
341
  * @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.
342
- * @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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
342
+ * @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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
343
343
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
344
344
  * @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: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
345
345
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments<i>
346
- * @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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
346
+ * @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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
347
347
  * @param {*} [options] Override http request option.
348
348
  * @throws {RequiredError}
349
349
  */
@@ -352,7 +352,7 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
352
352
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
353
353
  },
354
354
  /**
355
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
355
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
356
356
  * @summary List policies billing dates
357
357
  * @param {string} [authorization] Bearer Token
358
358
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -381,7 +381,7 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
381
381
  const localVarFp = InvoicesApiFp(configuration)
382
382
  return {
383
383
  /**
384
- * This will create invoice for a policy and save it in the DB.
384
+ * This will create invoice for a policy and save it in the DB. **Required Permissions** \"billing-management.invoices.create\"
385
385
  * @summary Create the invoice
386
386
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
387
387
  * @param {string} [authorization] Bearer Token
@@ -393,7 +393,7 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
393
393
  return localVarFp.createInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
394
394
  },
395
395
  /**
396
- * Gets an invoice.
396
+ * Gets an invoice. **Required Permissions** \"billing-management.invoices.view\"
397
397
  * @summary Retrieve the invoice
398
398
  * @param {string} code
399
399
  * @param {string} expand
@@ -405,16 +405,16 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
405
405
  return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
406
406
  },
407
407
  /**
408
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
408
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
409
409
  * @summary List invoices
410
410
  * @param {string} [authorization] Bearer Token
411
411
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
412
412
  * @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.
413
- * @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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
413
+ * @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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
414
414
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
415
415
  * @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: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
416
416
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments<i>
417
- * @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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
417
+ * @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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
418
418
  * @param {*} [options] Override http request option.
419
419
  * @throws {RequiredError}
420
420
  */
@@ -422,7 +422,7 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
422
422
  return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
423
423
  },
424
424
  /**
425
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
425
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
426
426
  * @summary List policies billing dates
427
427
  * @param {string} [authorization] Bearer Token
428
428
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -526,7 +526,7 @@ export interface InvoicesApiListInvoicesRequest {
526
526
  readonly pageToken?: any
527
527
 
528
528
  /**
529
- * 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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
529
+ * 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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
530
530
  * @type {string}
531
531
  * @memberof InvoicesApiListInvoices
532
532
  */
@@ -554,7 +554,7 @@ export interface InvoicesApiListInvoicesRequest {
554
554
  readonly expand?: string
555
555
 
556
556
  /**
557
- * 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, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
557
+ * 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, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
558
558
  * @type {string}
559
559
  * @memberof InvoicesApiListInvoices
560
560
  */
@@ -632,7 +632,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
632
632
  */
633
633
  export class InvoicesApi extends BaseAPI {
634
634
  /**
635
- * This will create invoice for a policy and save it in the DB.
635
+ * This will create invoice for a policy and save it in the DB. **Required Permissions** \"billing-management.invoices.create\"
636
636
  * @summary Create the invoice
637
637
  * @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
638
638
  * @param {*} [options] Override http request option.
@@ -644,7 +644,7 @@ export class InvoicesApi extends BaseAPI {
644
644
  }
645
645
 
646
646
  /**
647
- * Gets an invoice.
647
+ * Gets an invoice. **Required Permissions** \"billing-management.invoices.view\"
648
648
  * @summary Retrieve the invoice
649
649
  * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
650
650
  * @param {*} [options] Override http request option.
@@ -656,7 +656,7 @@ export class InvoicesApi extends BaseAPI {
656
656
  }
657
657
 
658
658
  /**
659
- * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
659
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
660
660
  * @summary List invoices
661
661
  * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
662
662
  * @param {*} [options] Override http request option.
@@ -668,7 +668,7 @@ export class InvoicesApi extends BaseAPI {
668
668
  }
669
669
 
670
670
  /**
671
- * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
671
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
672
672
  * @summary List policies billing dates
673
673
  * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
674
674
  * @param {*} [options] Override http request option.
@@ -39,7 +39,7 @@ const FormData = require('form-data');
39
39
  export const PolicyBillingApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * Create a new policy billing
42
+ * Create a new policy billing **Required Permissions** \"billing-management.invoices.create\"
43
43
  * @summary Create the Policy Billing
44
44
  * @param {CreatePolicyBillingRequestDto} createPolicyBillingRequestDto
45
45
  * @param {string} [authorization] Bearer Token
@@ -86,7 +86,7 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
86
86
  };
87
87
  },
88
88
  /**
89
- * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
89
+ * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
90
90
  * @summary List policies billings
91
91
  * @param {string} [authorization] Bearer Token
92
92
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -162,7 +162,7 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
162
162
  };
163
163
  },
164
164
  /**
165
- * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
165
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"billing-management.invoices.update\"
166
166
  * @summary Update the request message
167
167
  * @param {string} code Unique identifier for the object.
168
168
  * @param {UpdatePolicyBillingRequestDto} updatePolicyBillingRequestDto
@@ -223,7 +223,7 @@ export const PolicyBillingApiFp = function(configuration?: Configuration) {
223
223
  const localVarAxiosParamCreator = PolicyBillingApiAxiosParamCreator(configuration)
224
224
  return {
225
225
  /**
226
- * Create a new policy billing
226
+ * Create a new policy billing **Required Permissions** \"billing-management.invoices.create\"
227
227
  * @summary Create the Policy Billing
228
228
  * @param {CreatePolicyBillingRequestDto} createPolicyBillingRequestDto
229
229
  * @param {string} [authorization] Bearer Token
@@ -235,7 +235,7 @@ export const PolicyBillingApiFp = function(configuration?: Configuration) {
235
235
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
236
236
  },
237
237
  /**
238
- * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
238
+ * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
239
239
  * @summary List policies billings
240
240
  * @param {string} [authorization] Bearer Token
241
241
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -253,7 +253,7 @@ export const PolicyBillingApiFp = function(configuration?: Configuration) {
253
253
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
254
254
  },
255
255
  /**
256
- * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
256
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"billing-management.invoices.update\"
257
257
  * @summary Update the request message
258
258
  * @param {string} code Unique identifier for the object.
259
259
  * @param {UpdatePolicyBillingRequestDto} updatePolicyBillingRequestDto
@@ -276,7 +276,7 @@ export const PolicyBillingApiFactory = function (configuration?: Configuration,
276
276
  const localVarFp = PolicyBillingApiFp(configuration)
277
277
  return {
278
278
  /**
279
- * Create a new policy billing
279
+ * Create a new policy billing **Required Permissions** \"billing-management.invoices.create\"
280
280
  * @summary Create the Policy Billing
281
281
  * @param {CreatePolicyBillingRequestDto} createPolicyBillingRequestDto
282
282
  * @param {string} [authorization] Bearer Token
@@ -287,7 +287,7 @@ export const PolicyBillingApiFactory = function (configuration?: Configuration,
287
287
  return localVarFp.createPolicyBilling(createPolicyBillingRequestDto, authorization, options).then((request) => request(axios, basePath));
288
288
  },
289
289
  /**
290
- * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
290
+ * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
291
291
  * @summary List policies billings
292
292
  * @param {string} [authorization] Bearer Token
293
293
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -304,7 +304,7 @@ export const PolicyBillingApiFactory = function (configuration?: Configuration,
304
304
  return localVarFp.listPoliciesBillings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
305
305
  },
306
306
  /**
307
- * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
307
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"billing-management.invoices.update\"
308
308
  * @summary Update the request message
309
309
  * @param {string} code Unique identifier for the object.
310
310
  * @param {UpdatePolicyBillingRequestDto} updatePolicyBillingRequestDto
@@ -438,7 +438,7 @@ export interface PolicyBillingApiUpdatePolicyBillingRequest {
438
438
  */
439
439
  export class PolicyBillingApi extends BaseAPI {
440
440
  /**
441
- * Create a new policy billing
441
+ * Create a new policy billing **Required Permissions** \"billing-management.invoices.create\"
442
442
  * @summary Create the Policy Billing
443
443
  * @param {PolicyBillingApiCreatePolicyBillingRequest} requestParameters Request parameters.
444
444
  * @param {*} [options] Override http request option.
@@ -450,7 +450,7 @@ export class PolicyBillingApi extends BaseAPI {
450
450
  }
451
451
 
452
452
  /**
453
- * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
453
+ * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
454
454
  * @summary List policies billings
455
455
  * @param {PolicyBillingApiListPoliciesBillingsRequest} requestParameters Request parameters.
456
456
  * @param {*} [options] Override http request option.
@@ -462,7 +462,7 @@ export class PolicyBillingApi extends BaseAPI {
462
462
  }
463
463
 
464
464
  /**
465
- * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
465
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"billing-management.invoices.update\"
466
466
  * @summary Update the request message
467
467
  * @param {PolicyBillingApiUpdatePolicyBillingRequest} requestParameters Request parameters.
468
468
  * @param {*} [options] Override http request option.