@emilgroup/billing-sdk-node 1.63.1-beta.20 → 1.63.1-beta.21

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.
@@ -12,7 +12,6 @@ api/invoices-api.ts
12
12
  api/policy-billing-api.ts
13
13
  api/recurring-invoices-api.ts
14
14
  api/termination-invoices-api.ts
15
- api/withdraw-invoices-api.ts
16
15
  base.ts
17
16
  common.ts
18
17
  configuration.ts
@@ -37,8 +36,6 @@ models/create-policy-billing-response-class.ts
37
36
  models/create-product-estimated-invoice-request-dto.ts
38
37
  models/create-product-estimated-invoice-response-class.ts
39
38
  models/create-termination-invoice-request-dto.ts
40
- models/create-withdraw-invoice-request-dto-rest.ts
41
- models/create-withdraw-invoice-request-dto.ts
42
39
  models/get-invoice-response-class.ts
43
40
  models/index.ts
44
41
  models/inline-response200.ts
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.63.1-beta.20 --save
20
+ npm install @emilgroup/billing-sdk-node@1.63.1-beta.21 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.63.1-beta.20
24
+ yarn add @emilgroup/billing-sdk-node@1.63.1-beta.21
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -150,11 +150,11 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
150
150
  * @param {string} [authorization] Bearer Token
151
151
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
152
152
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</i>
154
154
  * @param {string} [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, paymentMethodType, paymentMethodPsp</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, invoiceItems<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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</i>
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
@@ -339,11 +339,11 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
339
339
  * @param {string} [authorization] Bearer Token
340
340
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
341
341
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</i>
343
343
  * @param {string} [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, paymentMethodType, paymentMethodPsp</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, invoiceItems<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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</i>
347
347
  * @param {*} [options] Override http request option.
348
348
  * @throws {RequiredError}
349
349
  */
@@ -410,11 +410,11 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
410
410
  * @param {string} [authorization] Bearer Token
411
411
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
412
412
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</i>
414
414
  * @param {string} [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, paymentMethodType, paymentMethodPsp</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, invoiceItems<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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</i>
418
418
  * @param {*} [options] Override http request option.
419
419
  * @throws {RequiredError}
420
420
  */
@@ -526,7 +526,7 @@ export interface InvoicesApiListInvoicesRequest {
526
526
  readonly pageToken?: string
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, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</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, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</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, dueDate, paymentMethodType, paymentMethodPsp</i>
558
558
  * @type {string}
559
559
  * @memberof InvoicesApiListInvoices
560
560
  */
package/api.ts CHANGED
@@ -33,7 +33,6 @@ import { InvoicesApi } from './api';
33
33
  import { PolicyBillingApi } from './api';
34
34
  import { RecurringInvoicesApi } from './api';
35
35
  import { TerminationInvoicesApi } from './api';
36
- import { WithdrawInvoicesApi } from './api';
37
36
 
38
37
 
39
38
  export * from './api/correction-invoices-api';
@@ -45,5 +44,4 @@ export * from './api/invoices-api';
45
44
  export * from './api/policy-billing-api';
46
45
  export * from './api/recurring-invoices-api';
47
46
  export * from './api/termination-invoices-api';
48
- export * from './api/withdraw-invoices-api';
49
47
 
@@ -48,11 +48,11 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
48
48
  * @param {string} [authorization] Bearer Token
49
49
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
50
50
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
51
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
51
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
52
52
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
53
53
  * @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, paymentMethodType, paymentMethodPsp</i>
54
54
  * @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, invoiceItems<i>
55
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
55
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
56
56
  * @param {*} [options] Override http request option.
57
57
  * @throws {RequiredError}
58
58
  */
@@ -105,11 +105,11 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
105
105
  * @param {string} [authorization] Bearer Token
106
106
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
107
107
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
108
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
108
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
109
109
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
110
110
  * @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, paymentMethodType, paymentMethodPsp</i>
111
111
  * @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, invoiceItems<i>
112
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
112
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
113
113
  * @param {*} [options] Override http request option.
114
114
  * @throws {RequiredError}
115
115
  */
@@ -162,11 +162,11 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
162
162
  * @param {string} [authorization] Bearer Token
163
163
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
164
164
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
165
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
165
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
166
166
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
167
167
  * @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, paymentMethodType, paymentMethodPsp</i>
168
168
  * @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, invoiceItems<i>
169
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
169
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
170
170
  * @param {*} [options] Override http request option.
171
171
  * @throws {RequiredError}
172
172
  */
@@ -263,7 +263,7 @@ export interface InvoicesApiListInvoicesRequest {
263
263
  */
264
264
  readonly pageToken?: string;
265
265
  /**
266
- * 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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
266
+ * 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, dueDate, paymentMethodType, paymentMethodPsp</i>
267
267
  * @type {string}
268
268
  * @memberof InvoicesApiListInvoices
269
269
  */
@@ -287,7 +287,7 @@ export interface InvoicesApiListInvoicesRequest {
287
287
  */
288
288
  readonly expand?: string;
289
289
  /**
290
- * 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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
290
+ * 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, dueDate, paymentMethodType, paymentMethodPsp</i>
291
291
  * @type {string}
292
292
  * @memberof InvoicesApiListInvoices
293
293
  */
@@ -209,11 +209,11 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
209
209
  * @param {string} [authorization] Bearer Token
210
210
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
211
211
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
212
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
212
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
213
213
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
214
214
  * @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, paymentMethodType, paymentMethodPsp</i>
215
215
  * @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, invoiceItems<i>
216
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
216
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
217
217
  * @param {*} [options] Override http request option.
218
218
  * @throws {RequiredError}
219
219
  */
@@ -408,11 +408,11 @@ var InvoicesApiFp = function (configuration) {
408
408
  * @param {string} [authorization] Bearer Token
409
409
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
410
410
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
411
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
411
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
412
412
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
413
413
  * @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, paymentMethodType, paymentMethodPsp</i>
414
414
  * @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, invoiceItems<i>
415
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
415
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
416
416
  * @param {*} [options] Override http request option.
417
417
  * @throws {RequiredError}
418
418
  */
@@ -497,11 +497,11 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
497
497
  * @param {string} [authorization] Bearer Token
498
498
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
499
499
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
500
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
500
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
501
501
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
502
502
  * @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, paymentMethodType, paymentMethodPsp</i>
503
503
  * @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, invoiceItems<i>
504
- * @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, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
504
+ * @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, dueDate, paymentMethodType, paymentMethodPsp</i>
505
505
  * @param {*} [options] Override http request option.
506
506
  * @throws {RequiredError}
507
507
  */
package/dist/api.d.ts CHANGED
@@ -18,4 +18,3 @@ export * from './api/invoices-api';
18
18
  export * from './api/policy-billing-api';
19
19
  export * from './api/recurring-invoices-api';
20
20
  export * from './api/termination-invoices-api';
21
- export * from './api/withdraw-invoices-api';
package/dist/api.js CHANGED
@@ -36,4 +36,3 @@ __exportStar(require("./api/invoices-api"), exports);
36
36
  __exportStar(require("./api/policy-billing-api"), exports);
37
37
  __exportStar(require("./api/recurring-invoices-api"), exports);
38
38
  __exportStar(require("./api/termination-invoices-api"), exports);
39
- __exportStar(require("./api/withdraw-invoices-api"), exports);
@@ -17,8 +17,6 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
- export * from './create-withdraw-invoice-request-dto';
21
- export * from './create-withdraw-invoice-request-dto-rest';
22
20
  export * from './get-invoice-response-class';
23
21
  export * from './inline-response200';
24
22
  export * from './inline-response503';
@@ -33,8 +33,6 @@ __exportStar(require("./create-policy-billing-response-class"), exports);
33
33
  __exportStar(require("./create-product-estimated-invoice-request-dto"), exports);
34
34
  __exportStar(require("./create-product-estimated-invoice-response-class"), exports);
35
35
  __exportStar(require("./create-termination-invoice-request-dto"), exports);
36
- __exportStar(require("./create-withdraw-invoice-request-dto"), exports);
37
- __exportStar(require("./create-withdraw-invoice-request-dto-rest"), exports);
38
36
  __exportStar(require("./get-invoice-response-class"), exports);
39
37
  __exportStar(require("./inline-response200"), exports);
40
38
  __exportStar(require("./inline-response503"), exports);
@@ -27,12 +27,6 @@ export interface InvoiceItemClass {
27
27
  * @memberof InvoiceItemClass
28
28
  */
29
29
  'premiumFormulaId': number;
30
- /**
31
- * Unique identifier of the premium formula that this object belongs to.
32
- * @type {string}
33
- * @memberof InvoiceItemClass
34
- */
35
- 'premiumFormulaCode'?: string;
36
30
  /**
37
31
  * Product name.
38
32
  * @type {string}
package/models/index.ts CHANGED
@@ -17,8 +17,6 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
- export * from './create-withdraw-invoice-request-dto';
21
- export * from './create-withdraw-invoice-request-dto-rest';
22
20
  export * from './get-invoice-response-class';
23
21
  export * from './inline-response200';
24
22
  export * from './inline-response503';
@@ -32,12 +32,6 @@ export interface InvoiceItemClass {
32
32
  * @memberof InvoiceItemClass
33
33
  */
34
34
  'premiumFormulaId': number;
35
- /**
36
- * Unique identifier of the premium formula that this object belongs to.
37
- * @type {string}
38
- * @memberof InvoiceItemClass
39
- */
40
- 'premiumFormulaCode'?: string;
41
35
  /**
42
36
  * Product name.
43
37
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.63.1-beta.20",
3
+ "version": "1.63.1-beta.21",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,183 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateInvoiceResponseClass } from '../models';
25
- // @ts-ignore
26
- import { CreateWithdrawInvoiceRequestDtoRest } from '../models';
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- import { URL, URLSearchParams } from 'url';
30
- const FormData = require('form-data');
31
- /**
32
- * WithdrawInvoicesApi - axios parameter creator
33
- * @export
34
- */
35
- export const WithdrawInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
39
- * @summary Create the Withdraw invoice
40
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
41
- * @param {string} [authorization] Bearer Token
42
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
43
- * @param {*} [options] Override http request option.
44
- * @throws {RequiredError}
45
- */
46
- createWithdrawInvoice: async (createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
- // verify required parameter 'createWithdrawInvoiceRequestDtoRest' is not null or undefined
48
- assertParamExists('createWithdrawInvoice', 'createWithdrawInvoiceRequestDtoRest', createWithdrawInvoiceRequestDtoRest)
49
- const localVarPath = `/billingservice/v1/withdraw-invoices`;
50
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
- let baseOptions;
53
- let baseAccessToken;
54
- if (configuration) {
55
- baseOptions = configuration.baseOptions;
56
- baseAccessToken = configuration.accessToken;
57
- }
58
-
59
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
60
- const localVarHeaderParameter = {} as any;
61
- const localVarQueryParameter = {} as any;
62
-
63
- // authentication bearer required
64
- // http bearer authentication required
65
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
-
67
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
- }
70
-
71
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
73
- }
74
-
75
-
76
-
77
- localVarHeaderParameter['Content-Type'] = 'application/json';
78
-
79
- setSearchParams(localVarUrlObj, localVarQueryParameter);
80
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
- localVarRequestOptions.data = serializeDataIfNeeded(createWithdrawInvoiceRequestDtoRest, localVarRequestOptions, configuration)
83
-
84
- return {
85
- url: toPathString(localVarUrlObj),
86
- options: localVarRequestOptions,
87
- };
88
- },
89
- }
90
- };
91
-
92
- /**
93
- * WithdrawInvoicesApi - functional programming interface
94
- * @export
95
- */
96
- export const WithdrawInvoicesApiFp = function(configuration?: Configuration) {
97
- const localVarAxiosParamCreator = WithdrawInvoicesApiAxiosParamCreator(configuration)
98
- return {
99
- /**
100
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
101
- * @summary Create the Withdraw invoice
102
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
103
- * @param {string} [authorization] Bearer Token
104
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
105
- * @param {*} [options] Override http request option.
106
- * @throws {RequiredError}
107
- */
108
- async createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
109
- const localVarAxiosArgs = await localVarAxiosParamCreator.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options);
110
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
111
- },
112
- }
113
- };
114
-
115
- /**
116
- * WithdrawInvoicesApi - factory interface
117
- * @export
118
- */
119
- export const WithdrawInvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
120
- const localVarFp = WithdrawInvoicesApiFp(configuration)
121
- return {
122
- /**
123
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
124
- * @summary Create the Withdraw invoice
125
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
126
- * @param {string} [authorization] Bearer Token
127
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
128
- * @param {*} [options] Override http request option.
129
- * @throws {RequiredError}
130
- */
131
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
132
- return localVarFp.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
133
- },
134
- };
135
- };
136
-
137
- /**
138
- * Request parameters for createWithdrawInvoice operation in WithdrawInvoicesApi.
139
- * @export
140
- * @interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest
141
- */
142
- export interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest {
143
- /**
144
- *
145
- * @type {CreateWithdrawInvoiceRequestDtoRest}
146
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
147
- */
148
- readonly createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest
149
-
150
- /**
151
- * Bearer Token
152
- * @type {string}
153
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
154
- */
155
- readonly authorization?: string
156
-
157
- /**
158
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
159
- * @type {string}
160
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
161
- */
162
- readonly idempotencyKey?: string
163
- }
164
-
165
- /**
166
- * WithdrawInvoicesApi - object-oriented interface
167
- * @export
168
- * @class WithdrawInvoicesApi
169
- * @extends {BaseAPI}
170
- */
171
- export class WithdrawInvoicesApi extends BaseAPI {
172
- /**
173
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
174
- * @summary Create the Withdraw invoice
175
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
176
- * @param {*} [options] Override http request option.
177
- * @throws {RequiredError}
178
- * @memberof WithdrawInvoicesApi
179
- */
180
- public createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig) {
181
- return WithdrawInvoicesApiFp(this.configuration).createWithdrawInvoice(requestParameters.createWithdrawInvoiceRequestDtoRest, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
182
- }
183
- }
@@ -1,106 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService 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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateInvoiceResponseClass } from '../models';
16
- import { CreateWithdrawInvoiceRequestDtoRest } from '../models';
17
- /**
18
- * WithdrawInvoicesApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const WithdrawInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
24
- * @summary Create the Withdraw invoice
25
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
26
- * @param {string} [authorization] Bearer Token
27
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
28
- * @param {*} [options] Override http request option.
29
- * @throws {RequiredError}
30
- */
31
- createWithdrawInvoice: (createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
- };
33
- /**
34
- * WithdrawInvoicesApi - functional programming interface
35
- * @export
36
- */
37
- export declare const WithdrawInvoicesApiFp: (configuration?: Configuration) => {
38
- /**
39
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
40
- * @summary Create the Withdraw invoice
41
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
42
- * @param {string} [authorization] Bearer Token
43
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
48
- };
49
- /**
50
- * WithdrawInvoicesApi - factory interface
51
- * @export
52
- */
53
- export declare const WithdrawInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
- /**
55
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
56
- * @summary Create the Withdraw invoice
57
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
58
- * @param {string} [authorization] Bearer Token
59
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- */
63
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
64
- };
65
- /**
66
- * Request parameters for createWithdrawInvoice operation in WithdrawInvoicesApi.
67
- * @export
68
- * @interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest
69
- */
70
- export interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest {
71
- /**
72
- *
73
- * @type {CreateWithdrawInvoiceRequestDtoRest}
74
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
75
- */
76
- readonly createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest;
77
- /**
78
- * Bearer Token
79
- * @type {string}
80
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
81
- */
82
- readonly authorization?: string;
83
- /**
84
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
85
- * @type {string}
86
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
87
- */
88
- readonly idempotencyKey?: string;
89
- }
90
- /**
91
- * WithdrawInvoicesApi - object-oriented interface
92
- * @export
93
- * @class WithdrawInvoicesApi
94
- * @extends {BaseAPI}
95
- */
96
- export declare class WithdrawInvoicesApi extends BaseAPI {
97
- /**
98
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
99
- * @summary Create the Withdraw invoice
100
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- * @memberof WithdrawInvoicesApi
104
- */
105
- createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
106
- }
@@ -1,234 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService 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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.WithdrawInvoicesApi = exports.WithdrawInvoicesApiFactory = exports.WithdrawInvoicesApiFp = exports.WithdrawInvoicesApiAxiosParamCreator = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("../common");
86
- // @ts-ignore
87
- var base_1 = require("../base");
88
- // URLSearchParams not necessarily used
89
- // @ts-ignore
90
- var url_1 = require("url");
91
- var FormData = require('form-data');
92
- /**
93
- * WithdrawInvoicesApi - axios parameter creator
94
- * @export
95
- */
96
- var WithdrawInvoicesApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
101
- * @summary Create the Withdraw invoice
102
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
103
- * @param {string} [authorization] Bearer Token
104
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
105
- * @param {*} [options] Override http request option.
106
- * @throws {RequiredError}
107
- */
108
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
- return __generator(this, function (_a) {
113
- switch (_a.label) {
114
- case 0:
115
- // verify required parameter 'createWithdrawInvoiceRequestDtoRest' is not null or undefined
116
- (0, common_1.assertParamExists)('createWithdrawInvoice', 'createWithdrawInvoiceRequestDtoRest', createWithdrawInvoiceRequestDtoRest);
117
- localVarPath = "/billingservice/v1/withdraw-invoices";
118
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
- if (configuration) {
120
- baseOptions = configuration.baseOptions;
121
- baseAccessToken = configuration.accessToken;
122
- }
123
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
124
- localVarHeaderParameter = {};
125
- localVarQueryParameter = {};
126
- // authentication bearer required
127
- // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
- case 1:
130
- // authentication bearer required
131
- // http bearer authentication required
132
- _a.sent();
133
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
- }
136
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
138
- }
139
- localVarHeaderParameter['Content-Type'] = 'application/json';
140
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWithdrawInvoiceRequestDtoRest, localVarRequestOptions, configuration);
144
- return [2 /*return*/, {
145
- url: (0, common_1.toPathString)(localVarUrlObj),
146
- options: localVarRequestOptions,
147
- }];
148
- }
149
- });
150
- });
151
- },
152
- };
153
- };
154
- exports.WithdrawInvoicesApiAxiosParamCreator = WithdrawInvoicesApiAxiosParamCreator;
155
- /**
156
- * WithdrawInvoicesApi - functional programming interface
157
- * @export
158
- */
159
- var WithdrawInvoicesApiFp = function (configuration) {
160
- var localVarAxiosParamCreator = (0, exports.WithdrawInvoicesApiAxiosParamCreator)(configuration);
161
- return {
162
- /**
163
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
164
- * @summary Create the Withdraw invoice
165
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
166
- * @param {string} [authorization] Bearer Token
167
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
168
- * @param {*} [options] Override http request option.
169
- * @throws {RequiredError}
170
- */
171
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
172
- return __awaiter(this, void 0, void 0, function () {
173
- var localVarAxiosArgs;
174
- return __generator(this, function (_a) {
175
- switch (_a.label) {
176
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options)];
177
- case 1:
178
- localVarAxiosArgs = _a.sent();
179
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
180
- }
181
- });
182
- });
183
- },
184
- };
185
- };
186
- exports.WithdrawInvoicesApiFp = WithdrawInvoicesApiFp;
187
- /**
188
- * WithdrawInvoicesApi - factory interface
189
- * @export
190
- */
191
- var WithdrawInvoicesApiFactory = function (configuration, basePath, axios) {
192
- var localVarFp = (0, exports.WithdrawInvoicesApiFp)(configuration);
193
- return {
194
- /**
195
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
196
- * @summary Create the Withdraw invoice
197
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
198
- * @param {string} [authorization] Bearer Token
199
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
204
- return localVarFp.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
205
- },
206
- };
207
- };
208
- exports.WithdrawInvoicesApiFactory = WithdrawInvoicesApiFactory;
209
- /**
210
- * WithdrawInvoicesApi - object-oriented interface
211
- * @export
212
- * @class WithdrawInvoicesApi
213
- * @extends {BaseAPI}
214
- */
215
- var WithdrawInvoicesApi = /** @class */ (function (_super) {
216
- __extends(WithdrawInvoicesApi, _super);
217
- function WithdrawInvoicesApi() {
218
- return _super !== null && _super.apply(this, arguments) || this;
219
- }
220
- /**
221
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
222
- * @summary Create the Withdraw invoice
223
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
224
- * @param {*} [options] Override http request option.
225
- * @throws {RequiredError}
226
- * @memberof WithdrawInvoicesApi
227
- */
228
- WithdrawInvoicesApi.prototype.createWithdrawInvoice = function (requestParameters, options) {
229
- var _this = this;
230
- return (0, exports.WithdrawInvoicesApiFp)(this.configuration).createWithdrawInvoice(requestParameters.createWithdrawInvoiceRequestDtoRest, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
231
- };
232
- return WithdrawInvoicesApi;
233
- }(base_1.BaseAPI));
234
- exports.WithdrawInvoicesApi = WithdrawInvoicesApi;
@@ -1,50 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService 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
- /**
13
- *
14
- * @export
15
- * @interface CreateWithdrawInvoiceRequestDtoRest
16
- */
17
- export interface CreateWithdrawInvoiceRequestDtoRest {
18
- /**
19
- * Unique identifier of the policy that this object belongs to.
20
- * @type {string}
21
- * @memberof CreateWithdrawInvoiceRequestDtoRest
22
- */
23
- 'policyCode': string;
24
- /**
25
- * Account number.
26
- * @type {string}
27
- * @memberof CreateWithdrawInvoiceRequestDtoRest
28
- */
29
- 'accountNumber': string;
30
- /**
31
- * Policy number.
32
- * @type {string}
33
- * @memberof CreateWithdrawInvoiceRequestDtoRest
34
- */
35
- 'policyNumber': string;
36
- /**
37
- * This is the date from which the invoice interval starts.
38
- * @type {string}
39
- * @memberof CreateWithdrawInvoiceRequestDtoRest
40
- */
41
- 'billingIntervalFrom': string;
42
- /**
43
- * Metadata contains extra information that the object would need for specific cases.
44
- * @type {{ [key: string]: object; }}
45
- * @memberof CreateWithdrawInvoiceRequestDtoRest
46
- */
47
- 'metadata'?: {
48
- [key: string]: object;
49
- };
50
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService 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 });
@@ -1,50 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService 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
- /**
13
- *
14
- * @export
15
- * @interface CreateWithdrawInvoiceRequestDto
16
- */
17
- export interface CreateWithdrawInvoiceRequestDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof CreateWithdrawInvoiceRequestDto
22
- */
23
- 'policyCode': string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateWithdrawInvoiceRequestDto
28
- */
29
- 'accountNumber': string;
30
- /**
31
- *
32
- * @type {{ [key: string]: object; }}
33
- * @memberof CreateWithdrawInvoiceRequestDto
34
- */
35
- 'metadata'?: {
36
- [key: string]: object;
37
- };
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof CreateWithdrawInvoiceRequestDto
42
- */
43
- 'billingIntervalFrom': string;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof CreateWithdrawInvoiceRequestDto
48
- */
49
- 'policyNumber': string;
50
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService 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 });
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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
-
17
- /**
18
- *
19
- * @export
20
- * @interface CreateWithdrawInvoiceRequestDtoRest
21
- */
22
- export interface CreateWithdrawInvoiceRequestDtoRest {
23
- /**
24
- * Unique identifier of the policy that this object belongs to.
25
- * @type {string}
26
- * @memberof CreateWithdrawInvoiceRequestDtoRest
27
- */
28
- 'policyCode': string;
29
- /**
30
- * Account number.
31
- * @type {string}
32
- * @memberof CreateWithdrawInvoiceRequestDtoRest
33
- */
34
- 'accountNumber': string;
35
- /**
36
- * Policy number.
37
- * @type {string}
38
- * @memberof CreateWithdrawInvoiceRequestDtoRest
39
- */
40
- 'policyNumber': string;
41
- /**
42
- * This is the date from which the invoice interval starts.
43
- * @type {string}
44
- * @memberof CreateWithdrawInvoiceRequestDtoRest
45
- */
46
- 'billingIntervalFrom': string;
47
- /**
48
- * Metadata contains extra information that the object would need for specific cases.
49
- * @type {{ [key: string]: object; }}
50
- * @memberof CreateWithdrawInvoiceRequestDtoRest
51
- */
52
- 'metadata'?: { [key: string]: object; };
53
- }
54
-
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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
-
17
- /**
18
- *
19
- * @export
20
- * @interface CreateWithdrawInvoiceRequestDto
21
- */
22
- export interface CreateWithdrawInvoiceRequestDto {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof CreateWithdrawInvoiceRequestDto
27
- */
28
- 'policyCode': string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CreateWithdrawInvoiceRequestDto
33
- */
34
- 'accountNumber': string;
35
- /**
36
- *
37
- * @type {{ [key: string]: object; }}
38
- * @memberof CreateWithdrawInvoiceRequestDto
39
- */
40
- 'metadata'?: { [key: string]: object; };
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof CreateWithdrawInvoiceRequestDto
45
- */
46
- 'billingIntervalFrom': string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof CreateWithdrawInvoiceRequestDto
51
- */
52
- 'policyNumber': string;
53
- }
54
-