@emilgroup/billing-sdk 1.0.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 (97) hide show
  1. package/.openapi-generator/FILES +37 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/correction-invoices-api.ts +161 -0
  6. package/api/estimated-invoices-api.ts +264 -0
  7. package/api/initial-invoices-api.ts +161 -0
  8. package/api/invoices-api.ts +398 -0
  9. package/api/recurring-invoices-api.ts +161 -0
  10. package/api.ts +40 -0
  11. package/base.ts +247 -0
  12. package/common.ts +198 -0
  13. package/configuration.ts +101 -0
  14. package/dist/api/correction-invoices-api.d.ts +93 -0
  15. package/dist/api/correction-invoices-api.js +220 -0
  16. package/dist/api/estimated-invoices-api.d.ts +146 -0
  17. package/dist/api/estimated-invoices-api.js +309 -0
  18. package/dist/api/initial-invoices-api.d.ts +93 -0
  19. package/dist/api/initial-invoices-api.js +220 -0
  20. package/dist/api/invoices-api.d.ts +234 -0
  21. package/dist/api/invoices-api.js +369 -0
  22. package/dist/api/recurring-invoices-api.d.ts +93 -0
  23. package/dist/api/recurring-invoices-api.js +220 -0
  24. package/dist/api.d.ts +20 -0
  25. package/dist/api.js +40 -0
  26. package/dist/base.d.ts +72 -0
  27. package/dist/base.js +293 -0
  28. package/dist/common.d.ts +91 -0
  29. package/dist/common.js +276 -0
  30. package/dist/configuration.d.ts +83 -0
  31. package/dist/configuration.js +44 -0
  32. package/dist/index.d.ts +15 -0
  33. package/dist/index.js +35 -0
  34. package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
  35. package/dist/models/create-correction-invoices-response-class.js +15 -0
  36. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +35 -0
  37. package/dist/models/create-custom-estimated-invoice-request-dto.js +20 -0
  38. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
  39. package/dist/models/create-custom-estimated-invoice-response-class.js +15 -0
  40. package/dist/models/create-estimated-invoice-request-dto.d.ts +31 -0
  41. package/dist/models/create-estimated-invoice-request-dto.js +15 -0
  42. package/dist/models/create-estimated-invoice-response-class.d.ts +31 -0
  43. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  44. package/dist/models/create-invoice-request-dto.d.ts +75 -0
  45. package/dist/models/create-invoice-request-dto.js +24 -0
  46. package/dist/models/create-invoice-response-class.d.ts +25 -0
  47. package/dist/models/create-invoice-response-class.js +15 -0
  48. package/dist/models/index.d.ts +19 -0
  49. package/dist/models/index.js +35 -0
  50. package/dist/models/invoice-class.d.ts +121 -0
  51. package/dist/models/invoice-class.js +15 -0
  52. package/dist/models/invoice-item-class.d.ts +108 -0
  53. package/dist/models/invoice-item-class.js +15 -0
  54. package/dist/models/list-invoices-response-class.d.ts +31 -0
  55. package/dist/models/list-invoices-response-class.js +15 -0
  56. package/dist/models/list-policies-billing-dates-response-class.d.ts +30 -0
  57. package/dist/models/list-policies-billing-dates-response-class.js +15 -0
  58. package/dist/models/list-request-dto.d.ts +54 -0
  59. package/dist/models/list-request-dto.js +15 -0
  60. package/dist/models/policy-dto.d.ts +85 -0
  61. package/dist/models/policy-dto.js +15 -0
  62. package/dist/models/policy-object-dto.d.ts +42 -0
  63. package/dist/models/policy-object-dto.js +15 -0
  64. package/dist/models/policy-premium-dto.d.ts +43 -0
  65. package/dist/models/policy-premium-dto.js +15 -0
  66. package/dist/models/policy-premium-item-dto.d.ts +49 -0
  67. package/dist/models/policy-premium-item-dto.js +15 -0
  68. package/dist/models/policy-version-dto.d.ts +55 -0
  69. package/dist/models/policy-version-dto.js +15 -0
  70. package/dist/models/premium-formula-dto.d.ts +72 -0
  71. package/dist/models/premium-formula-dto.js +15 -0
  72. package/dist/models/timeslice-dto.d.ts +62 -0
  73. package/dist/models/timeslice-dto.js +15 -0
  74. package/git_push.sh +57 -0
  75. package/index.ts +19 -0
  76. package/models/create-correction-invoices-response-class.ts +31 -0
  77. package/models/create-custom-estimated-invoice-request-dto.ts +44 -0
  78. package/models/create-custom-estimated-invoice-response-class.ts +30 -0
  79. package/models/create-estimated-invoice-request-dto.ts +37 -0
  80. package/models/create-estimated-invoice-response-class.ts +37 -0
  81. package/models/create-invoice-request-dto.ts +84 -0
  82. package/models/create-invoice-response-class.ts +31 -0
  83. package/models/index.ts +19 -0
  84. package/models/invoice-class.ts +127 -0
  85. package/models/invoice-item-class.ts +114 -0
  86. package/models/list-invoices-response-class.ts +37 -0
  87. package/models/list-policies-billing-dates-response-class.ts +36 -0
  88. package/models/list-request-dto.ts +60 -0
  89. package/models/policy-dto.ts +91 -0
  90. package/models/policy-object-dto.ts +48 -0
  91. package/models/policy-premium-dto.ts +49 -0
  92. package/models/policy-premium-item-dto.ts +55 -0
  93. package/models/policy-version-dto.ts +61 -0
  94. package/models/premium-formula-dto.ts +78 -0
  95. package/models/timeslice-dto.ts +68 -0
  96. package/package.json +27 -0
  97. package/tsconfig.json +22 -0
@@ -0,0 +1,161 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateInvoiceRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateInvoiceResponseClass } from '../models';
27
+ /**
28
+ * InitialInvoicesApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const InitialInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
36
+ * @param {string} [authorization] Bearer Token
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ createInitialInvoice: async (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41
+ // verify required parameter 'createInvoiceRequestDto' is not null or undefined
42
+ assertParamExists('createInitialInvoice', 'createInvoiceRequestDto', createInvoiceRequestDto)
43
+ const localVarPath = `/billingservice/v1/initial-invoices`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ let baseAccessToken;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ baseAccessToken = configuration.accessToken;
51
+ }
52
+
53
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+ // authentication bearer required
58
+ // http bearer authentication required
59
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
60
+
61
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
62
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
63
+ }
64
+
65
+
66
+
67
+ localVarHeaderParameter['Content-Type'] = 'application/json';
68
+
69
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
70
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72
+ localVarRequestOptions.data = serializeDataIfNeeded(createInvoiceRequestDto, localVarRequestOptions, configuration)
73
+
74
+ return {
75
+ url: toPathString(localVarUrlObj),
76
+ options: localVarRequestOptions,
77
+ };
78
+ },
79
+ }
80
+ };
81
+
82
+ /**
83
+ * InitialInvoicesApi - functional programming interface
84
+ * @export
85
+ */
86
+ export const InitialInvoicesApiFp = function(configuration?: Configuration) {
87
+ const localVarAxiosParamCreator = InitialInvoicesApiAxiosParamCreator(configuration)
88
+ return {
89
+ /**
90
+ *
91
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
92
+ * @param {string} [authorization] Bearer Token
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ async createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
97
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createInitialInvoice(createInvoiceRequestDto, authorization, options);
98
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
99
+ },
100
+ }
101
+ };
102
+
103
+ /**
104
+ * InitialInvoicesApi - factory interface
105
+ * @export
106
+ */
107
+ export const InitialInvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
108
+ const localVarFp = InitialInvoicesApiFp(configuration)
109
+ return {
110
+ /**
111
+ *
112
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
113
+ * @param {string} [authorization] Bearer Token
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
118
+ return localVarFp.createInitialInvoice(createInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
119
+ },
120
+ };
121
+ };
122
+
123
+ /**
124
+ * Request parameters for createInitialInvoice operation in InitialInvoicesApi.
125
+ * @export
126
+ * @interface InitialInvoicesApiCreateInitialInvoiceRequest
127
+ */
128
+ export interface InitialInvoicesApiCreateInitialInvoiceRequest {
129
+ /**
130
+ *
131
+ * @type {CreateInvoiceRequestDto}
132
+ * @memberof InitialInvoicesApiCreateInitialInvoice
133
+ */
134
+ readonly createInvoiceRequestDto: CreateInvoiceRequestDto
135
+
136
+ /**
137
+ * Bearer Token
138
+ * @type {string}
139
+ * @memberof InitialInvoicesApiCreateInitialInvoice
140
+ */
141
+ readonly authorization?: string
142
+ }
143
+
144
+ /**
145
+ * InitialInvoicesApi - object-oriented interface
146
+ * @export
147
+ * @class InitialInvoicesApi
148
+ * @extends {BaseAPI}
149
+ */
150
+ export class InitialInvoicesApi extends BaseAPI {
151
+ /**
152
+ *
153
+ * @param {InitialInvoicesApiCreateInitialInvoiceRequest} requestParameters Request parameters.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ * @memberof InitialInvoicesApi
157
+ */
158
+ public createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig) {
159
+ return InitialInvoicesApiFp(this.configuration).createInitialInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
160
+ }
161
+ }
@@ -0,0 +1,398 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { ListInvoicesResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListPoliciesBillingDatesResponseClass } from '../models';
27
+ /**
28
+ * InvoicesApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @param {string} [authorization] Bearer Token
36
+ * @param {number} [pageSize] Page size
37
+ * @param {string} [pageToken] Page token
38
+ * @param {string} [filter] List filter
39
+ * @param {string} [search] Search query
40
+ * @param {string} [order] Ordering criteria
41
+ * @param {string} [expand] Extra fields to fetch
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ listInvoices: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ const localVarPath = `/billingservice/v1/invoices`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ let baseAccessToken;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ baseAccessToken = configuration.accessToken;
54
+ }
55
+
56
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57
+ const localVarHeaderParameter = {} as any;
58
+ const localVarQueryParameter = {} as any;
59
+
60
+ // authentication bearer required
61
+ // http bearer authentication required
62
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
63
+
64
+ if (pageSize !== undefined) {
65
+ localVarQueryParameter['pageSize'] = pageSize;
66
+ }
67
+
68
+ if (pageToken !== undefined) {
69
+ localVarQueryParameter['pageToken'] = pageToken;
70
+ }
71
+
72
+ if (filter !== undefined) {
73
+ localVarQueryParameter['filter'] = filter;
74
+ }
75
+
76
+ if (search !== undefined) {
77
+ localVarQueryParameter['search'] = search;
78
+ }
79
+
80
+ if (order !== undefined) {
81
+ localVarQueryParameter['order'] = order;
82
+ }
83
+
84
+ if (expand !== undefined) {
85
+ localVarQueryParameter['expand'] = expand;
86
+ }
87
+
88
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
89
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
90
+ }
91
+
92
+
93
+
94
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
95
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
97
+
98
+ return {
99
+ url: toPathString(localVarUrlObj),
100
+ options: localVarRequestOptions,
101
+ };
102
+ },
103
+ /**
104
+ *
105
+ * @param {string} [authorization] Bearer Token
106
+ * @param {number} [pageSize] Page size
107
+ * @param {string} [pageToken] Page token
108
+ * @param {string} [filter] List filter
109
+ * @param {string} [search] Search query
110
+ * @param {string} [order] Ordering criteria
111
+ * @param {string} [expand] Extra fields to fetch
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ listPoliciesBillingDates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
116
+ const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
119
+ let baseOptions;
120
+ let baseAccessToken;
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ baseAccessToken = configuration.accessToken;
124
+ }
125
+
126
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
127
+ const localVarHeaderParameter = {} as any;
128
+ const localVarQueryParameter = {} as any;
129
+
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
133
+
134
+ if (pageSize !== undefined) {
135
+ localVarQueryParameter['pageSize'] = pageSize;
136
+ }
137
+
138
+ if (pageToken !== undefined) {
139
+ localVarQueryParameter['pageToken'] = pageToken;
140
+ }
141
+
142
+ if (filter !== undefined) {
143
+ localVarQueryParameter['filter'] = filter;
144
+ }
145
+
146
+ if (search !== undefined) {
147
+ localVarQueryParameter['search'] = search;
148
+ }
149
+
150
+ if (order !== undefined) {
151
+ localVarQueryParameter['order'] = order;
152
+ }
153
+
154
+ if (expand !== undefined) {
155
+ localVarQueryParameter['expand'] = expand;
156
+ }
157
+
158
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
159
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
160
+ }
161
+
162
+
163
+
164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
167
+
168
+ return {
169
+ url: toPathString(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ },
173
+ }
174
+ };
175
+
176
+ /**
177
+ * InvoicesApi - functional programming interface
178
+ * @export
179
+ */
180
+ export const InvoicesApiFp = function(configuration?: Configuration) {
181
+ const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
182
+ return {
183
+ /**
184
+ *
185
+ * @param {string} [authorization] Bearer Token
186
+ * @param {number} [pageSize] Page size
187
+ * @param {string} [pageToken] Page token
188
+ * @param {string} [filter] List filter
189
+ * @param {string} [search] Search query
190
+ * @param {string} [order] Ordering criteria
191
+ * @param {string} [expand] Extra fields to fetch
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ async listInvoices(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
196
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options);
197
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
198
+ },
199
+ /**
200
+ *
201
+ * @param {string} [authorization] Bearer Token
202
+ * @param {number} [pageSize] Page size
203
+ * @param {string} [pageToken] Page token
204
+ * @param {string} [filter] List filter
205
+ * @param {string} [search] Search query
206
+ * @param {string} [order] Ordering criteria
207
+ * @param {string} [expand] Extra fields to fetch
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ async listPoliciesBillingDates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>> {
212
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options);
213
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
214
+ },
215
+ }
216
+ };
217
+
218
+ /**
219
+ * InvoicesApi - factory interface
220
+ * @export
221
+ */
222
+ export const InvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
223
+ const localVarFp = InvoicesApiFp(configuration)
224
+ return {
225
+ /**
226
+ *
227
+ * @param {string} [authorization] Bearer Token
228
+ * @param {number} [pageSize] Page size
229
+ * @param {string} [pageToken] Page token
230
+ * @param {string} [filter] List filter
231
+ * @param {string} [search] Search query
232
+ * @param {string} [order] Ordering criteria
233
+ * @param {string} [expand] Extra fields to fetch
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ listInvoices(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
238
+ return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
239
+ },
240
+ /**
241
+ *
242
+ * @param {string} [authorization] Bearer Token
243
+ * @param {number} [pageSize] Page size
244
+ * @param {string} [pageToken] Page token
245
+ * @param {string} [filter] List filter
246
+ * @param {string} [search] Search query
247
+ * @param {string} [order] Ordering criteria
248
+ * @param {string} [expand] Extra fields to fetch
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ listPoliciesBillingDates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
253
+ return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
254
+ },
255
+ };
256
+ };
257
+
258
+ /**
259
+ * Request parameters for listInvoices operation in InvoicesApi.
260
+ * @export
261
+ * @interface InvoicesApiListInvoicesRequest
262
+ */
263
+ export interface InvoicesApiListInvoicesRequest {
264
+ /**
265
+ * Bearer Token
266
+ * @type {string}
267
+ * @memberof InvoicesApiListInvoices
268
+ */
269
+ readonly authorization?: string
270
+
271
+ /**
272
+ * Page size
273
+ * @type {number}
274
+ * @memberof InvoicesApiListInvoices
275
+ */
276
+ readonly pageSize?: number
277
+
278
+ /**
279
+ * Page token
280
+ * @type {string}
281
+ * @memberof InvoicesApiListInvoices
282
+ */
283
+ readonly pageToken?: string
284
+
285
+ /**
286
+ * List filter
287
+ * @type {string}
288
+ * @memberof InvoicesApiListInvoices
289
+ */
290
+ readonly filter?: string
291
+
292
+ /**
293
+ * Search query
294
+ * @type {string}
295
+ * @memberof InvoicesApiListInvoices
296
+ */
297
+ readonly search?: string
298
+
299
+ /**
300
+ * Ordering criteria
301
+ * @type {string}
302
+ * @memberof InvoicesApiListInvoices
303
+ */
304
+ readonly order?: string
305
+
306
+ /**
307
+ * Extra fields to fetch
308
+ * @type {string}
309
+ * @memberof InvoicesApiListInvoices
310
+ */
311
+ readonly expand?: string
312
+ }
313
+
314
+ /**
315
+ * Request parameters for listPoliciesBillingDates operation in InvoicesApi.
316
+ * @export
317
+ * @interface InvoicesApiListPoliciesBillingDatesRequest
318
+ */
319
+ export interface InvoicesApiListPoliciesBillingDatesRequest {
320
+ /**
321
+ * Bearer Token
322
+ * @type {string}
323
+ * @memberof InvoicesApiListPoliciesBillingDates
324
+ */
325
+ readonly authorization?: string
326
+
327
+ /**
328
+ * Page size
329
+ * @type {number}
330
+ * @memberof InvoicesApiListPoliciesBillingDates
331
+ */
332
+ readonly pageSize?: number
333
+
334
+ /**
335
+ * Page token
336
+ * @type {string}
337
+ * @memberof InvoicesApiListPoliciesBillingDates
338
+ */
339
+ readonly pageToken?: string
340
+
341
+ /**
342
+ * List filter
343
+ * @type {string}
344
+ * @memberof InvoicesApiListPoliciesBillingDates
345
+ */
346
+ readonly filter?: string
347
+
348
+ /**
349
+ * Search query
350
+ * @type {string}
351
+ * @memberof InvoicesApiListPoliciesBillingDates
352
+ */
353
+ readonly search?: string
354
+
355
+ /**
356
+ * Ordering criteria
357
+ * @type {string}
358
+ * @memberof InvoicesApiListPoliciesBillingDates
359
+ */
360
+ readonly order?: string
361
+
362
+ /**
363
+ * Extra fields to fetch
364
+ * @type {string}
365
+ * @memberof InvoicesApiListPoliciesBillingDates
366
+ */
367
+ readonly expand?: string
368
+ }
369
+
370
+ /**
371
+ * InvoicesApi - object-oriented interface
372
+ * @export
373
+ * @class InvoicesApi
374
+ * @extends {BaseAPI}
375
+ */
376
+ export class InvoicesApi extends BaseAPI {
377
+ /**
378
+ *
379
+ * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof InvoicesApi
383
+ */
384
+ public listInvoices(requestParameters: InvoicesApiListInvoicesRequest = {}, options?: AxiosRequestConfig) {
385
+ return InvoicesApiFp(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
386
+ }
387
+
388
+ /**
389
+ *
390
+ * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ * @memberof InvoicesApi
394
+ */
395
+ public listPoliciesBillingDates(requestParameters: InvoicesApiListPoliciesBillingDatesRequest = {}, options?: AxiosRequestConfig) {
396
+ return InvoicesApiFp(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
397
+ }
398
+ }