@emilgroup/billing-sdk-node 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/.openapi-generator/FILES +26 -52
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +183 -0
  4. package/api/estimated-invoices-api.ts +276 -0
  5. package/api/initial-invoices-api.ts +183 -0
  6. package/api/invoices-api.ts +410 -0
  7. package/api/recurring-invoices-api.ts +183 -0
  8. package/api.ts +12 -12
  9. package/base.ts +2 -2
  10. package/common.ts +4 -4
  11. package/configuration.ts +2 -2
  12. package/dist/api/correction-invoices-api.d.ts +106 -0
  13. package/dist/api/correction-invoices-api.js +234 -0
  14. package/dist/api/estimated-invoices-api.d.ts +154 -0
  15. package/dist/api/estimated-invoices-api.js +321 -0
  16. package/dist/api/initial-invoices-api.d.ts +106 -0
  17. package/dist/api/initial-invoices-api.js +234 -0
  18. package/dist/api/invoices-api.d.ts +242 -0
  19. package/dist/api/{documents-api.js → invoices-api.js} +105 -167
  20. package/dist/api/recurring-invoices-api.d.ts +106 -0
  21. package/dist/api/{notifications-api.js → recurring-invoices-api.js} +51 -45
  22. package/dist/api.d.ts +7 -7
  23. package/dist/api.js +7 -7
  24. package/dist/base.d.ts +2 -2
  25. package/dist/base.js +2 -2
  26. package/dist/common.d.ts +4 -4
  27. package/dist/common.js +2 -2
  28. package/dist/configuration.d.ts +2 -2
  29. package/dist/configuration.js +2 -2
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +2 -2
  32. package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
  33. package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-correction-invoices-response-class.js} +2 -2
  34. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +35 -0
  35. package/dist/models/{create-custom-application-request-dto.js → create-custom-estimated-invoice-request-dto.js} +4 -4
  36. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
  37. package/dist/models/{complete-payment-setup-request-dto.js → create-custom-estimated-invoice-response-class.js} +2 -2
  38. package/dist/models/create-estimated-invoice-request-dto.d.ts +8 -32
  39. package/dist/models/create-estimated-invoice-request-dto.js +2 -7
  40. package/dist/models/create-estimated-invoice-response-class.d.ts +6 -6
  41. package/dist/models/create-estimated-invoice-response-class.js +2 -2
  42. package/dist/models/create-invoice-request-dto.d.ts +77 -0
  43. package/dist/models/{premium-override-dto.js → create-invoice-request-dto.js} +12 -12
  44. package/dist/models/create-invoice-response-class.d.ts +25 -0
  45. package/dist/models/{complete-stripe-payment-setup-request-dto.js → create-invoice-response-class.js} +2 -2
  46. package/dist/models/create-invoice-status-request-dto.d.ts +35 -0
  47. package/dist/models/create-invoice-status-request-dto.js +20 -0
  48. package/dist/models/create-termination-invoice-request-dto.d.ts +48 -0
  49. package/dist/models/{complete-payment-setup-response-class.js → create-termination-invoice-request-dto.js} +2 -2
  50. package/dist/models/currency-class.d.ts +48 -0
  51. package/dist/models/currency-class.js +15 -0
  52. package/dist/models/index.d.ts +21 -47
  53. package/dist/models/index.js +21 -47
  54. package/dist/models/invoice-class.d.ts +38 -15
  55. package/dist/models/invoice-class.js +17 -2
  56. package/dist/models/invoice-item-class.d.ts +18 -9
  57. package/dist/models/invoice-item-class.js +11 -2
  58. package/dist/models/invoice-status-class.d.ts +9 -4
  59. package/dist/models/invoice-status-class.js +7 -2
  60. package/dist/models/list-invoices-response-class.d.ts +31 -0
  61. package/dist/models/list-invoices-response-class.js +15 -0
  62. package/dist/models/list-policies-billing-dates-response-class.d.ts +31 -0
  63. package/dist/models/list-policies-billing-dates-response-class.js +15 -0
  64. package/dist/models/list-request-dto.d.ts +54 -0
  65. package/dist/models/list-request-dto.js +15 -0
  66. package/dist/models/omit-type-class.d.ts +144 -0
  67. package/dist/models/omit-type-class.js +30 -0
  68. package/dist/models/policy-billing-date-class.d.ts +42 -0
  69. package/dist/models/policy-billing-date-class.js +15 -0
  70. package/dist/models/policy-dto.d.ts +122 -0
  71. package/dist/models/{lead-account-class.js → policy-dto.js} +8 -8
  72. package/dist/models/{lead-policy-object-class.d.ts → policy-object-dto.d.ts} +18 -6
  73. package/dist/models/policy-object-dto.js +15 -0
  74. package/dist/models/policy-premium-dto.d.ts +43 -0
  75. package/dist/models/policy-premium-dto.js +15 -0
  76. package/dist/models/policy-premium-item-dto.d.ts +55 -0
  77. package/dist/models/policy-premium-item-dto.js +15 -0
  78. package/dist/models/policy-version-dto.d.ts +55 -0
  79. package/dist/models/policy-version-dto.js +15 -0
  80. package/dist/models/{premium-formula-class.d.ts → premium-formula-dto.d.ts} +17 -17
  81. package/dist/models/premium-formula-dto.js +15 -0
  82. package/dist/models/{send-notification-response-class.d.ts → revert-invoice-request-dto.d.ts} +6 -6
  83. package/dist/models/revert-invoice-request-dto.js +15 -0
  84. package/dist/models/{product-factor-class.d.ts → timeslice-dto.d.ts} +23 -21
  85. package/dist/models/timeslice-dto.js +15 -0
  86. package/index.ts +2 -2
  87. package/models/create-correction-invoices-response-class.ts +31 -0
  88. package/models/create-custom-estimated-invoice-request-dto.ts +44 -0
  89. package/models/{create-custom-application-response-class.ts → create-custom-estimated-invoice-response-class.ts} +7 -7
  90. package/models/create-estimated-invoice-request-dto.ts +8 -35
  91. package/models/create-estimated-invoice-response-class.ts +6 -6
  92. package/models/create-invoice-request-dto.ts +86 -0
  93. package/models/{get-lead-response-class.ts → create-invoice-response-class.ts} +9 -9
  94. package/models/create-invoice-status-request-dto.ts +44 -0
  95. package/models/create-termination-invoice-request-dto.ts +54 -0
  96. package/models/currency-class.ts +54 -0
  97. package/models/index.ts +21 -47
  98. package/models/invoice-class.ts +42 -15
  99. package/models/invoice-item-class.ts +21 -9
  100. package/models/invoice-status-class.ts +12 -4
  101. package/models/{list-products-response-class.ts → list-invoices-response-class.ts} +10 -10
  102. package/models/list-policies-billing-dates-response-class.ts +37 -0
  103. package/models/list-request-dto.ts +60 -0
  104. package/models/omit-type-class.ts +154 -0
  105. package/models/policy-billing-date-class.ts +48 -0
  106. package/models/policy-dto.ts +131 -0
  107. package/models/{lead-policy-object-class.ts → policy-object-dto.ts} +18 -6
  108. package/models/policy-premium-dto.ts +49 -0
  109. package/models/policy-premium-item-dto.ts +61 -0
  110. package/models/policy-version-dto.ts +61 -0
  111. package/models/{premium-formula-class.ts → premium-formula-dto.ts} +17 -17
  112. package/models/{send-notification-response-class.ts → revert-invoice-request-dto.ts} +6 -6
  113. package/models/{product-factor-class.ts → timeslice-dto.ts} +23 -21
  114. package/package.json +1 -1
  115. package/api/documents-api.ts +0 -442
  116. package/api/leads-api.ts +0 -482
  117. package/api/notifications-api.ts +0 -169
  118. package/api/payments-setup-api.ts +0 -408
  119. package/api/products-api.ts +0 -891
  120. package/dist/api/documents-api.d.ts +0 -252
  121. package/dist/api/leads-api.d.ts +0 -266
  122. package/dist/api/leads-api.js +0 -506
  123. package/dist/api/notifications-api.d.ts +0 -97
  124. package/dist/api/payments-setup-api.d.ts +0 -228
  125. package/dist/api/payments-setup-api.js +0 -426
  126. package/dist/api/products-api.d.ts +0 -497
  127. package/dist/api/products-api.js +0 -827
  128. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  129. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  130. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  131. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  132. package/dist/models/create-account-request-dto.d.ts +0 -132
  133. package/dist/models/create-account-request-dto.js +0 -31
  134. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  135. package/dist/models/create-bank-account-request-dto.js +0 -15
  136. package/dist/models/create-custom-application-request-dto.d.ts +0 -35
  137. package/dist/models/create-custom-application-response-class.d.ts +0 -24
  138. package/dist/models/create-custom-application-response-class.js +0 -15
  139. package/dist/models/create-document-request-dto.d.ts +0 -101
  140. package/dist/models/create-document-request-dto.js +0 -31
  141. package/dist/models/create-lead-request-dto.d.ts +0 -83
  142. package/dist/models/create-lead-request-dto.js +0 -15
  143. package/dist/models/create-lead-response-class.d.ts +0 -25
  144. package/dist/models/create-lead-response-class.js +0 -15
  145. package/dist/models/document-class.d.ts +0 -130
  146. package/dist/models/document-class.js +0 -41
  147. package/dist/models/get-custom-css-response-class.d.ts +0 -24
  148. package/dist/models/get-custom-css-response-class.js +0 -15
  149. package/dist/models/get-lead-response-class.d.ts +0 -25
  150. package/dist/models/get-lead-response-class.js +0 -15
  151. package/dist/models/get-public-psp-settings-response-class.d.ts +0 -30
  152. package/dist/models/get-public-psp-settings-response-class.js +0 -15
  153. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  154. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  155. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  156. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  157. package/dist/models/initiate-lead-response-class.d.ts +0 -24
  158. package/dist/models/initiate-lead-response-class.js +0 -15
  159. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -32
  160. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  161. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  162. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  163. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  164. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  165. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  166. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  167. package/dist/models/insured-object-class.d.ts +0 -67
  168. package/dist/models/insured-object-class.js +0 -15
  169. package/dist/models/insured-object-type-class.d.ts +0 -48
  170. package/dist/models/insured-object-type-class.js +0 -15
  171. package/dist/models/lead-account-class.d.ts +0 -109
  172. package/dist/models/lead-bank-account-class.d.ts +0 -30
  173. package/dist/models/lead-bank-account-class.js +0 -15
  174. package/dist/models/lead-class.d.ts +0 -96
  175. package/dist/models/lead-class.js +0 -15
  176. package/dist/models/lead-policy-class.d.ts +0 -43
  177. package/dist/models/lead-policy-class.js +0 -15
  178. package/dist/models/lead-policy-object-class.js +0 -15
  179. package/dist/models/list-documents-response-class.d.ts +0 -31
  180. package/dist/models/list-documents-response-class.js +0 -15
  181. package/dist/models/list-products-response-class.d.ts +0 -31
  182. package/dist/models/list-products-response-class.js +0 -15
  183. package/dist/models/payment-method-class.d.ts +0 -60
  184. package/dist/models/payment-method-class.js +0 -15
  185. package/dist/models/policy-object-request-dto.d.ts +0 -30
  186. package/dist/models/policy-object-request-dto.js +0 -15
  187. package/dist/models/policy-premium-class.d.ts +0 -55
  188. package/dist/models/policy-premium-class.js +0 -15
  189. package/dist/models/policy-premium-item-class.d.ts +0 -73
  190. package/dist/models/policy-premium-item-class.js +0 -15
  191. package/dist/models/premium-formula-class.js +0 -15
  192. package/dist/models/premium-override-dto.d.ts +0 -54
  193. package/dist/models/premium-override-request-dto.d.ts +0 -25
  194. package/dist/models/premium-override-request-dto.js +0 -15
  195. package/dist/models/product-class.d.ts +0 -74
  196. package/dist/models/product-class.js +0 -15
  197. package/dist/models/product-factor-class.js +0 -15
  198. package/dist/models/product-field-class.d.ts +0 -132
  199. package/dist/models/product-field-class.js +0 -15
  200. package/dist/models/product-version-class.d.ts +0 -61
  201. package/dist/models/product-version-class.js +0 -22
  202. package/dist/models/send-notification-request-dto.d.ts +0 -36
  203. package/dist/models/send-notification-request-dto.js +0 -15
  204. package/dist/models/send-notification-response-class.js +0 -15
  205. package/dist/models/update-lead-request-dto.d.ts +0 -83
  206. package/dist/models/update-lead-request-dto.js +0 -15
  207. package/dist/models/update-lead-response-class.d.ts +0 -25
  208. package/dist/models/update-lead-response-class.js +0 -15
  209. package/dist/models/uploaded-document-dto.d.ts +0 -24
  210. package/dist/models/uploaded-document-dto.js +0 -15
  211. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  212. package/models/complete-payment-setup-request-dto.ts +0 -38
  213. package/models/complete-payment-setup-response-class.ts +0 -31
  214. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  215. package/models/create-account-request-dto.ts +0 -143
  216. package/models/create-bank-account-request-dto.ts +0 -36
  217. package/models/create-custom-application-request-dto.ts +0 -44
  218. package/models/create-document-request-dto.ts +0 -111
  219. package/models/create-lead-request-dto.ts +0 -89
  220. package/models/create-lead-response-class.ts +0 -31
  221. package/models/document-class.ts +0 -141
  222. package/models/get-custom-css-response-class.ts +0 -30
  223. package/models/get-public-psp-settings-response-class.ts +0 -36
  224. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  225. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  226. package/models/initiate-lead-response-class.ts +0 -30
  227. package/models/initiate-payment-setup-request-dto.ts +0 -38
  228. package/models/initiate-payment-setup-response-class.ts +0 -38
  229. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  230. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  231. package/models/insured-object-class.ts +0 -73
  232. package/models/insured-object-type-class.ts +0 -54
  233. package/models/lead-account-class.ts +0 -118
  234. package/models/lead-bank-account-class.ts +0 -36
  235. package/models/lead-class.ts +0 -102
  236. package/models/lead-policy-class.ts +0 -49
  237. package/models/list-documents-response-class.ts +0 -37
  238. package/models/payment-method-class.ts +0 -66
  239. package/models/policy-object-request-dto.ts +0 -36
  240. package/models/policy-premium-class.ts +0 -61
  241. package/models/policy-premium-item-class.ts +0 -79
  242. package/models/premium-override-dto.ts +0 -64
  243. package/models/premium-override-request-dto.ts +0 -31
  244. package/models/product-class.ts +0 -80
  245. package/models/product-field-class.ts +0 -138
  246. package/models/product-version-class.ts +0 -70
  247. package/models/send-notification-request-dto.ts +0 -42
  248. package/models/update-lead-request-dto.ts +0 -89
  249. package/models/update-lead-response-class.ts +0 -31
  250. package/models/uploaded-document-dto.ts +0 -30
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Emil PublicAPI
6
- * The Emil Public API description
5
+ * EMIL BillingService
6
+ * The EMIL BillingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = void 0;
81
+ exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,36 +90,39 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * DocumentsApi - axios parameter creator
93
+ * InvoicesApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var DocumentsApiAxiosParamCreator = function (configuration) {
96
+ var InvoicesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create a temporary document.
101
- * @summary Create the temporary document
102
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
100
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
101
+ * @summary List invoices
103
102
  * @param {string} [authorization] Bearer Token
103
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
104
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
105
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
107
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
108
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
104
109
  * @param {*} [options] Override http request option.
105
110
  * @throws {RequiredError}
106
111
  */
107
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
112
+ listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
108
113
  if (options === void 0) { options = {}; }
109
114
  return __awaiter(_this, void 0, void 0, function () {
110
115
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
116
  return __generator(this, function (_a) {
112
117
  switch (_a.label) {
113
118
  case 0:
114
- // verify required parameter 'createDocumentRequestDto' is not null or undefined
115
- (0, common_1.assertParamExists)('createTemporaryDocument', 'createDocumentRequestDto', createDocumentRequestDto);
116
- localVarPath = "/publicapi/v1/documents";
119
+ localVarPath = "/billingservice/v1/invoices";
117
120
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
121
  if (configuration) {
119
122
  baseOptions = configuration.baseOptions;
120
123
  baseAccessToken = configuration.accessToken;
121
124
  }
122
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
125
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
123
126
  localVarHeaderParameter = {};
124
127
  localVarQueryParameter = {};
125
128
  // authentication bearer required
@@ -129,56 +132,24 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
129
132
  // authentication bearer required
130
133
  // http bearer authentication required
131
134
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ if (pageSize !== undefined) {
136
+ localVarQueryParameter['pageSize'] = pageSize;
134
137
  }
135
- localVarHeaderParameter['Content-Type'] = 'application/json';
136
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDocumentRequestDto, localVarRequestOptions, configuration);
140
- return [2 /*return*/, {
141
- url: (0, common_1.toPathString)(localVarUrlObj),
142
- options: localVarRequestOptions,
143
- }];
144
- }
145
- });
146
- });
147
- },
148
- /**
149
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
150
- * @summary Download a document
151
- * @param {string} code
152
- * @param {string} [authorization] Bearer Token
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- downloadDocument: function (code, authorization, options) {
157
- if (options === void 0) { options = {}; }
158
- return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
162
- case 0:
163
- // verify required parameter 'code' is not null or undefined
164
- (0, common_1.assertParamExists)('downloadDocument', 'code', code);
165
- localVarPath = "/publicapi/v1/documents/download/{code}"
166
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
- if (configuration) {
169
- baseOptions = configuration.baseOptions;
170
- baseAccessToken = configuration.accessToken;
138
+ if (pageToken !== undefined) {
139
+ localVarQueryParameter['pageToken'] = pageToken;
140
+ }
141
+ if (filter !== undefined) {
142
+ localVarQueryParameter['filter'] = filter;
143
+ }
144
+ if (search !== undefined) {
145
+ localVarQueryParameter['search'] = search;
146
+ }
147
+ if (order !== undefined) {
148
+ localVarQueryParameter['order'] = order;
149
+ }
150
+ if (expand !== undefined) {
151
+ localVarQueryParameter['expand'] = expand;
171
152
  }
172
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
173
- localVarHeaderParameter = {};
174
- localVarQueryParameter = {};
175
- // authentication bearer required
176
- // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
- case 1:
179
- // authentication bearer required
180
- // http bearer authentication required
181
- _a.sent();
182
153
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
154
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
155
  }
@@ -194,26 +165,26 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
194
165
  });
195
166
  },
196
167
  /**
197
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
198
- * @summary List documents
168
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
169
+ * @summary List policies billing dates
199
170
  * @param {string} [authorization] Bearer Token
200
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
201
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
171
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
172
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
202
173
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
203
174
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
204
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
205
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
175
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
176
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
206
177
  * @param {*} [options] Override http request option.
207
178
  * @throws {RequiredError}
208
179
  */
209
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
180
+ listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
210
181
  if (options === void 0) { options = {}; }
211
182
  return __awaiter(_this, void 0, void 0, function () {
212
183
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
184
  return __generator(this, function (_a) {
214
185
  switch (_a.label) {
215
186
  case 0:
216
- localVarPath = "/publicapi/v1/documents";
187
+ localVarPath = "/billingservice/v1/invoices/policies-billing-dates";
217
188
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
189
  if (configuration) {
219
190
  baseOptions = configuration.baseOptions;
@@ -263,49 +234,33 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
263
234
  },
264
235
  };
265
236
  };
266
- exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
237
+ exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
267
238
  /**
268
- * DocumentsApi - functional programming interface
239
+ * InvoicesApi - functional programming interface
269
240
  * @export
270
241
  */
271
- var DocumentsApiFp = function (configuration) {
272
- var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
242
+ var InvoicesApiFp = function (configuration) {
243
+ var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
273
244
  return {
274
245
  /**
275
- * This will create a temporary document.
276
- * @summary Create the temporary document
277
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
278
- * @param {string} [authorization] Bearer Token
279
- * @param {*} [options] Override http request option.
280
- * @throws {RequiredError}
281
- */
282
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
283
- return __awaiter(this, void 0, void 0, function () {
284
- var localVarAxiosArgs;
285
- return __generator(this, function (_a) {
286
- switch (_a.label) {
287
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTemporaryDocument(createDocumentRequestDto, authorization, options)];
288
- case 1:
289
- localVarAxiosArgs = _a.sent();
290
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
291
- }
292
- });
293
- });
294
- },
295
- /**
296
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
297
- * @summary Download a document
298
- * @param {string} code
246
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
247
+ * @summary List invoices
299
248
  * @param {string} [authorization] Bearer Token
249
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
250
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
251
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
252
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
253
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
254
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
300
255
  * @param {*} [options] Override http request option.
301
256
  * @throws {RequiredError}
302
257
  */
303
- downloadDocument: function (code, authorization, options) {
258
+ listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
304
259
  return __awaiter(this, void 0, void 0, function () {
305
260
  var localVarAxiosArgs;
306
261
  return __generator(this, function (_a) {
307
262
  switch (_a.label) {
308
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocument(code, authorization, options)];
263
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options)];
309
264
  case 1:
310
265
  localVarAxiosArgs = _a.sent();
311
266
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -314,24 +269,24 @@ var DocumentsApiFp = function (configuration) {
314
269
  });
315
270
  },
316
271
  /**
317
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
318
- * @summary List documents
272
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
273
+ * @summary List policies billing dates
319
274
  * @param {string} [authorization] Bearer Token
320
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
321
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
275
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
276
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
322
277
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
323
278
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
324
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
325
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
279
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
280
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
326
281
  * @param {*} [options] Override http request option.
327
282
  * @throws {RequiredError}
328
283
  */
329
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
284
+ listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
330
285
  return __awaiter(this, void 0, void 0, function () {
331
286
  var localVarAxiosArgs;
332
287
  return __generator(this, function (_a) {
333
288
  switch (_a.label) {
334
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
289
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
335
290
  case 1:
336
291
  localVarAxiosArgs = _a.sent();
337
292
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -341,103 +296,86 @@ var DocumentsApiFp = function (configuration) {
341
296
  },
342
297
  };
343
298
  };
344
- exports.DocumentsApiFp = DocumentsApiFp;
299
+ exports.InvoicesApiFp = InvoicesApiFp;
345
300
  /**
346
- * DocumentsApi - factory interface
301
+ * InvoicesApi - factory interface
347
302
  * @export
348
303
  */
349
- var DocumentsApiFactory = function (configuration, basePath, axios) {
350
- var localVarFp = (0, exports.DocumentsApiFp)(configuration);
304
+ var InvoicesApiFactory = function (configuration, basePath, axios) {
305
+ var localVarFp = (0, exports.InvoicesApiFp)(configuration);
351
306
  return {
352
307
  /**
353
- * This will create a temporary document.
354
- * @summary Create the temporary document
355
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
356
- * @param {string} [authorization] Bearer Token
357
- * @param {*} [options] Override http request option.
358
- * @throws {RequiredError}
359
- */
360
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
361
- return localVarFp.createTemporaryDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
362
- },
363
- /**
364
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
365
- * @summary Download a document
366
- * @param {string} code
308
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
309
+ * @summary List invoices
367
310
  * @param {string} [authorization] Bearer Token
311
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
312
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
313
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
314
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
315
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
316
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
368
317
  * @param {*} [options] Override http request option.
369
318
  * @throws {RequiredError}
370
319
  */
371
- downloadDocument: function (code, authorization, options) {
372
- return localVarFp.downloadDocument(code, authorization, options).then(function (request) { return request(axios, basePath); });
320
+ listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
321
+ return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
373
322
  },
374
323
  /**
375
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
376
- * @summary List documents
324
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
325
+ * @summary List policies billing dates
377
326
  * @param {string} [authorization] Bearer Token
378
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
379
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
327
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
328
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
380
329
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
381
330
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
382
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
383
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
331
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
332
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
384
333
  * @param {*} [options] Override http request option.
385
334
  * @throws {RequiredError}
386
335
  */
387
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
388
- return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
336
+ listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
337
+ return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
389
338
  },
390
339
  };
391
340
  };
392
- exports.DocumentsApiFactory = DocumentsApiFactory;
341
+ exports.InvoicesApiFactory = InvoicesApiFactory;
393
342
  /**
394
- * DocumentsApi - object-oriented interface
343
+ * InvoicesApi - object-oriented interface
395
344
  * @export
396
- * @class DocumentsApi
345
+ * @class InvoicesApi
397
346
  * @extends {BaseAPI}
398
347
  */
399
- var DocumentsApi = /** @class */ (function (_super) {
400
- __extends(DocumentsApi, _super);
401
- function DocumentsApi() {
348
+ var InvoicesApi = /** @class */ (function (_super) {
349
+ __extends(InvoicesApi, _super);
350
+ function InvoicesApi() {
402
351
  return _super !== null && _super.apply(this, arguments) || this;
403
352
  }
404
353
  /**
405
- * This will create a temporary document.
406
- * @summary Create the temporary document
407
- * @param {DocumentsApiCreateTemporaryDocumentRequest} requestParameters Request parameters.
354
+ * Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
355
+ * @summary List invoices
356
+ * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
408
357
  * @param {*} [options] Override http request option.
409
358
  * @throws {RequiredError}
410
- * @memberof DocumentsApi
359
+ * @memberof InvoicesApi
411
360
  */
412
- DocumentsApi.prototype.createTemporaryDocument = function (requestParameters, options) {
361
+ InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
413
362
  var _this = this;
414
- return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
415
- };
416
- /**
417
- * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
418
- * @summary Download a document
419
- * @param {DocumentsApiDownloadDocumentRequest} requestParameters Request parameters.
420
- * @param {*} [options] Override http request option.
421
- * @throws {RequiredError}
422
- * @memberof DocumentsApi
423
- */
424
- DocumentsApi.prototype.downloadDocument = function (requestParameters, options) {
425
- var _this = this;
426
- return (0, exports.DocumentsApiFp)(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
363
+ if (requestParameters === void 0) { requestParameters = {}; }
364
+ return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
427
365
  };
428
366
  /**
429
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
430
- * @summary List documents
431
- * @param {DocumentsApiListDocumentsRequest} requestParameters Request parameters.
367
+ * Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
368
+ * @summary List policies billing dates
369
+ * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
432
370
  * @param {*} [options] Override http request option.
433
371
  * @throws {RequiredError}
434
- * @memberof DocumentsApi
372
+ * @memberof InvoicesApi
435
373
  */
436
- DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
374
+ InvoicesApi.prototype.listPoliciesBillingDates = function (requestParameters, options) {
437
375
  var _this = this;
438
376
  if (requestParameters === void 0) { requestParameters = {}; }
439
- return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
377
+ return (0, exports.InvoicesApiFp)(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
440
378
  };
441
- return DocumentsApi;
379
+ return InvoicesApi;
442
380
  }(base_1.BaseAPI));
443
- exports.DocumentsApi = DocumentsApi;
381
+ exports.InvoicesApi = InvoicesApi;
@@ -0,0 +1,106 @@
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 { CreateInvoiceRequestDto } from '../models';
16
+ import { CreateInvoiceResponseClass } from '../models';
17
+ /**
18
+ * RecurringInvoicesApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const RecurringInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
24
+ * @summary Create the recurring invoice
25
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
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
+ createRecurringInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ };
33
+ /**
34
+ * RecurringInvoicesApi - functional programming interface
35
+ * @export
36
+ */
37
+ export declare const RecurringInvoicesApiFp: (configuration?: Configuration) => {
38
+ /**
39
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
40
+ * @summary Create the recurring invoice
41
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
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
+ createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
48
+ };
49
+ /**
50
+ * RecurringInvoicesApi - factory interface
51
+ * @export
52
+ */
53
+ export declare const RecurringInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
+ /**
55
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
56
+ * @summary Create the recurring invoice
57
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
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
+ createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
64
+ };
65
+ /**
66
+ * Request parameters for createRecurringInvoice operation in RecurringInvoicesApi.
67
+ * @export
68
+ * @interface RecurringInvoicesApiCreateRecurringInvoiceRequest
69
+ */
70
+ export interface RecurringInvoicesApiCreateRecurringInvoiceRequest {
71
+ /**
72
+ *
73
+ * @type {CreateInvoiceRequestDto}
74
+ * @memberof RecurringInvoicesApiCreateRecurringInvoice
75
+ */
76
+ readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
77
+ /**
78
+ * Bearer Token
79
+ * @type {string}
80
+ * @memberof RecurringInvoicesApiCreateRecurringInvoice
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 RecurringInvoicesApiCreateRecurringInvoice
87
+ */
88
+ readonly idempotencyKey?: string;
89
+ }
90
+ /**
91
+ * RecurringInvoicesApi - object-oriented interface
92
+ * @export
93
+ * @class RecurringInvoicesApi
94
+ * @extends {BaseAPI}
95
+ */
96
+ export declare class RecurringInvoicesApi extends BaseAPI {
97
+ /**
98
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
99
+ * @summary Create the recurring invoice
100
+ * @param {RecurringInvoicesApiCreateRecurringInvoiceRequest} requestParameters Request parameters.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ * @memberof RecurringInvoicesApi
104
+ */
105
+ createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any>>;
106
+ }