@emilgroup/billing-v2-sdk 0.0.0-stage → 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/.openapi-generator/FILES +93 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +50 -2
  5. package/api/bill-runs-api.ts +468 -0
  6. package/api/bills-api.ts +145 -0
  7. package/api/invoices-api.ts +1530 -0
  8. package/api/jobs-api.ts +756 -0
  9. package/api/policy-billings-api.ts +591 -0
  10. package/api.ts +35 -0
  11. package/base.ts +588 -0
  12. package/common.ts +199 -0
  13. package/configuration.ts +130 -0
  14. package/dist/api/bill-runs-api.d.ts +266 -0
  15. package/dist/api/bill-runs-api.js +466 -0
  16. package/dist/api/bills-api.d.ts +87 -0
  17. package/dist/api/bills-api.js +207 -0
  18. package/dist/api/invoices-api.d.ts +847 -0
  19. package/dist/api/invoices-api.js +1353 -0
  20. package/dist/api/jobs-api.d.ts +426 -0
  21. package/dist/api/jobs-api.js +708 -0
  22. package/dist/api/policy-billings-api.d.ts +332 -0
  23. package/dist/api/policy-billings-api.js +561 -0
  24. package/dist/api.d.ts +16 -0
  25. package/dist/api.js +34 -0
  26. package/dist/base.d.ts +120 -0
  27. package/dist/base.js +604 -0
  28. package/dist/common.d.ts +91 -0
  29. package/dist/common.js +277 -0
  30. package/dist/configuration.d.ts +106 -0
  31. package/dist/configuration.js +54 -0
  32. package/dist/index.d.ts +15 -0
  33. package/dist/index.js +36 -0
  34. package/dist/models/any.d.ts +25 -0
  35. package/dist/models/any.js +15 -0
  36. package/dist/models/bill-item.d.ts +132 -0
  37. package/dist/models/bill-item.js +15 -0
  38. package/dist/models/bill-run.d.ts +145 -0
  39. package/dist/models/bill-run.js +15 -0
  40. package/dist/models/bill.d.ts +194 -0
  41. package/dist/models/bill.js +15 -0
  42. package/dist/models/cancel-job-response.d.ts +25 -0
  43. package/dist/models/cancel-job-response.js +15 -0
  44. package/dist/models/create-correction-invoices-request.d.ts +72 -0
  45. package/dist/models/create-correction-invoices-request.js +15 -0
  46. package/dist/models/create-correction-invoices-response.d.ts +31 -0
  47. package/dist/models/create-correction-invoices-response.js +15 -0
  48. package/dist/models/create-detail-export-job-request.d.ts +56 -0
  49. package/dist/models/create-detail-export-job-request.js +15 -0
  50. package/dist/models/create-detail-export-job-response.d.ts +25 -0
  51. package/dist/models/create-detail-export-job-response.js +15 -0
  52. package/dist/models/create-estimated-invoice-for-interval-request.d.ts +42 -0
  53. package/dist/models/create-estimated-invoice-for-interval-request.js +15 -0
  54. package/dist/models/create-estimated-invoice-for-interval-response.d.ts +25 -0
  55. package/dist/models/create-estimated-invoice-for-interval-response.js +15 -0
  56. package/dist/models/create-estimated-invoice-request.d.ts +36 -0
  57. package/dist/models/create-estimated-invoice-request.js +15 -0
  58. package/dist/models/create-estimated-invoice-response.d.ts +25 -0
  59. package/dist/models/create-estimated-invoice-response.js +15 -0
  60. package/dist/models/create-export-job-request.d.ts +68 -0
  61. package/dist/models/create-export-job-request.js +15 -0
  62. package/dist/models/create-export-job-response.d.ts +25 -0
  63. package/dist/models/create-export-job-response.js +15 -0
  64. package/dist/models/create-initial-invoice-request.d.ts +72 -0
  65. package/dist/models/create-initial-invoice-request.js +15 -0
  66. package/dist/models/create-initial-invoice-response.d.ts +25 -0
  67. package/dist/models/create-initial-invoice-response.js +15 -0
  68. package/dist/models/create-invoice-request.d.ts +67 -0
  69. package/dist/models/create-invoice-request.js +15 -0
  70. package/dist/models/create-invoice-response.d.ts +25 -0
  71. package/dist/models/create-invoice-response.js +15 -0
  72. package/dist/models/create-invoice-status-body.d.ts +24 -0
  73. package/dist/models/create-invoice-status-body.js +15 -0
  74. package/dist/models/create-invoice-status-response.d.ts +25 -0
  75. package/dist/models/create-invoice-status-response.js +15 -0
  76. package/dist/models/create-item-request.d.ts +36 -0
  77. package/dist/models/create-item-request.js +15 -0
  78. package/dist/models/create-policy-billing-request.d.ts +42 -0
  79. package/dist/models/create-policy-billing-request.js +15 -0
  80. package/dist/models/create-policy-billing-response.d.ts +25 -0
  81. package/dist/models/create-policy-billing-response.js +15 -0
  82. package/dist/models/create-recurring-invoice-request.d.ts +72 -0
  83. package/dist/models/create-recurring-invoice-request.js +15 -0
  84. package/dist/models/create-recurring-invoice-response.d.ts +31 -0
  85. package/dist/models/create-recurring-invoice-response.js +15 -0
  86. package/dist/models/create-termination-invoice-request.d.ts +60 -0
  87. package/dist/models/create-termination-invoice-request.js +15 -0
  88. package/dist/models/create-termination-invoice-response.d.ts +25 -0
  89. package/dist/models/create-termination-invoice-response.js +15 -0
  90. package/dist/models/create-withdraw-invoice-request.d.ts +48 -0
  91. package/dist/models/create-withdraw-invoice-request.js +15 -0
  92. package/dist/models/create-withdraw-invoice-response.d.ts +25 -0
  93. package/dist/models/create-withdraw-invoice-response.js +15 -0
  94. package/dist/models/estimate-history-entry.d.ts +36 -0
  95. package/dist/models/estimate-history-entry.js +15 -0
  96. package/dist/models/export-column.d.ts +36 -0
  97. package/dist/models/export-column.js +15 -0
  98. package/dist/models/filter-field.d.ts +110 -0
  99. package/dist/models/filter-field.js +15 -0
  100. package/dist/models/filter-value.d.ts +37 -0
  101. package/dist/models/filter-value.js +15 -0
  102. package/dist/models/get-bill-response.d.ts +25 -0
  103. package/dist/models/get-bill-response.js +15 -0
  104. package/dist/models/get-bill-run-filter-catalog-response.d.ts +31 -0
  105. package/dist/models/get-bill-run-filter-catalog-response.js +15 -0
  106. package/dist/models/get-bill-run-response.d.ts +25 -0
  107. package/dist/models/get-bill-run-response.js +15 -0
  108. package/dist/models/get-invoice-filter-catalog-response.d.ts +31 -0
  109. package/dist/models/get-invoice-filter-catalog-response.js +15 -0
  110. package/dist/models/get-invoice-response.d.ts +25 -0
  111. package/dist/models/get-invoice-response.js +15 -0
  112. package/dist/models/get-job-download-response.d.ts +25 -0
  113. package/dist/models/get-job-download-response.js +15 -0
  114. package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
  115. package/dist/models/get-job-filter-catalog-response.js +15 -0
  116. package/dist/models/get-job-response.d.ts +25 -0
  117. package/dist/models/get-job-response.js +15 -0
  118. package/dist/models/get-policies-billing-date-filter-catalog-response.d.ts +31 -0
  119. package/dist/models/get-policies-billing-date-filter-catalog-response.js +15 -0
  120. package/dist/models/get-policies-billing-filter-catalog-response.d.ts +31 -0
  121. package/dist/models/get-policies-billing-filter-catalog-response.js +15 -0
  122. package/dist/models/get-policy-billing-response.d.ts +25 -0
  123. package/dist/models/get-policy-billing-response.js +15 -0
  124. package/dist/models/highlight.d.ts +30 -0
  125. package/dist/models/highlight.js +15 -0
  126. package/dist/models/index.d.ts +75 -0
  127. package/dist/models/index.js +91 -0
  128. package/dist/models/invoice-item.d.ts +204 -0
  129. package/dist/models/invoice-item.js +15 -0
  130. package/dist/models/invoice-payment.d.ts +108 -0
  131. package/dist/models/invoice-payment.js +15 -0
  132. package/dist/models/invoice-payments.d.ts +25 -0
  133. package/dist/models/invoice-payments.js +15 -0
  134. package/dist/models/invoice-status.d.ts +54 -0
  135. package/dist/models/invoice-status.js +15 -0
  136. package/dist/models/invoice.d.ts +275 -0
  137. package/dist/models/invoice.js +15 -0
  138. package/dist/models/job-download.d.ts +36 -0
  139. package/dist/models/job-download.js +15 -0
  140. package/dist/models/job-error.d.ts +30 -0
  141. package/dist/models/job-error.js +15 -0
  142. package/dist/models/job-progress.d.ts +36 -0
  143. package/dist/models/job-progress.js +15 -0
  144. package/dist/models/job.d.ts +134 -0
  145. package/dist/models/job.js +15 -0
  146. package/dist/models/list-bill-runs-response.d.ts +37 -0
  147. package/dist/models/list-bill-runs-response.js +15 -0
  148. package/dist/models/list-invoices-response.d.ts +37 -0
  149. package/dist/models/list-invoices-response.js +15 -0
  150. package/dist/models/list-jobs-response.d.ts +37 -0
  151. package/dist/models/list-jobs-response.js +15 -0
  152. package/dist/models/list-policies-billing-dates-response.d.ts +37 -0
  153. package/dist/models/list-policies-billing-dates-response.js +15 -0
  154. package/dist/models/list-policies-billings-response.d.ts +37 -0
  155. package/dist/models/list-policies-billings-response.js +15 -0
  156. package/dist/models/list-request.d.ts +60 -0
  157. package/dist/models/list-request.js +15 -0
  158. package/dist/models/localized-text.d.ts +30 -0
  159. package/dist/models/localized-text.js +15 -0
  160. package/dist/models/match.d.ts +69 -0
  161. package/dist/models/match.js +15 -0
  162. package/dist/models/payment-term.d.ts +42 -0
  163. package/dist/models/payment-term.js +15 -0
  164. package/dist/models/policy-billing.d.ts +139 -0
  165. package/dist/models/policy-billing.js +15 -0
  166. package/dist/models/request-bill-run-request.d.ts +30 -0
  167. package/dist/models/request-bill-run-request.js +15 -0
  168. package/dist/models/request-bill-run-response.d.ts +25 -0
  169. package/dist/models/request-bill-run-response.js +15 -0
  170. package/dist/models/resolved-billing-config.d.ts +130 -0
  171. package/dist/models/resolved-billing-config.js +15 -0
  172. package/dist/models/revert-invoice-request.d.ts +24 -0
  173. package/dist/models/revert-invoice-request.js +15 -0
  174. package/dist/models/revert-invoice-response.d.ts +25 -0
  175. package/dist/models/revert-invoice-response.js +15 -0
  176. package/dist/models/slice.d.ts +30 -0
  177. package/dist/models/slice.js +15 -0
  178. package/dist/models/status.d.ts +37 -0
  179. package/dist/models/status.js +15 -0
  180. package/dist/models/tax.d.ts +30 -0
  181. package/dist/models/tax.js +15 -0
  182. package/dist/models/update-policy-billing-body.d.ts +24 -0
  183. package/dist/models/update-policy-billing-body.js +15 -0
  184. package/dist/models/update-policy-billing-response.d.ts +25 -0
  185. package/dist/models/update-policy-billing-response.js +15 -0
  186. package/git_push.sh +57 -0
  187. package/index.ts +19 -0
  188. package/models/any.ts +32 -0
  189. package/models/bill-item.ts +138 -0
  190. package/models/bill-run.ts +151 -0
  191. package/models/bill.ts +200 -0
  192. package/models/cancel-job-response.ts +31 -0
  193. package/models/create-correction-invoices-request.ts +78 -0
  194. package/models/create-correction-invoices-response.ts +37 -0
  195. package/models/create-detail-export-job-request.ts +60 -0
  196. package/models/create-detail-export-job-response.ts +31 -0
  197. package/models/create-estimated-invoice-for-interval-request.ts +48 -0
  198. package/models/create-estimated-invoice-for-interval-response.ts +31 -0
  199. package/models/create-estimated-invoice-request.ts +42 -0
  200. package/models/create-estimated-invoice-response.ts +31 -0
  201. package/models/create-export-job-request.ts +74 -0
  202. package/models/create-export-job-response.ts +31 -0
  203. package/models/create-initial-invoice-request.ts +78 -0
  204. package/models/create-initial-invoice-response.ts +31 -0
  205. package/models/create-invoice-request.ts +73 -0
  206. package/models/create-invoice-response.ts +31 -0
  207. package/models/create-invoice-status-body.ts +30 -0
  208. package/models/create-invoice-status-response.ts +31 -0
  209. package/models/create-item-request.ts +42 -0
  210. package/models/create-policy-billing-request.ts +48 -0
  211. package/models/create-policy-billing-response.ts +31 -0
  212. package/models/create-recurring-invoice-request.ts +78 -0
  213. package/models/create-recurring-invoice-response.ts +37 -0
  214. package/models/create-termination-invoice-request.ts +66 -0
  215. package/models/create-termination-invoice-response.ts +31 -0
  216. package/models/create-withdraw-invoice-request.ts +54 -0
  217. package/models/create-withdraw-invoice-response.ts +31 -0
  218. package/models/estimate-history-entry.ts +42 -0
  219. package/models/export-column.ts +42 -0
  220. package/models/filter-field.ts +116 -0
  221. package/models/filter-value.ts +43 -0
  222. package/models/get-bill-response.ts +31 -0
  223. package/models/get-bill-run-filter-catalog-response.ts +37 -0
  224. package/models/get-bill-run-response.ts +31 -0
  225. package/models/get-invoice-filter-catalog-response.ts +37 -0
  226. package/models/get-invoice-response.ts +31 -0
  227. package/models/get-job-download-response.ts +31 -0
  228. package/models/get-job-filter-catalog-response.ts +37 -0
  229. package/models/get-job-response.ts +31 -0
  230. package/models/get-policies-billing-date-filter-catalog-response.ts +37 -0
  231. package/models/get-policies-billing-filter-catalog-response.ts +37 -0
  232. package/models/get-policy-billing-response.ts +31 -0
  233. package/models/highlight.ts +36 -0
  234. package/models/index.ts +75 -0
  235. package/models/invoice-item.ts +210 -0
  236. package/models/invoice-payment.ts +114 -0
  237. package/models/invoice-payments.ts +31 -0
  238. package/models/invoice-status.ts +60 -0
  239. package/models/invoice.ts +281 -0
  240. package/models/job-download.ts +42 -0
  241. package/models/job-error.ts +36 -0
  242. package/models/job-progress.ts +42 -0
  243. package/models/job.ts +140 -0
  244. package/models/list-bill-runs-response.ts +43 -0
  245. package/models/list-invoices-response.ts +43 -0
  246. package/models/list-jobs-response.ts +43 -0
  247. package/models/list-policies-billing-dates-response.ts +43 -0
  248. package/models/list-policies-billings-response.ts +43 -0
  249. package/models/list-request.ts +66 -0
  250. package/models/localized-text.ts +36 -0
  251. package/models/match.ts +75 -0
  252. package/models/payment-term.ts +48 -0
  253. package/models/policy-billing.ts +145 -0
  254. package/models/request-bill-run-request.ts +36 -0
  255. package/models/request-bill-run-response.ts +31 -0
  256. package/models/resolved-billing-config.ts +134 -0
  257. package/models/revert-invoice-request.ts +30 -0
  258. package/models/revert-invoice-response.ts +31 -0
  259. package/models/slice.ts +36 -0
  260. package/models/status.ts +43 -0
  261. package/models/tax.ts +36 -0
  262. package/models/update-policy-billing-body.ts +30 -0
  263. package/models/update-policy-billing-response.ts +31 -0
  264. package/package.json +25 -4
  265. package/tsconfig.json +23 -0
@@ -0,0 +1,847 @@
1
+ /**
2
+ * EMIL Billing Service
3
+ * The billing service: bills, bill runs, invoices and policy billings.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ *
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 { CreateCorrectionInvoicesRequest } from '../models';
16
+ import { CreateCorrectionInvoicesResponse } from '../models';
17
+ import { CreateEstimatedInvoiceForIntervalRequest } from '../models';
18
+ import { CreateEstimatedInvoiceForIntervalResponse } from '../models';
19
+ import { CreateEstimatedInvoiceRequest } from '../models';
20
+ import { CreateEstimatedInvoiceResponse } from '../models';
21
+ import { CreateInitialInvoiceRequest } from '../models';
22
+ import { CreateInitialInvoiceResponse } from '../models';
23
+ import { CreateInvoiceRequest } from '../models';
24
+ import { CreateInvoiceResponse } from '../models';
25
+ import { CreateInvoiceStatusBody } from '../models';
26
+ import { CreateInvoiceStatusResponse } from '../models';
27
+ import { CreateRecurringInvoiceRequest } from '../models';
28
+ import { CreateRecurringInvoiceResponse } from '../models';
29
+ import { CreateTerminationInvoiceRequest } from '../models';
30
+ import { CreateTerminationInvoiceResponse } from '../models';
31
+ import { CreateWithdrawInvoiceRequest } from '../models';
32
+ import { CreateWithdrawInvoiceResponse } from '../models';
33
+ import { GetInvoiceFilterCatalogResponse } from '../models';
34
+ import { GetInvoiceResponse } from '../models';
35
+ import { GetPoliciesBillingDateFilterCatalogResponse } from '../models';
36
+ import { ListInvoicesResponse } from '../models';
37
+ import { ListPoliciesBillingDatesResponse } from '../models';
38
+ import { RevertInvoiceRequest } from '../models';
39
+ import { RevertInvoiceResponse } from '../models';
40
+ /**
41
+ * InvoicesApi - axios parameter creator
42
+ * @export
43
+ */
44
+ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
45
+ /**
46
+ * Every invoiced period that overlaps the request\'s interval is priced again from the policy\'s current state and compared with its last invoiced bill; without an interval, every invoiced period is. One `correction` invoice is created for each period with a difference. No invoice is created, and the response has `noChange` true, when the total difference is zero (the new bill is recorded). No invoice is created either when the difference is below the `minCorrectionAmount` of the billing configuration, or when its `midTermChange` is `NEXT_PERIOD`: then the difference goes into the next recurring invoice. For a member billed through its group policy, the correction invoice belongs to the group policy. Each correction carries `metadata.correctedInvoiceErn`, the invoice it corrects. A `refunded` invoice is not corrected.
47
+ * @summary Creates correction invoices for a policy.
48
+ * @param {CreateCorrectionInvoicesRequest} body The request of `CreateCorrectionInvoices`. Only `policyCode`, the billing interval and `metadata` are read. Without an interval, every invoiced period is corrected; with it, the invoiced bills of that period.
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ billingServiceCreateCorrectionInvoices: (body: CreateCorrectionInvoicesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ /**
54
+ * The estimate is priced on request and stored, and it replaces an earlier estimate of the same period. For a period that is already invoiced nothing is stored. For a policy the response has no `code` and `metadata.invoiced` is `\"true\"`; for a group policy it is the period\'s issued invoice. The policy is read by its code, so no policy data is sent. The request\'s `metadata` is not stored. For a member billed through its group policy, the group policy\'s estimate is returned; the member\'s line is on it.
55
+ * @summary Creates an estimate for the running period of a policy.
56
+ * @param {CreateEstimatedInvoiceRequest} body The request of &#x60;CreateEstimatedInvoice&#x60;. No policy data is sent: the policy is read by its code, and partial periods are prorated by the day count basis of its billing configuration.
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ billingServiceCreateEstimatedInvoice: (body: CreateEstimatedInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ /**
62
+ * `billingIntervalFrom` and `billingIntervalTo` are required, and the end must be after the start. The estimate is stored and replaced as in `CreateEstimatedInvoice`, and everything else is as there.
63
+ * @summary Creates an estimate for an explicit period of a policy.
64
+ * @param {CreateEstimatedInvoiceForIntervalRequest} body The request of &#x60;CreateEstimatedInvoiceForInterval&#x60;.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ billingServiceCreateEstimatedInvoiceForInterval: (body: CreateEstimatedInvoiceForIntervalRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ * Premium items that are billed once appear on this invoice only. It takes the same request and follows the same rules as `CreateRecurringInvoice`. On a policy that was invoiced before, it creates a `recurring` invoice for the next period. For a group policy whose period no member covers, the response holds an empty invoice.
71
+ * @summary Creates the first invoice of a policy.
72
+ * @param {CreateInitialInvoiceRequest} body The request of &#x60;CreateInitialInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateRecurringInvoiceRequest&#x60;.
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ billingServiceCreateInitialInvoice: (body: CreateInitialInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ /**
78
+ * `type` defaults to `other`. The types `estimated` and `penalty` are refused. `items` must hold at least one item, and the billing interval is required. Each line is `quantity` times `pricePerUnit`, rounded in the currency of the billing configuration; no tax is added.
79
+ * @summary Creates a manual invoice with free items.
80
+ * @param {CreateInvoiceRequest} body The request of &#x60;CreateInvoice&#x60;: a manual invoice with free items.
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ */
84
+ billingServiceCreateInvoice: (body: CreateInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
85
+ /**
86
+ * The invoice\'s `status` becomes that status. The status is one of `open`, `paid`, `partially-paid` and `refunded`. An estimate has no status rows. The response is the new row.
87
+ * @summary Adds a status row to an invoice.
88
+ * @param {string} invoiceCode The code of the invoice.
89
+ * @param {CreateInvoiceStatusBody} body
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ billingServiceCreateInvoiceStatus: (invoiceCode: string, body: CreateInvoiceStatusBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
94
+ /**
95
+ * Without `billingIntervalFrom` and `billingIntervalTo` the invoice bills the next period of the policy\'s schedule, and the schedule always moves on to the period after it. With them the invoice bills that period, and the schedule moves on only when `shouldSetNextBillingDate` is true. A repeated call without an interval returns the invoice that already exists for the period and moves nothing. A period that is already invoiced cannot be invoiced again with an interval. A policy without a billing schedule row gets one first, as `CreatePolicyBilling` opens it. The first invoice of a policy has the type `initial`, whichever creation RPC makes it. For a group policy whose next period no member covers, nothing is created, `noChange` is true and the schedule moves on. With an interval nothing is created.
96
+ * @summary Creates the recurring invoice for the next period of a policy.
97
+ * @param {CreateRecurringInvoiceRequest} body The request of &#x60;CreateRecurringInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateInitialInvoiceRequest&#x60;.
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ billingServiceCreateRecurringInvoice: (body: CreateRecurringInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
102
+ /**
103
+ * The invoiced periods after the termination date are compared with bills shortened to the covered days. This applies when the `terminationRefund` of the billing configuration is `PRO_RATA`; a negative total is the refund. One `final` invoice is created for each affected period, and the response carries the newest. No invoice is created when `terminationRefund` is `NONE`, and none either when neither the request nor the policy gives an end date. The status of the policy\'s schedule row, if it has one, becomes `terminated`. Each final invoice carries `metadata.terminatedFrom` and `metadata.correctedInvoiceErn`.
104
+ * @summary Creates the final invoice of a terminated policy.
105
+ * @param {CreateTerminationInvoiceRequest} body The request of &#x60;CreateTerminationInvoice&#x60;. &#x60;billingIntervalFrom&#x60;, &#x60;accountNumber&#x60;, &#x60;policyNumber&#x60; and &#x60;invoiceNumber&#x60; are ignored.
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ billingServiceCreateTerminationInvoice: (body: CreateTerminationInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
110
+ /**
111
+ * Every invoice of the policy that is not yet reversed is reversed in one `withdraw` invoice, and each of them becomes `refunded`. The status of the policy\'s schedule row, if it has one, becomes `withdrawn`. When no invoice is left to reverse, nothing is created. Only `policyCode` and `metadata` are read.
112
+ * @summary Creates a withdraw invoice for a policy that never came into force.
113
+ * @param {CreateWithdrawInvoiceRequest} body The request of &#x60;CreateWithdrawInvoice&#x60;. Only &#x60;policyCode&#x60; and &#x60;metadata&#x60; are read.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ billingServiceCreateWithdrawInvoice: (body: CreateWithdrawInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
118
+ /**
119
+ * The response holds the invoice with its lines and status rows. `expand=estimateHistory` adds the earlier estimates of the period when the invoice is an estimate.
120
+ * @summary Returns one invoice.
121
+ * @param {string} code The invoice\&#39;s code.
122
+ * @param {string} [expand] The parts to add: &#x60;estimateHistory&#x60; adds the earlier estimates of the period to an estimate.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ billingServiceGetInvoice: (code: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
127
+ /**
128
+ *
129
+ * @summary Returns the filter catalog of the invoice list: the fields a client can filter it by.
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ */
133
+ billingServiceGetInvoiceFilterCatalog: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
134
+ /**
135
+ *
136
+ * @summary Returns the filter catalog of the policies-billing-dates list.
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ billingServiceGetPoliciesBillingDateFilterCatalog: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
141
+ /**
142
+ * For each period only the newest estimate is listed. - Filter: `itemPolicyCode` finds the collective invoices that have a line for the given member policy. - Search: the invoice code, the invoice number, the policy code and the account number. - Expand: `items`, `statuses`, `payments`, `estimateHistory`. A listed invoice has its lines, its status rows and, for an estimate, the earlier estimates of its period only with `expand=items`, `expand=statuses` and `expand=estimateHistory`. `payments` is always empty.
143
+ * @summary Lists invoices.
144
+ * @param {number} [pageSize]
145
+ * @param {string} [pageToken]
146
+ * @param {string} [filter]
147
+ * @param {string} [search]
148
+ * @param {string} [order]
149
+ * @param {string} [expand]
150
+ * @param {string} [filters]
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ billingServiceListInvoices: (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
155
+ /**
156
+ * It returns the same rows as `ListPoliciesBillings`, with the same filter, search and sort rules. - Search: as `ListPoliciesBillings`.
157
+ * @summary Lists the billing schedule rows.
158
+ * @param {number} [pageSize]
159
+ * @param {string} [pageToken]
160
+ * @param {string} [filter]
161
+ * @param {string} [search]
162
+ * @param {string} [order]
163
+ * @param {string} [expand]
164
+ * @param {string} [filters]
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ billingServiceListPoliciesBillingDates: (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
169
+ /**
170
+ * The reversal is a `correction` invoice with every line negated and `revertsInvoiceErn` set to the reverted invoice. The status of the reverted invoice becomes `refunded`. The reversal carries `metadata.revertedInvoiceErn`. An estimate, an invoice that is already `refunded` and a reversal cannot be reverted.
171
+ * @summary Reverses one invoice in full.
172
+ * @param {RevertInvoiceRequest} body The request of &#x60;RevertInvoice&#x60;.
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ billingServiceRevertInvoice: (body: RevertInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
177
+ };
178
+ /**
179
+ * InvoicesApi - functional programming interface
180
+ * @export
181
+ */
182
+ export declare const InvoicesApiFp: (configuration?: Configuration) => {
183
+ /**
184
+ * Every invoiced period that overlaps the request\'s interval is priced again from the policy\'s current state and compared with its last invoiced bill; without an interval, every invoiced period is. One `correction` invoice is created for each period with a difference. No invoice is created, and the response has `noChange` true, when the total difference is zero (the new bill is recorded). No invoice is created either when the difference is below the `minCorrectionAmount` of the billing configuration, or when its `midTermChange` is `NEXT_PERIOD`: then the difference goes into the next recurring invoice. For a member billed through its group policy, the correction invoice belongs to the group policy. Each correction carries `metadata.correctedInvoiceErn`, the invoice it corrects. A `refunded` invoice is not corrected.
185
+ * @summary Creates correction invoices for a policy.
186
+ * @param {CreateCorrectionInvoicesRequest} body The request of &#x60;CreateCorrectionInvoices&#x60;. Only &#x60;policyCode&#x60;, the billing interval and &#x60;metadata&#x60; are read. Without an interval, every invoiced period is corrected; with it, the invoiced bills of that period.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ billingServiceCreateCorrectionInvoices(body: CreateCorrectionInvoicesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponse>>;
191
+ /**
192
+ * The estimate is priced on request and stored, and it replaces an earlier estimate of the same period. For a period that is already invoiced nothing is stored. For a policy the response has no `code` and `metadata.invoiced` is `\"true\"`; for a group policy it is the period\'s issued invoice. The policy is read by its code, so no policy data is sent. The request\'s `metadata` is not stored. For a member billed through its group policy, the group policy\'s estimate is returned; the member\'s line is on it.
193
+ * @summary Creates an estimate for the running period of a policy.
194
+ * @param {CreateEstimatedInvoiceRequest} body The request of &#x60;CreateEstimatedInvoice&#x60;. No policy data is sent: the policy is read by its code, and partial periods are prorated by the day count basis of its billing configuration.
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ billingServiceCreateEstimatedInvoice(body: CreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceResponse>>;
199
+ /**
200
+ * `billingIntervalFrom` and `billingIntervalTo` are required, and the end must be after the start. The estimate is stored and replaced as in `CreateEstimatedInvoice`, and everything else is as there.
201
+ * @summary Creates an estimate for an explicit period of a policy.
202
+ * @param {CreateEstimatedInvoiceForIntervalRequest} body The request of &#x60;CreateEstimatedInvoiceForInterval&#x60;.
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ billingServiceCreateEstimatedInvoiceForInterval(body: CreateEstimatedInvoiceForIntervalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceForIntervalResponse>>;
207
+ /**
208
+ * Premium items that are billed once appear on this invoice only. It takes the same request and follows the same rules as `CreateRecurringInvoice`. On a policy that was invoiced before, it creates a `recurring` invoice for the next period. For a group policy whose period no member covers, the response holds an empty invoice.
209
+ * @summary Creates the first invoice of a policy.
210
+ * @param {CreateInitialInvoiceRequest} body The request of &#x60;CreateInitialInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateRecurringInvoiceRequest&#x60;.
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ billingServiceCreateInitialInvoice(body: CreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInitialInvoiceResponse>>;
215
+ /**
216
+ * `type` defaults to `other`. The types `estimated` and `penalty` are refused. `items` must hold at least one item, and the billing interval is required. Each line is `quantity` times `pricePerUnit`, rounded in the currency of the billing configuration; no tax is added.
217
+ * @summary Creates a manual invoice with free items.
218
+ * @param {CreateInvoiceRequest} body The request of &#x60;CreateInvoice&#x60;: a manual invoice with free items.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ billingServiceCreateInvoice(body: CreateInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponse>>;
223
+ /**
224
+ * The invoice\'s `status` becomes that status. The status is one of `open`, `paid`, `partially-paid` and `refunded`. An estimate has no status rows. The response is the new row.
225
+ * @summary Adds a status row to an invoice.
226
+ * @param {string} invoiceCode The code of the invoice.
227
+ * @param {CreateInvoiceStatusBody} body
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ billingServiceCreateInvoiceStatus(invoiceCode: string, body: CreateInvoiceStatusBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceStatusResponse>>;
232
+ /**
233
+ * Without `billingIntervalFrom` and `billingIntervalTo` the invoice bills the next period of the policy\'s schedule, and the schedule always moves on to the period after it. With them the invoice bills that period, and the schedule moves on only when `shouldSetNextBillingDate` is true. A repeated call without an interval returns the invoice that already exists for the period and moves nothing. A period that is already invoiced cannot be invoiced again with an interval. A policy without a billing schedule row gets one first, as `CreatePolicyBilling` opens it. The first invoice of a policy has the type `initial`, whichever creation RPC makes it. For a group policy whose next period no member covers, nothing is created, `noChange` is true and the schedule moves on. With an interval nothing is created.
234
+ * @summary Creates the recurring invoice for the next period of a policy.
235
+ * @param {CreateRecurringInvoiceRequest} body The request of &#x60;CreateRecurringInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateInitialInvoiceRequest&#x60;.
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ billingServiceCreateRecurringInvoice(body: CreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRecurringInvoiceResponse>>;
240
+ /**
241
+ * The invoiced periods after the termination date are compared with bills shortened to the covered days. This applies when the `terminationRefund` of the billing configuration is `PRO_RATA`; a negative total is the refund. One `final` invoice is created for each affected period, and the response carries the newest. No invoice is created when `terminationRefund` is `NONE`, and none either when neither the request nor the policy gives an end date. The status of the policy\'s schedule row, if it has one, becomes `terminated`. Each final invoice carries `metadata.terminatedFrom` and `metadata.correctedInvoiceErn`.
242
+ * @summary Creates the final invoice of a terminated policy.
243
+ * @param {CreateTerminationInvoiceRequest} body The request of &#x60;CreateTerminationInvoice&#x60;. &#x60;billingIntervalFrom&#x60;, &#x60;accountNumber&#x60;, &#x60;policyNumber&#x60; and &#x60;invoiceNumber&#x60; are ignored.
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ billingServiceCreateTerminationInvoice(body: CreateTerminationInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTerminationInvoiceResponse>>;
248
+ /**
249
+ * Every invoice of the policy that is not yet reversed is reversed in one `withdraw` invoice, and each of them becomes `refunded`. The status of the policy\'s schedule row, if it has one, becomes `withdrawn`. When no invoice is left to reverse, nothing is created. Only `policyCode` and `metadata` are read.
250
+ * @summary Creates a withdraw invoice for a policy that never came into force.
251
+ * @param {CreateWithdrawInvoiceRequest} body The request of &#x60;CreateWithdrawInvoice&#x60;. Only &#x60;policyCode&#x60; and &#x60;metadata&#x60; are read.
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ billingServiceCreateWithdrawInvoice(body: CreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateWithdrawInvoiceResponse>>;
256
+ /**
257
+ * The response holds the invoice with its lines and status rows. `expand=estimateHistory` adds the earlier estimates of the period when the invoice is an estimate.
258
+ * @summary Returns one invoice.
259
+ * @param {string} code The invoice\&#39;s code.
260
+ * @param {string} [expand] The parts to add: &#x60;estimateHistory&#x60; adds the earlier estimates of the period to an estimate.
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ billingServiceGetInvoice(code: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponse>>;
265
+ /**
266
+ *
267
+ * @summary Returns the filter catalog of the invoice list: the fields a client can filter it by.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ billingServiceGetInvoiceFilterCatalog(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceFilterCatalogResponse>>;
272
+ /**
273
+ *
274
+ * @summary Returns the filter catalog of the policies-billing-dates list.
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ billingServiceGetPoliciesBillingDateFilterCatalog(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPoliciesBillingDateFilterCatalogResponse>>;
279
+ /**
280
+ * For each period only the newest estimate is listed. - Filter: `itemPolicyCode` finds the collective invoices that have a line for the given member policy. - Search: the invoice code, the invoice number, the policy code and the account number. - Expand: `items`, `statuses`, `payments`, `estimateHistory`. A listed invoice has its lines, its status rows and, for an estimate, the earlier estimates of its period only with `expand=items`, `expand=statuses` and `expand=estimateHistory`. `payments` is always empty.
281
+ * @summary Lists invoices.
282
+ * @param {number} [pageSize]
283
+ * @param {string} [pageToken]
284
+ * @param {string} [filter]
285
+ * @param {string} [search]
286
+ * @param {string} [order]
287
+ * @param {string} [expand]
288
+ * @param {string} [filters]
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ billingServiceListInvoices(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponse>>;
293
+ /**
294
+ * It returns the same rows as `ListPoliciesBillings`, with the same filter, search and sort rules. - Search: as `ListPoliciesBillings`.
295
+ * @summary Lists the billing schedule rows.
296
+ * @param {number} [pageSize]
297
+ * @param {string} [pageToken]
298
+ * @param {string} [filter]
299
+ * @param {string} [search]
300
+ * @param {string} [order]
301
+ * @param {string} [expand]
302
+ * @param {string} [filters]
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ billingServiceListPoliciesBillingDates(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponse>>;
307
+ /**
308
+ * The reversal is a `correction` invoice with every line negated and `revertsInvoiceErn` set to the reverted invoice. The status of the reverted invoice becomes `refunded`. The reversal carries `metadata.revertedInvoiceErn`. An estimate, an invoice that is already `refunded` and a reversal cannot be reverted.
309
+ * @summary Reverses one invoice in full.
310
+ * @param {RevertInvoiceRequest} body The request of &#x60;RevertInvoice&#x60;.
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ billingServiceRevertInvoice(body: RevertInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertInvoiceResponse>>;
315
+ };
316
+ /**
317
+ * InvoicesApi - factory interface
318
+ * @export
319
+ */
320
+ export declare const InvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
321
+ /**
322
+ * Every invoiced period that overlaps the request\'s interval is priced again from the policy\'s current state and compared with its last invoiced bill; without an interval, every invoiced period is. One `correction` invoice is created for each period with a difference. No invoice is created, and the response has `noChange` true, when the total difference is zero (the new bill is recorded). No invoice is created either when the difference is below the `minCorrectionAmount` of the billing configuration, or when its `midTermChange` is `NEXT_PERIOD`: then the difference goes into the next recurring invoice. For a member billed through its group policy, the correction invoice belongs to the group policy. Each correction carries `metadata.correctedInvoiceErn`, the invoice it corrects. A `refunded` invoice is not corrected.
323
+ * @summary Creates correction invoices for a policy.
324
+ * @param {CreateCorrectionInvoicesRequest} body The request of &#x60;CreateCorrectionInvoices&#x60;. Only &#x60;policyCode&#x60;, the billing interval and &#x60;metadata&#x60; are read. Without an interval, every invoiced period is corrected; with it, the invoiced bills of that period.
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ billingServiceCreateCorrectionInvoices(body: CreateCorrectionInvoicesRequest, options?: any): AxiosPromise<CreateCorrectionInvoicesResponse>;
329
+ /**
330
+ * The estimate is priced on request and stored, and it replaces an earlier estimate of the same period. For a period that is already invoiced nothing is stored. For a policy the response has no `code` and `metadata.invoiced` is `\"true\"`; for a group policy it is the period\'s issued invoice. The policy is read by its code, so no policy data is sent. The request\'s `metadata` is not stored. For a member billed through its group policy, the group policy\'s estimate is returned; the member\'s line is on it.
331
+ * @summary Creates an estimate for the running period of a policy.
332
+ * @param {CreateEstimatedInvoiceRequest} body The request of &#x60;CreateEstimatedInvoice&#x60;. No policy data is sent: the policy is read by its code, and partial periods are prorated by the day count basis of its billing configuration.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ billingServiceCreateEstimatedInvoice(body: CreateEstimatedInvoiceRequest, options?: any): AxiosPromise<CreateEstimatedInvoiceResponse>;
337
+ /**
338
+ * `billingIntervalFrom` and `billingIntervalTo` are required, and the end must be after the start. The estimate is stored and replaced as in `CreateEstimatedInvoice`, and everything else is as there.
339
+ * @summary Creates an estimate for an explicit period of a policy.
340
+ * @param {CreateEstimatedInvoiceForIntervalRequest} body The request of &#x60;CreateEstimatedInvoiceForInterval&#x60;.
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ billingServiceCreateEstimatedInvoiceForInterval(body: CreateEstimatedInvoiceForIntervalRequest, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponse>;
345
+ /**
346
+ * Premium items that are billed once appear on this invoice only. It takes the same request and follows the same rules as `CreateRecurringInvoice`. On a policy that was invoiced before, it creates a `recurring` invoice for the next period. For a group policy whose period no member covers, the response holds an empty invoice.
347
+ * @summary Creates the first invoice of a policy.
348
+ * @param {CreateInitialInvoiceRequest} body The request of &#x60;CreateInitialInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateRecurringInvoiceRequest&#x60;.
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ billingServiceCreateInitialInvoice(body: CreateInitialInvoiceRequest, options?: any): AxiosPromise<CreateInitialInvoiceResponse>;
353
+ /**
354
+ * `type` defaults to `other`. The types `estimated` and `penalty` are refused. `items` must hold at least one item, and the billing interval is required. Each line is `quantity` times `pricePerUnit`, rounded in the currency of the billing configuration; no tax is added.
355
+ * @summary Creates a manual invoice with free items.
356
+ * @param {CreateInvoiceRequest} body The request of &#x60;CreateInvoice&#x60;: a manual invoice with free items.
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ billingServiceCreateInvoice(body: CreateInvoiceRequest, options?: any): AxiosPromise<CreateInvoiceResponse>;
361
+ /**
362
+ * The invoice\'s `status` becomes that status. The status is one of `open`, `paid`, `partially-paid` and `refunded`. An estimate has no status rows. The response is the new row.
363
+ * @summary Adds a status row to an invoice.
364
+ * @param {string} invoiceCode The code of the invoice.
365
+ * @param {CreateInvoiceStatusBody} body
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ billingServiceCreateInvoiceStatus(invoiceCode: string, body: CreateInvoiceStatusBody, options?: any): AxiosPromise<CreateInvoiceStatusResponse>;
370
+ /**
371
+ * Without `billingIntervalFrom` and `billingIntervalTo` the invoice bills the next period of the policy\'s schedule, and the schedule always moves on to the period after it. With them the invoice bills that period, and the schedule moves on only when `shouldSetNextBillingDate` is true. A repeated call without an interval returns the invoice that already exists for the period and moves nothing. A period that is already invoiced cannot be invoiced again with an interval. A policy without a billing schedule row gets one first, as `CreatePolicyBilling` opens it. The first invoice of a policy has the type `initial`, whichever creation RPC makes it. For a group policy whose next period no member covers, nothing is created, `noChange` is true and the schedule moves on. With an interval nothing is created.
372
+ * @summary Creates the recurring invoice for the next period of a policy.
373
+ * @param {CreateRecurringInvoiceRequest} body The request of &#x60;CreateRecurringInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateInitialInvoiceRequest&#x60;.
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ billingServiceCreateRecurringInvoice(body: CreateRecurringInvoiceRequest, options?: any): AxiosPromise<CreateRecurringInvoiceResponse>;
378
+ /**
379
+ * The invoiced periods after the termination date are compared with bills shortened to the covered days. This applies when the `terminationRefund` of the billing configuration is `PRO_RATA`; a negative total is the refund. One `final` invoice is created for each affected period, and the response carries the newest. No invoice is created when `terminationRefund` is `NONE`, and none either when neither the request nor the policy gives an end date. The status of the policy\'s schedule row, if it has one, becomes `terminated`. Each final invoice carries `metadata.terminatedFrom` and `metadata.correctedInvoiceErn`.
380
+ * @summary Creates the final invoice of a terminated policy.
381
+ * @param {CreateTerminationInvoiceRequest} body The request of &#x60;CreateTerminationInvoice&#x60;. &#x60;billingIntervalFrom&#x60;, &#x60;accountNumber&#x60;, &#x60;policyNumber&#x60; and &#x60;invoiceNumber&#x60; are ignored.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ billingServiceCreateTerminationInvoice(body: CreateTerminationInvoiceRequest, options?: any): AxiosPromise<CreateTerminationInvoiceResponse>;
386
+ /**
387
+ * Every invoice of the policy that is not yet reversed is reversed in one `withdraw` invoice, and each of them becomes `refunded`. The status of the policy\'s schedule row, if it has one, becomes `withdrawn`. When no invoice is left to reverse, nothing is created. Only `policyCode` and `metadata` are read.
388
+ * @summary Creates a withdraw invoice for a policy that never came into force.
389
+ * @param {CreateWithdrawInvoiceRequest} body The request of &#x60;CreateWithdrawInvoice&#x60;. Only &#x60;policyCode&#x60; and &#x60;metadata&#x60; are read.
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ billingServiceCreateWithdrawInvoice(body: CreateWithdrawInvoiceRequest, options?: any): AxiosPromise<CreateWithdrawInvoiceResponse>;
394
+ /**
395
+ * The response holds the invoice with its lines and status rows. `expand=estimateHistory` adds the earlier estimates of the period when the invoice is an estimate.
396
+ * @summary Returns one invoice.
397
+ * @param {string} code The invoice\&#39;s code.
398
+ * @param {string} [expand] The parts to add: &#x60;estimateHistory&#x60; adds the earlier estimates of the period to an estimate.
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ billingServiceGetInvoice(code: string, expand?: string, options?: any): AxiosPromise<GetInvoiceResponse>;
403
+ /**
404
+ *
405
+ * @summary Returns the filter catalog of the invoice list: the fields a client can filter it by.
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ billingServiceGetInvoiceFilterCatalog(options?: any): AxiosPromise<GetInvoiceFilterCatalogResponse>;
410
+ /**
411
+ *
412
+ * @summary Returns the filter catalog of the policies-billing-dates list.
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ */
416
+ billingServiceGetPoliciesBillingDateFilterCatalog(options?: any): AxiosPromise<GetPoliciesBillingDateFilterCatalogResponse>;
417
+ /**
418
+ * For each period only the newest estimate is listed. - Filter: `itemPolicyCode` finds the collective invoices that have a line for the given member policy. - Search: the invoice code, the invoice number, the policy code and the account number. - Expand: `items`, `statuses`, `payments`, `estimateHistory`. A listed invoice has its lines, its status rows and, for an estimate, the earlier estimates of its period only with `expand=items`, `expand=statuses` and `expand=estimateHistory`. `payments` is always empty.
419
+ * @summary Lists invoices.
420
+ * @param {number} [pageSize]
421
+ * @param {string} [pageToken]
422
+ * @param {string} [filter]
423
+ * @param {string} [search]
424
+ * @param {string} [order]
425
+ * @param {string} [expand]
426
+ * @param {string} [filters]
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ billingServiceListInvoices(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInvoicesResponse>;
431
+ /**
432
+ * It returns the same rows as `ListPoliciesBillings`, with the same filter, search and sort rules. - Search: as `ListPoliciesBillings`.
433
+ * @summary Lists the billing schedule rows.
434
+ * @param {number} [pageSize]
435
+ * @param {string} [pageToken]
436
+ * @param {string} [filter]
437
+ * @param {string} [search]
438
+ * @param {string} [order]
439
+ * @param {string} [expand]
440
+ * @param {string} [filters]
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ billingServiceListPoliciesBillingDates(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesBillingDatesResponse>;
445
+ /**
446
+ * The reversal is a `correction` invoice with every line negated and `revertsInvoiceErn` set to the reverted invoice. The status of the reverted invoice becomes `refunded`. The reversal carries `metadata.revertedInvoiceErn`. An estimate, an invoice that is already `refunded` and a reversal cannot be reverted.
447
+ * @summary Reverses one invoice in full.
448
+ * @param {RevertInvoiceRequest} body The request of &#x60;RevertInvoice&#x60;.
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ billingServiceRevertInvoice(body: RevertInvoiceRequest, options?: any): AxiosPromise<RevertInvoiceResponse>;
453
+ };
454
+ /**
455
+ * Request parameters for billingServiceCreateCorrectionInvoices operation in InvoicesApi.
456
+ * @export
457
+ * @interface InvoicesApiBillingServiceCreateCorrectionInvoicesRequest
458
+ */
459
+ export interface InvoicesApiBillingServiceCreateCorrectionInvoicesRequest {
460
+ /**
461
+ * The request of &#x60;CreateCorrectionInvoices&#x60;. Only &#x60;policyCode&#x60;, the billing interval and &#x60;metadata&#x60; are read. Without an interval, every invoiced period is corrected; with it, the invoiced bills of that period.
462
+ * @type {CreateCorrectionInvoicesRequest}
463
+ * @memberof InvoicesApiBillingServiceCreateCorrectionInvoices
464
+ */
465
+ readonly body: CreateCorrectionInvoicesRequest;
466
+ }
467
+ /**
468
+ * Request parameters for billingServiceCreateEstimatedInvoice operation in InvoicesApi.
469
+ * @export
470
+ * @interface InvoicesApiBillingServiceCreateEstimatedInvoiceRequest
471
+ */
472
+ export interface InvoicesApiBillingServiceCreateEstimatedInvoiceRequest {
473
+ /**
474
+ * The request of &#x60;CreateEstimatedInvoice&#x60;. No policy data is sent: the policy is read by its code, and partial periods are prorated by the day count basis of its billing configuration.
475
+ * @type {CreateEstimatedInvoiceRequest}
476
+ * @memberof InvoicesApiBillingServiceCreateEstimatedInvoice
477
+ */
478
+ readonly body: CreateEstimatedInvoiceRequest;
479
+ }
480
+ /**
481
+ * Request parameters for billingServiceCreateEstimatedInvoiceForInterval operation in InvoicesApi.
482
+ * @export
483
+ * @interface InvoicesApiBillingServiceCreateEstimatedInvoiceForIntervalRequest
484
+ */
485
+ export interface InvoicesApiBillingServiceCreateEstimatedInvoiceForIntervalRequest {
486
+ /**
487
+ * The request of &#x60;CreateEstimatedInvoiceForInterval&#x60;.
488
+ * @type {CreateEstimatedInvoiceForIntervalRequest}
489
+ * @memberof InvoicesApiBillingServiceCreateEstimatedInvoiceForInterval
490
+ */
491
+ readonly body: CreateEstimatedInvoiceForIntervalRequest;
492
+ }
493
+ /**
494
+ * Request parameters for billingServiceCreateInitialInvoice operation in InvoicesApi.
495
+ * @export
496
+ * @interface InvoicesApiBillingServiceCreateInitialInvoiceRequest
497
+ */
498
+ export interface InvoicesApiBillingServiceCreateInitialInvoiceRequest {
499
+ /**
500
+ * The request of &#x60;CreateInitialInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateRecurringInvoiceRequest&#x60;.
501
+ * @type {CreateInitialInvoiceRequest}
502
+ * @memberof InvoicesApiBillingServiceCreateInitialInvoice
503
+ */
504
+ readonly body: CreateInitialInvoiceRequest;
505
+ }
506
+ /**
507
+ * Request parameters for billingServiceCreateInvoice operation in InvoicesApi.
508
+ * @export
509
+ * @interface InvoicesApiBillingServiceCreateInvoiceRequest
510
+ */
511
+ export interface InvoicesApiBillingServiceCreateInvoiceRequest {
512
+ /**
513
+ * The request of &#x60;CreateInvoice&#x60;: a manual invoice with free items.
514
+ * @type {CreateInvoiceRequest}
515
+ * @memberof InvoicesApiBillingServiceCreateInvoice
516
+ */
517
+ readonly body: CreateInvoiceRequest;
518
+ }
519
+ /**
520
+ * Request parameters for billingServiceCreateInvoiceStatus operation in InvoicesApi.
521
+ * @export
522
+ * @interface InvoicesApiBillingServiceCreateInvoiceStatusRequest
523
+ */
524
+ export interface InvoicesApiBillingServiceCreateInvoiceStatusRequest {
525
+ /**
526
+ * The code of the invoice.
527
+ * @type {string}
528
+ * @memberof InvoicesApiBillingServiceCreateInvoiceStatus
529
+ */
530
+ readonly invoiceCode: string;
531
+ /**
532
+ *
533
+ * @type {CreateInvoiceStatusBody}
534
+ * @memberof InvoicesApiBillingServiceCreateInvoiceStatus
535
+ */
536
+ readonly body: CreateInvoiceStatusBody;
537
+ }
538
+ /**
539
+ * Request parameters for billingServiceCreateRecurringInvoice operation in InvoicesApi.
540
+ * @export
541
+ * @interface InvoicesApiBillingServiceCreateRecurringInvoiceRequest
542
+ */
543
+ export interface InvoicesApiBillingServiceCreateRecurringInvoiceRequest {
544
+ /**
545
+ * The request of &#x60;CreateRecurringInvoice&#x60;. The billing interval is optional: without it the invoice bills the next period of the policy\&#39;s schedule, with it that period. The request has the same fields as &#x60;CreateInitialInvoiceRequest&#x60;.
546
+ * @type {CreateRecurringInvoiceRequest}
547
+ * @memberof InvoicesApiBillingServiceCreateRecurringInvoice
548
+ */
549
+ readonly body: CreateRecurringInvoiceRequest;
550
+ }
551
+ /**
552
+ * Request parameters for billingServiceCreateTerminationInvoice operation in InvoicesApi.
553
+ * @export
554
+ * @interface InvoicesApiBillingServiceCreateTerminationInvoiceRequest
555
+ */
556
+ export interface InvoicesApiBillingServiceCreateTerminationInvoiceRequest {
557
+ /**
558
+ * The request of &#x60;CreateTerminationInvoice&#x60;. &#x60;billingIntervalFrom&#x60;, &#x60;accountNumber&#x60;, &#x60;policyNumber&#x60; and &#x60;invoiceNumber&#x60; are ignored.
559
+ * @type {CreateTerminationInvoiceRequest}
560
+ * @memberof InvoicesApiBillingServiceCreateTerminationInvoice
561
+ */
562
+ readonly body: CreateTerminationInvoiceRequest;
563
+ }
564
+ /**
565
+ * Request parameters for billingServiceCreateWithdrawInvoice operation in InvoicesApi.
566
+ * @export
567
+ * @interface InvoicesApiBillingServiceCreateWithdrawInvoiceRequest
568
+ */
569
+ export interface InvoicesApiBillingServiceCreateWithdrawInvoiceRequest {
570
+ /**
571
+ * The request of &#x60;CreateWithdrawInvoice&#x60;. Only &#x60;policyCode&#x60; and &#x60;metadata&#x60; are read.
572
+ * @type {CreateWithdrawInvoiceRequest}
573
+ * @memberof InvoicesApiBillingServiceCreateWithdrawInvoice
574
+ */
575
+ readonly body: CreateWithdrawInvoiceRequest;
576
+ }
577
+ /**
578
+ * Request parameters for billingServiceGetInvoice operation in InvoicesApi.
579
+ * @export
580
+ * @interface InvoicesApiBillingServiceGetInvoiceRequest
581
+ */
582
+ export interface InvoicesApiBillingServiceGetInvoiceRequest {
583
+ /**
584
+ * The invoice\&#39;s code.
585
+ * @type {string}
586
+ * @memberof InvoicesApiBillingServiceGetInvoice
587
+ */
588
+ readonly code: string;
589
+ /**
590
+ * The parts to add: &#x60;estimateHistory&#x60; adds the earlier estimates of the period to an estimate.
591
+ * @type {string}
592
+ * @memberof InvoicesApiBillingServiceGetInvoice
593
+ */
594
+ readonly expand?: string;
595
+ }
596
+ /**
597
+ * Request parameters for billingServiceListInvoices operation in InvoicesApi.
598
+ * @export
599
+ * @interface InvoicesApiBillingServiceListInvoicesRequest
600
+ */
601
+ export interface InvoicesApiBillingServiceListInvoicesRequest {
602
+ /**
603
+ *
604
+ * @type {number}
605
+ * @memberof InvoicesApiBillingServiceListInvoices
606
+ */
607
+ readonly pageSize?: number;
608
+ /**
609
+ *
610
+ * @type {string}
611
+ * @memberof InvoicesApiBillingServiceListInvoices
612
+ */
613
+ readonly pageToken?: string;
614
+ /**
615
+ *
616
+ * @type {string}
617
+ * @memberof InvoicesApiBillingServiceListInvoices
618
+ */
619
+ readonly filter?: string;
620
+ /**
621
+ *
622
+ * @type {string}
623
+ * @memberof InvoicesApiBillingServiceListInvoices
624
+ */
625
+ readonly search?: string;
626
+ /**
627
+ *
628
+ * @type {string}
629
+ * @memberof InvoicesApiBillingServiceListInvoices
630
+ */
631
+ readonly order?: string;
632
+ /**
633
+ *
634
+ * @type {string}
635
+ * @memberof InvoicesApiBillingServiceListInvoices
636
+ */
637
+ readonly expand?: string;
638
+ /**
639
+ *
640
+ * @type {string}
641
+ * @memberof InvoicesApiBillingServiceListInvoices
642
+ */
643
+ readonly filters?: string;
644
+ }
645
+ /**
646
+ * Request parameters for billingServiceListPoliciesBillingDates operation in InvoicesApi.
647
+ * @export
648
+ * @interface InvoicesApiBillingServiceListPoliciesBillingDatesRequest
649
+ */
650
+ export interface InvoicesApiBillingServiceListPoliciesBillingDatesRequest {
651
+ /**
652
+ *
653
+ * @type {number}
654
+ * @memberof InvoicesApiBillingServiceListPoliciesBillingDates
655
+ */
656
+ readonly pageSize?: number;
657
+ /**
658
+ *
659
+ * @type {string}
660
+ * @memberof InvoicesApiBillingServiceListPoliciesBillingDates
661
+ */
662
+ readonly pageToken?: string;
663
+ /**
664
+ *
665
+ * @type {string}
666
+ * @memberof InvoicesApiBillingServiceListPoliciesBillingDates
667
+ */
668
+ readonly filter?: string;
669
+ /**
670
+ *
671
+ * @type {string}
672
+ * @memberof InvoicesApiBillingServiceListPoliciesBillingDates
673
+ */
674
+ readonly search?: string;
675
+ /**
676
+ *
677
+ * @type {string}
678
+ * @memberof InvoicesApiBillingServiceListPoliciesBillingDates
679
+ */
680
+ readonly order?: string;
681
+ /**
682
+ *
683
+ * @type {string}
684
+ * @memberof InvoicesApiBillingServiceListPoliciesBillingDates
685
+ */
686
+ readonly expand?: string;
687
+ /**
688
+ *
689
+ * @type {string}
690
+ * @memberof InvoicesApiBillingServiceListPoliciesBillingDates
691
+ */
692
+ readonly filters?: string;
693
+ }
694
+ /**
695
+ * Request parameters for billingServiceRevertInvoice operation in InvoicesApi.
696
+ * @export
697
+ * @interface InvoicesApiBillingServiceRevertInvoiceRequest
698
+ */
699
+ export interface InvoicesApiBillingServiceRevertInvoiceRequest {
700
+ /**
701
+ * The request of &#x60;RevertInvoice&#x60;.
702
+ * @type {RevertInvoiceRequest}
703
+ * @memberof InvoicesApiBillingServiceRevertInvoice
704
+ */
705
+ readonly body: RevertInvoiceRequest;
706
+ }
707
+ /**
708
+ * InvoicesApi - object-oriented interface
709
+ * @export
710
+ * @class InvoicesApi
711
+ * @extends {BaseAPI}
712
+ */
713
+ export declare class InvoicesApi extends BaseAPI {
714
+ /**
715
+ * Every invoiced period that overlaps the request\'s interval is priced again from the policy\'s current state and compared with its last invoiced bill; without an interval, every invoiced period is. One `correction` invoice is created for each period with a difference. No invoice is created, and the response has `noChange` true, when the total difference is zero (the new bill is recorded). No invoice is created either when the difference is below the `minCorrectionAmount` of the billing configuration, or when its `midTermChange` is `NEXT_PERIOD`: then the difference goes into the next recurring invoice. For a member billed through its group policy, the correction invoice belongs to the group policy. Each correction carries `metadata.correctedInvoiceErn`, the invoice it corrects. A `refunded` invoice is not corrected.
716
+ * @summary Creates correction invoices for a policy.
717
+ * @param {InvoicesApiBillingServiceCreateCorrectionInvoicesRequest} requestParameters Request parameters.
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ * @memberof InvoicesApi
721
+ */
722
+ billingServiceCreateCorrectionInvoices(requestParameters: InvoicesApiBillingServiceCreateCorrectionInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCorrectionInvoicesResponse, any, {}, any>>;
723
+ /**
724
+ * The estimate is priced on request and stored, and it replaces an earlier estimate of the same period. For a period that is already invoiced nothing is stored. For a policy the response has no `code` and `metadata.invoiced` is `\"true\"`; for a group policy it is the period\'s issued invoice. The policy is read by its code, so no policy data is sent. The request\'s `metadata` is not stored. For a member billed through its group policy, the group policy\'s estimate is returned; the member\'s line is on it.
725
+ * @summary Creates an estimate for the running period of a policy.
726
+ * @param {InvoicesApiBillingServiceCreateEstimatedInvoiceRequest} requestParameters Request parameters.
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ * @memberof InvoicesApi
730
+ */
731
+ billingServiceCreateEstimatedInvoice(requestParameters: InvoicesApiBillingServiceCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponse, any, {}, any>>;
732
+ /**
733
+ * `billingIntervalFrom` and `billingIntervalTo` are required, and the end must be after the start. The estimate is stored and replaced as in `CreateEstimatedInvoice`, and everything else is as there.
734
+ * @summary Creates an estimate for an explicit period of a policy.
735
+ * @param {InvoicesApiBillingServiceCreateEstimatedInvoiceForIntervalRequest} requestParameters Request parameters.
736
+ * @param {*} [options] Override http request option.
737
+ * @throws {RequiredError}
738
+ * @memberof InvoicesApi
739
+ */
740
+ billingServiceCreateEstimatedInvoiceForInterval(requestParameters: InvoicesApiBillingServiceCreateEstimatedInvoiceForIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponse, any, {}, any>>;
741
+ /**
742
+ * Premium items that are billed once appear on this invoice only. It takes the same request and follows the same rules as `CreateRecurringInvoice`. On a policy that was invoiced before, it creates a `recurring` invoice for the next period. For a group policy whose period no member covers, the response holds an empty invoice.
743
+ * @summary Creates the first invoice of a policy.
744
+ * @param {InvoicesApiBillingServiceCreateInitialInvoiceRequest} requestParameters Request parameters.
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ * @memberof InvoicesApi
748
+ */
749
+ billingServiceCreateInitialInvoice(requestParameters: InvoicesApiBillingServiceCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInitialInvoiceResponse, any, {}, any>>;
750
+ /**
751
+ * `type` defaults to `other`. The types `estimated` and `penalty` are refused. `items` must hold at least one item, and the billing interval is required. Each line is `quantity` times `pricePerUnit`, rounded in the currency of the billing configuration; no tax is added.
752
+ * @summary Creates a manual invoice with free items.
753
+ * @param {InvoicesApiBillingServiceCreateInvoiceRequest} requestParameters Request parameters.
754
+ * @param {*} [options] Override http request option.
755
+ * @throws {RequiredError}
756
+ * @memberof InvoicesApi
757
+ */
758
+ billingServiceCreateInvoice(requestParameters: InvoicesApiBillingServiceCreateInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponse, any, {}, any>>;
759
+ /**
760
+ * The invoice\'s `status` becomes that status. The status is one of `open`, `paid`, `partially-paid` and `refunded`. An estimate has no status rows. The response is the new row.
761
+ * @summary Adds a status row to an invoice.
762
+ * @param {InvoicesApiBillingServiceCreateInvoiceStatusRequest} requestParameters Request parameters.
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ * @memberof InvoicesApi
766
+ */
767
+ billingServiceCreateInvoiceStatus(requestParameters: InvoicesApiBillingServiceCreateInvoiceStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceStatusResponse, any, {}, any>>;
768
+ /**
769
+ * Without `billingIntervalFrom` and `billingIntervalTo` the invoice bills the next period of the policy\'s schedule, and the schedule always moves on to the period after it. With them the invoice bills that period, and the schedule moves on only when `shouldSetNextBillingDate` is true. A repeated call without an interval returns the invoice that already exists for the period and moves nothing. A period that is already invoiced cannot be invoiced again with an interval. A policy without a billing schedule row gets one first, as `CreatePolicyBilling` opens it. The first invoice of a policy has the type `initial`, whichever creation RPC makes it. For a group policy whose next period no member covers, nothing is created, `noChange` is true and the schedule moves on. With an interval nothing is created.
770
+ * @summary Creates the recurring invoice for the next period of a policy.
771
+ * @param {InvoicesApiBillingServiceCreateRecurringInvoiceRequest} requestParameters Request parameters.
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ * @memberof InvoicesApi
775
+ */
776
+ billingServiceCreateRecurringInvoice(requestParameters: InvoicesApiBillingServiceCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRecurringInvoiceResponse, any, {}, any>>;
777
+ /**
778
+ * The invoiced periods after the termination date are compared with bills shortened to the covered days. This applies when the `terminationRefund` of the billing configuration is `PRO_RATA`; a negative total is the refund. One `final` invoice is created for each affected period, and the response carries the newest. No invoice is created when `terminationRefund` is `NONE`, and none either when neither the request nor the policy gives an end date. The status of the policy\'s schedule row, if it has one, becomes `terminated`. Each final invoice carries `metadata.terminatedFrom` and `metadata.correctedInvoiceErn`.
779
+ * @summary Creates the final invoice of a terminated policy.
780
+ * @param {InvoicesApiBillingServiceCreateTerminationInvoiceRequest} requestParameters Request parameters.
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ * @memberof InvoicesApi
784
+ */
785
+ billingServiceCreateTerminationInvoice(requestParameters: InvoicesApiBillingServiceCreateTerminationInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTerminationInvoiceResponse, any, {}, any>>;
786
+ /**
787
+ * Every invoice of the policy that is not yet reversed is reversed in one `withdraw` invoice, and each of them becomes `refunded`. The status of the policy\'s schedule row, if it has one, becomes `withdrawn`. When no invoice is left to reverse, nothing is created. Only `policyCode` and `metadata` are read.
788
+ * @summary Creates a withdraw invoice for a policy that never came into force.
789
+ * @param {InvoicesApiBillingServiceCreateWithdrawInvoiceRequest} requestParameters Request parameters.
790
+ * @param {*} [options] Override http request option.
791
+ * @throws {RequiredError}
792
+ * @memberof InvoicesApi
793
+ */
794
+ billingServiceCreateWithdrawInvoice(requestParameters: InvoicesApiBillingServiceCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWithdrawInvoiceResponse, any, {}, any>>;
795
+ /**
796
+ * The response holds the invoice with its lines and status rows. `expand=estimateHistory` adds the earlier estimates of the period when the invoice is an estimate.
797
+ * @summary Returns one invoice.
798
+ * @param {InvoicesApiBillingServiceGetInvoiceRequest} requestParameters Request parameters.
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ * @memberof InvoicesApi
802
+ */
803
+ billingServiceGetInvoice(requestParameters: InvoicesApiBillingServiceGetInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceResponse, any, {}, any>>;
804
+ /**
805
+ *
806
+ * @summary Returns the filter catalog of the invoice list: the fields a client can filter it by.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ * @memberof InvoicesApi
810
+ */
811
+ billingServiceGetInvoiceFilterCatalog(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceFilterCatalogResponse, any, {}, any>>;
812
+ /**
813
+ *
814
+ * @summary Returns the filter catalog of the policies-billing-dates list.
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ * @memberof InvoicesApi
818
+ */
819
+ billingServiceGetPoliciesBillingDateFilterCatalog(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPoliciesBillingDateFilterCatalogResponse, any, {}, any>>;
820
+ /**
821
+ * For each period only the newest estimate is listed. - Filter: `itemPolicyCode` finds the collective invoices that have a line for the given member policy. - Search: the invoice code, the invoice number, the policy code and the account number. - Expand: `items`, `statuses`, `payments`, `estimateHistory`. A listed invoice has its lines, its status rows and, for an estimate, the earlier estimates of its period only with `expand=items`, `expand=statuses` and `expand=estimateHistory`. `payments` is always empty.
822
+ * @summary Lists invoices.
823
+ * @param {InvoicesApiBillingServiceListInvoicesRequest} requestParameters Request parameters.
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ * @memberof InvoicesApi
827
+ */
828
+ billingServiceListInvoices(requestParameters?: InvoicesApiBillingServiceListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponse, any, {}, any>>;
829
+ /**
830
+ * It returns the same rows as `ListPoliciesBillings`, with the same filter, search and sort rules. - Search: as `ListPoliciesBillings`.
831
+ * @summary Lists the billing schedule rows.
832
+ * @param {InvoicesApiBillingServiceListPoliciesBillingDatesRequest} requestParameters Request parameters.
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ * @memberof InvoicesApi
836
+ */
837
+ billingServiceListPoliciesBillingDates(requestParameters?: InvoicesApiBillingServiceListPoliciesBillingDatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesBillingDatesResponse, any, {}, any>>;
838
+ /**
839
+ * The reversal is a `correction` invoice with every line negated and `revertsInvoiceErn` set to the reverted invoice. The status of the reverted invoice becomes `refunded`. The reversal carries `metadata.revertedInvoiceErn`. An estimate, an invoice that is already `refunded` and a reversal cannot be reverted.
840
+ * @summary Reverses one invoice in full.
841
+ * @param {InvoicesApiBillingServiceRevertInvoiceRequest} requestParameters Request parameters.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ * @memberof InvoicesApi
845
+ */
846
+ billingServiceRevertInvoice(requestParameters: InvoicesApiBillingServiceRevertInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RevertInvoiceResponse, any, {}, any>>;
847
+ }