@emilgroup/billing-sdk-node 1.28.0 → 1.28.2-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 (100) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +17 -15
  4. package/api/estimated-invoices-api.ts +12 -6
  5. package/api/initial-invoices-api.ts +17 -15
  6. package/api/invoices-api.ts +133 -6
  7. package/api/recurring-invoices-api.ts +17 -15
  8. package/dist/api/correction-invoices-api.d.ts +11 -10
  9. package/dist/api/correction-invoices-api.js +12 -12
  10. package/dist/api/estimated-invoices-api.d.ts +12 -9
  11. package/dist/api/initial-invoices-api.d.ts +11 -10
  12. package/dist/api/initial-invoices-api.js +12 -12
  13. package/dist/api/invoices-api.d.ts +78 -9
  14. package/dist/api/invoices-api.js +99 -0
  15. package/dist/api/recurring-invoices-api.d.ts +11 -10
  16. package/dist/api/recurring-invoices-api.js +12 -12
  17. package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
  18. package/dist/models/create-correction-invoices-response-class.js +15 -0
  19. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
  20. package/dist/models/create-custom-estimated-invoice-response-class.js +15 -0
  21. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
  22. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  23. package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
  24. package/dist/models/create-estimated-invoice-response-class.d.ts +37 -0
  25. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  26. package/dist/models/create-invoice-for-policy-request-dto.d.ts +83 -0
  27. package/dist/models/create-invoice-for-policy-request-dto.js +26 -0
  28. package/dist/models/create-invoice-payment-request-dto.d.ts +7 -1
  29. package/dist/models/create-invoice-request-dto.d.ts +14 -7
  30. package/dist/models/create-invoice-response-class.d.ts +25 -0
  31. package/dist/models/create-invoice-response-class.js +15 -0
  32. package/dist/models/create-invoice-status-request-dto.d.ts +37 -0
  33. package/dist/models/create-invoice-status-request-dto.js +22 -0
  34. package/dist/models/create-item-request-dto.d.ts +101 -0
  35. package/dist/models/create-item-request-dto.js +36 -0
  36. package/dist/models/create-termination-invoice-request-dto.d.ts +54 -0
  37. package/dist/models/create-termination-invoice-request-dto.js +15 -0
  38. package/dist/models/get-invoice-response-class.d.ts +25 -0
  39. package/dist/models/get-invoice-response-class.js +15 -0
  40. package/dist/models/index.d.ts +19 -0
  41. package/dist/models/index.js +19 -0
  42. package/dist/models/invoice-class.d.ts +183 -0
  43. package/dist/models/invoice-class.js +32 -0
  44. package/dist/models/invoice-item-class.d.ts +153 -0
  45. package/dist/models/invoice-item-class.js +24 -0
  46. package/dist/models/invoice-payment-class.d.ts +108 -0
  47. package/dist/models/invoice-payment-class.js +15 -0
  48. package/dist/models/invoice-payments-class.d.ts +25 -0
  49. package/dist/models/invoice-payments-class.js +15 -0
  50. package/dist/models/invoice-status-class.d.ts +61 -0
  51. package/dist/models/invoice-status-class.js +22 -0
  52. package/dist/models/list-invoices-response-class.d.ts +31 -0
  53. package/dist/models/list-invoices-response-class.js +15 -0
  54. package/dist/models/list-policies-billing-dates-response-class.d.ts +31 -0
  55. package/dist/models/list-policies-billing-dates-response-class.js +15 -0
  56. package/dist/models/list-request-dto.d.ts +6 -0
  57. package/dist/models/omit-type-class.d.ts +176 -0
  58. package/dist/models/omit-type-class.js +32 -0
  59. package/dist/models/policy-billing-date-class.d.ts +54 -0
  60. package/dist/models/policy-billing-date-class.js +15 -0
  61. package/dist/models/policy-dto.d.ts +35 -3
  62. package/dist/models/policy-dto.js +8 -0
  63. package/dist/models/policy-object-dto.d.ts +20 -2
  64. package/dist/models/policy-premium-dto.d.ts +14 -2
  65. package/dist/models/policy-premium-item-dto.d.ts +14 -2
  66. package/dist/models/policy-version-dto.d.ts +15 -3
  67. package/dist/models/premium-formula-dto.d.ts +14 -2
  68. package/dist/models/timeslice-dto.d.ts +13 -1
  69. package/models/create-correction-invoices-response-class.ts +31 -0
  70. package/models/create-custom-estimated-invoice-response-class.ts +30 -0
  71. package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
  72. package/models/create-estimated-invoice-request-dto.ts +7 -1
  73. package/models/create-estimated-invoice-response-class.ts +43 -0
  74. package/models/create-invoice-for-policy-request-dto.ts +92 -0
  75. package/models/create-invoice-payment-request-dto.ts +7 -1
  76. package/models/create-invoice-request-dto.ts +14 -7
  77. package/models/create-invoice-response-class.ts +31 -0
  78. package/models/create-invoice-status-request-dto.ts +46 -0
  79. package/models/create-item-request-dto.ts +112 -0
  80. package/models/create-termination-invoice-request-dto.ts +60 -0
  81. package/models/get-invoice-response-class.ts +31 -0
  82. package/models/index.ts +19 -0
  83. package/models/invoice-class.ts +193 -0
  84. package/models/invoice-item-class.ts +162 -0
  85. package/models/invoice-payment-class.ts +114 -0
  86. package/models/invoice-payments-class.ts +31 -0
  87. package/models/invoice-status-class.ts +70 -0
  88. package/models/list-invoices-response-class.ts +37 -0
  89. package/models/list-policies-billing-dates-response-class.ts +37 -0
  90. package/models/list-request-dto.ts +6 -0
  91. package/models/omit-type-class.ts +186 -0
  92. package/models/policy-billing-date-class.ts +60 -0
  93. package/models/policy-dto.ts +38 -3
  94. package/models/policy-object-dto.ts +20 -2
  95. package/models/policy-premium-dto.ts +14 -2
  96. package/models/policy-premium-item-dto.ts +14 -2
  97. package/models/policy-version-dto.ts +15 -3
  98. package/models/premium-formula-dto.ts +14 -2
  99. package/models/timeslice-dto.ts +13 -1
  100. package/package.json +1 -1
@@ -12,7 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateInvoiceRequestDto } from '../models';
15
+ import { CreateCorrectionInvoicesResponseClass } from '../models';
16
+ import { CreateInvoiceForPolicyRequestDto } from '../models';
16
17
  /**
17
18
  * CorrectionInvoicesApi - axios parameter creator
18
19
  * @export
@@ -21,13 +22,13 @@ export declare const CorrectionInvoicesApiAxiosParamCreator: (configuration?: Co
21
22
  /**
22
23
  * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
23
24
  * @summary Create the correction invoice
24
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
25
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
25
26
  * @param {string} [authorization] Bearer Token
26
27
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
27
28
  * @param {*} [options] Override http request option.
28
29
  * @throws {RequiredError}
29
30
  */
30
- createCorrectionInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ createCorrectionInvoice: (createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
32
  };
32
33
  /**
33
34
  * CorrectionInvoicesApi - functional programming interface
@@ -37,13 +38,13 @@ export declare const CorrectionInvoicesApiFp: (configuration?: Configuration) =>
37
38
  /**
38
39
  * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
39
40
  * @summary Create the correction invoice
40
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
41
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
41
42
  * @param {string} [authorization] Bearer Token
42
43
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
43
44
  * @param {*} [options] Override http request option.
44
45
  * @throws {RequiredError}
45
46
  */
46
- createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
47
+ createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponseClass>>;
47
48
  };
48
49
  /**
49
50
  * CorrectionInvoicesApi - factory interface
@@ -53,13 +54,13 @@ export declare const CorrectionInvoicesApiFactory: (configuration?: Configuratio
53
54
  /**
54
55
  * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
55
56
  * @summary Create the correction invoice
56
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
57
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
57
58
  * @param {string} [authorization] Bearer Token
58
59
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
59
60
  * @param {*} [options] Override http request option.
60
61
  * @throws {RequiredError}
61
62
  */
62
- createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void>;
63
+ createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass>;
63
64
  };
64
65
  /**
65
66
  * Request parameters for createCorrectionInvoice operation in CorrectionInvoicesApi.
@@ -69,10 +70,10 @@ export declare const CorrectionInvoicesApiFactory: (configuration?: Configuratio
69
70
  export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
70
71
  /**
71
72
  *
72
- * @type {CreateInvoiceRequestDto}
73
+ * @type {CreateInvoiceForPolicyRequestDto}
73
74
  * @memberof CorrectionInvoicesApiCreateCorrectionInvoice
74
75
  */
75
- readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
76
+ readonly createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto;
76
77
  /**
77
78
  * Bearer Token
78
79
  * @type {string}
@@ -101,5 +102,5 @@ export declare class CorrectionInvoicesApi extends BaseAPI {
101
102
  * @throws {RequiredError}
102
103
  * @memberof CorrectionInvoicesApi
103
104
  */
104
- createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
105
+ createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCorrectionInvoicesResponseClass, any>>;
105
106
  }
@@ -99,21 +99,21 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
101
101
  * @summary Create the correction invoice
102
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
102
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
103
103
  * @param {string} [authorization] Bearer Token
104
104
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
105
105
  * @param {*} [options] Override http request option.
106
106
  * @throws {RequiredError}
107
107
  */
108
- createCorrectionInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
108
+ createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
115
- // verify required parameter 'createInvoiceRequestDto' is not null or undefined
116
- (0, common_1.assertParamExists)('createCorrectionInvoice', 'createInvoiceRequestDto', createInvoiceRequestDto);
115
+ // verify required parameter 'createInvoiceForPolicyRequestDto' is not null or undefined
116
+ (0, common_1.assertParamExists)('createCorrectionInvoice', 'createInvoiceForPolicyRequestDto', createInvoiceForPolicyRequestDto);
117
117
  localVarPath = "/billingservice/v1/correction-invoices";
118
118
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
119
  if (configuration) {
@@ -140,7 +140,7 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
140
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
141
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
142
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInvoiceRequestDto, localVarRequestOptions, configuration);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInvoiceForPolicyRequestDto, localVarRequestOptions, configuration);
144
144
  return [2 /*return*/, {
145
145
  url: (0, common_1.toPathString)(localVarUrlObj),
146
146
  options: localVarRequestOptions,
@@ -162,18 +162,18 @@ var CorrectionInvoicesApiFp = function (configuration) {
162
162
  /**
163
163
  * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
164
164
  * @summary Create the correction invoice
165
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
165
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
166
166
  * @param {string} [authorization] Bearer Token
167
167
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
168
168
  * @param {*} [options] Override http request option.
169
169
  * @throws {RequiredError}
170
170
  */
171
- createCorrectionInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
171
+ createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
172
172
  return __awaiter(this, void 0, void 0, function () {
173
173
  var localVarAxiosArgs;
174
174
  return __generator(this, function (_a) {
175
175
  switch (_a.label) {
176
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCorrectionInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options)];
176
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options)];
177
177
  case 1:
178
178
  localVarAxiosArgs = _a.sent();
179
179
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -194,14 +194,14 @@ var CorrectionInvoicesApiFactory = function (configuration, basePath, axios) {
194
194
  /**
195
195
  * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
196
196
  * @summary Create the correction invoice
197
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
197
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
198
198
  * @param {string} [authorization] Bearer Token
199
199
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
200
200
  * @param {*} [options] Override http request option.
201
201
  * @throws {RequiredError}
202
202
  */
203
- createCorrectionInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
204
- return localVarFp.createCorrectionInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
203
+ createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
204
+ return localVarFp.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
205
205
  },
206
206
  };
207
207
  };
@@ -227,7 +227,7 @@ var CorrectionInvoicesApi = /** @class */ (function (_super) {
227
227
  */
228
228
  CorrectionInvoicesApi.prototype.createCorrectionInvoice = function (requestParameters, options) {
229
229
  var _this = this;
230
- return (0, exports.CorrectionInvoicesApiFp)(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
230
+ return (0, exports.CorrectionInvoicesApiFp)(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
231
231
  };
232
232
  return CorrectionInvoicesApi;
233
233
  }(base_1.BaseAPI));
@@ -13,8 +13,11 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateCustomEstimatedInvoiceRequestDto } from '../models';
16
+ import { CreateCustomEstimatedInvoiceResponseClass } from '../models';
16
17
  import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
18
+ import { CreateEstimatedInvoiceForIntervalResponseClass } from '../models';
17
19
  import { CreateEstimatedInvoiceRequestDto } from '../models';
20
+ import { CreateEstimatedInvoiceResponseClass } from '../models';
18
21
  /**
19
22
  * EstimatedInvoicesApi - axios parameter creator
20
23
  * @export
@@ -61,7 +64,7 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
61
64
  * @param {*} [options] Override http request option.
62
65
  * @throws {RequiredError}
63
66
  */
64
- createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
67
+ createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>>;
65
68
  /**
66
69
  * This creates an estimated invoice. It will not be saved in the database.
67
70
  * @summary Create the estimated invoice
@@ -70,7 +73,7 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
70
73
  * @param {*} [options] Override http request option.
71
74
  * @throws {RequiredError}
72
75
  */
73
- createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
76
+ createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceResponseClass>>;
74
77
  /**
75
78
  * This creates an estimated invoice. It will not be saved in the database.
76
79
  * @summary Create the estimated invoice
@@ -79,7 +82,7 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
79
82
  * @param {*} [options] Override http request option.
80
83
  * @throws {RequiredError}
81
84
  */
82
- createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
85
+ createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>>;
83
86
  };
84
87
  /**
85
88
  * EstimatedInvoicesApi - factory interface
@@ -94,7 +97,7 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
94
97
  * @param {*} [options] Override http request option.
95
98
  * @throws {RequiredError}
96
99
  */
97
- createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
100
+ createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>;
98
101
  /**
99
102
  * This creates an estimated invoice. It will not be saved in the database.
100
103
  * @summary Create the estimated invoice
@@ -103,7 +106,7 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
103
106
  * @param {*} [options] Override http request option.
104
107
  * @throws {RequiredError}
105
108
  */
106
- createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
109
+ createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceResponseClass>;
107
110
  /**
108
111
  * This creates an estimated invoice. It will not be saved in the database.
109
112
  * @summary Create the estimated invoice
@@ -112,7 +115,7 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
112
115
  * @param {*} [options] Override http request option.
113
116
  * @throws {RequiredError}
114
117
  */
115
- createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
118
+ createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>;
116
119
  };
117
120
  /**
118
121
  * Request parameters for createCustomEstimatedInvoice operation in EstimatedInvoicesApi.
@@ -186,7 +189,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
186
189
  * @throws {RequiredError}
187
190
  * @memberof EstimatedInvoicesApi
188
191
  */
189
- createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
192
+ createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any>>;
190
193
  /**
191
194
  * This creates an estimated invoice. It will not be saved in the database.
192
195
  * @summary Create the estimated invoice
@@ -195,7 +198,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
195
198
  * @throws {RequiredError}
196
199
  * @memberof EstimatedInvoicesApi
197
200
  */
198
- createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
201
+ createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any>>;
199
202
  /**
200
203
  * This creates an estimated invoice. It will not be saved in the database.
201
204
  * @summary Create the estimated invoice
@@ -204,5 +207,5 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
204
207
  * @throws {RequiredError}
205
208
  * @memberof EstimatedInvoicesApi
206
209
  */
207
- createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
210
+ createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any>>;
208
211
  }
@@ -12,7 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateInvoiceRequestDto } from '../models';
15
+ import { CreateInvoiceForPolicyRequestDto } from '../models';
16
+ import { CreateInvoiceResponseClass } from '../models';
16
17
  /**
17
18
  * InitialInvoicesApi - axios parameter creator
18
19
  * @export
@@ -21,13 +22,13 @@ export declare const InitialInvoicesApiAxiosParamCreator: (configuration?: Confi
21
22
  /**
22
23
  * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
23
24
  * @summary Create the initial invoice
24
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
25
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
25
26
  * @param {string} [authorization] Bearer Token
26
27
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
27
28
  * @param {*} [options] Override http request option.
28
29
  * @throws {RequiredError}
29
30
  */
30
- createInitialInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ createInitialInvoice: (createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
32
  };
32
33
  /**
33
34
  * InitialInvoicesApi - functional programming interface
@@ -37,13 +38,13 @@ export declare const InitialInvoicesApiFp: (configuration?: Configuration) => {
37
38
  /**
38
39
  * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
39
40
  * @summary Create the initial invoice
40
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
41
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
41
42
  * @param {string} [authorization] Bearer Token
42
43
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
43
44
  * @param {*} [options] Override http request option.
44
45
  * @throws {RequiredError}
45
46
  */
46
- createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
47
+ createInitialInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
47
48
  };
48
49
  /**
49
50
  * InitialInvoicesApi - factory interface
@@ -53,13 +54,13 @@ export declare const InitialInvoicesApiFactory: (configuration?: Configuration,
53
54
  /**
54
55
  * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
55
56
  * @summary Create the initial invoice
56
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
57
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
57
58
  * @param {string} [authorization] Bearer Token
58
59
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
59
60
  * @param {*} [options] Override http request option.
60
61
  * @throws {RequiredError}
61
62
  */
62
- createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void>;
63
+ createInitialInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
63
64
  };
64
65
  /**
65
66
  * Request parameters for createInitialInvoice operation in InitialInvoicesApi.
@@ -69,10 +70,10 @@ export declare const InitialInvoicesApiFactory: (configuration?: Configuration,
69
70
  export interface InitialInvoicesApiCreateInitialInvoiceRequest {
70
71
  /**
71
72
  *
72
- * @type {CreateInvoiceRequestDto}
73
+ * @type {CreateInvoiceForPolicyRequestDto}
73
74
  * @memberof InitialInvoicesApiCreateInitialInvoice
74
75
  */
75
- readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
76
+ readonly createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto;
76
77
  /**
77
78
  * Bearer Token
78
79
  * @type {string}
@@ -101,5 +102,5 @@ export declare class InitialInvoicesApi extends BaseAPI {
101
102
  * @throws {RequiredError}
102
103
  * @memberof InitialInvoicesApi
103
104
  */
104
- createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
105
+ createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any>>;
105
106
  }
@@ -99,21 +99,21 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
101
101
  * @summary Create the initial invoice
102
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
102
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
103
103
  * @param {string} [authorization] Bearer Token
104
104
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
105
105
  * @param {*} [options] Override http request option.
106
106
  * @throws {RequiredError}
107
107
  */
108
- createInitialInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
108
+ createInitialInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
115
- // verify required parameter 'createInvoiceRequestDto' is not null or undefined
116
- (0, common_1.assertParamExists)('createInitialInvoice', 'createInvoiceRequestDto', createInvoiceRequestDto);
115
+ // verify required parameter 'createInvoiceForPolicyRequestDto' is not null or undefined
116
+ (0, common_1.assertParamExists)('createInitialInvoice', 'createInvoiceForPolicyRequestDto', createInvoiceForPolicyRequestDto);
117
117
  localVarPath = "/billingservice/v1/initial-invoices";
118
118
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
119
  if (configuration) {
@@ -140,7 +140,7 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
140
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
141
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
142
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInvoiceRequestDto, localVarRequestOptions, configuration);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInvoiceForPolicyRequestDto, localVarRequestOptions, configuration);
144
144
  return [2 /*return*/, {
145
145
  url: (0, common_1.toPathString)(localVarUrlObj),
146
146
  options: localVarRequestOptions,
@@ -162,18 +162,18 @@ var InitialInvoicesApiFp = function (configuration) {
162
162
  /**
163
163
  * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
164
164
  * @summary Create the initial invoice
165
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
165
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
166
166
  * @param {string} [authorization] Bearer Token
167
167
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
168
168
  * @param {*} [options] Override http request option.
169
169
  * @throws {RequiredError}
170
170
  */
171
- createInitialInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
171
+ createInitialInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
172
172
  return __awaiter(this, void 0, void 0, function () {
173
173
  var localVarAxiosArgs;
174
174
  return __generator(this, function (_a) {
175
175
  switch (_a.label) {
176
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createInitialInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options)];
176
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createInitialInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options)];
177
177
  case 1:
178
178
  localVarAxiosArgs = _a.sent();
179
179
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -194,14 +194,14 @@ var InitialInvoicesApiFactory = function (configuration, basePath, axios) {
194
194
  /**
195
195
  * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
196
196
  * @summary Create the initial invoice
197
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
197
+ * @param {CreateInvoiceForPolicyRequestDto} createInvoiceForPolicyRequestDto
198
198
  * @param {string} [authorization] Bearer Token
199
199
  * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
200
200
  * @param {*} [options] Override http request option.
201
201
  * @throws {RequiredError}
202
202
  */
203
- createInitialInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
204
- return localVarFp.createInitialInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
203
+ createInitialInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
204
+ return localVarFp.createInitialInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
205
205
  },
206
206
  };
207
207
  };
@@ -227,7 +227,7 @@ var InitialInvoicesApi = /** @class */ (function (_super) {
227
227
  */
228
228
  InitialInvoicesApi.prototype.createInitialInvoice = function (requestParameters, options) {
229
229
  var _this = this;
230
- return (0, exports.InitialInvoicesApiFp)(this.configuration).createInitialInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
230
+ return (0, exports.InitialInvoicesApiFp)(this.configuration).createInitialInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
231
231
  };
232
232
  return InitialInvoicesApi;
233
233
  }(base_1.BaseAPI));
@@ -12,11 +12,26 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateInvoiceRequestDto } from '../models';
16
+ import { CreateInvoiceResponseClass } from '../models';
17
+ import { GetInvoiceResponseClass } from '../models';
18
+ import { ListInvoicesResponseClass } from '../models';
19
+ import { ListPoliciesBillingDatesResponseClass } from '../models';
15
20
  /**
16
21
  * InvoicesApi - axios parameter creator
17
22
  * @export
18
23
  */
19
24
  export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
25
+ /**
26
+ * This will create invoice for a policy and save it in the DB.
27
+ * @summary Create the invoice
28
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
29
+ * @param {string} [authorization] Bearer Token
30
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ createInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
20
35
  /**
21
36
  * Gets an invoice.
22
37
  * @summary Retrieve the invoice
@@ -63,6 +78,16 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
63
78
  * @export
64
79
  */
65
80
  export declare const InvoicesApiFp: (configuration?: Configuration) => {
81
+ /**
82
+ * This will create invoice for a policy and save it in the DB.
83
+ * @summary Create the invoice
84
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
85
+ * @param {string} [authorization] Bearer Token
86
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ createInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
66
91
  /**
67
92
  * Gets an invoice.
68
93
  * @summary Retrieve the invoice
@@ -72,7 +97,7 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
72
97
  * @param {*} [options] Override http request option.
73
98
  * @throws {RequiredError}
74
99
  */
75
- getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
100
+ getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponseClass>>;
76
101
  /**
77
102
  * 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.
78
103
  * @summary List invoices
@@ -87,7 +112,7 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
87
112
  * @param {*} [options] Override http request option.
88
113
  * @throws {RequiredError}
89
114
  */
90
- listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
115
+ listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
91
116
  /**
92
117
  * 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.
93
118
  * @summary List policies billing dates
@@ -102,13 +127,23 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
102
127
  * @param {*} [options] Override http request option.
103
128
  * @throws {RequiredError}
104
129
  */
105
- listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
130
+ listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>>;
106
131
  };
107
132
  /**
108
133
  * InvoicesApi - factory interface
109
134
  * @export
110
135
  */
111
136
  export declare const InvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
137
+ /**
138
+ * This will create invoice for a policy and save it in the DB.
139
+ * @summary Create the invoice
140
+ * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
141
+ * @param {string} [authorization] Bearer Token
142
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ createInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
112
147
  /**
113
148
  * Gets an invoice.
114
149
  * @summary Retrieve the invoice
@@ -118,7 +153,7 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
118
153
  * @param {*} [options] Override http request option.
119
154
  * @throws {RequiredError}
120
155
  */
121
- getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<void>;
156
+ getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetInvoiceResponseClass>;
122
157
  /**
123
158
  * 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.
124
159
  * @summary List invoices
@@ -133,7 +168,7 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
133
168
  * @param {*} [options] Override http request option.
134
169
  * @throws {RequiredError}
135
170
  */
136
- listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
171
+ listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
137
172
  /**
138
173
  * 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.
139
174
  * @summary List policies billing dates
@@ -148,8 +183,33 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
148
183
  * @param {*} [options] Override http request option.
149
184
  * @throws {RequiredError}
150
185
  */
151
- listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
186
+ listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass>;
152
187
  };
188
+ /**
189
+ * Request parameters for createInvoice operation in InvoicesApi.
190
+ * @export
191
+ * @interface InvoicesApiCreateInvoiceRequest
192
+ */
193
+ export interface InvoicesApiCreateInvoiceRequest {
194
+ /**
195
+ *
196
+ * @type {CreateInvoiceRequestDto}
197
+ * @memberof InvoicesApiCreateInvoice
198
+ */
199
+ readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
200
+ /**
201
+ * Bearer Token
202
+ * @type {string}
203
+ * @memberof InvoicesApiCreateInvoice
204
+ */
205
+ readonly authorization?: string;
206
+ /**
207
+ * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
208
+ * @type {string}
209
+ * @memberof InvoicesApiCreateInvoice
210
+ */
211
+ readonly idempotencyKey?: string;
212
+ }
153
213
  /**
154
214
  * Request parameters for getInvoice operation in InvoicesApi.
155
215
  * @export
@@ -292,6 +352,15 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
292
352
  * @extends {BaseAPI}
293
353
  */
294
354
  export declare class InvoicesApi extends BaseAPI {
355
+ /**
356
+ * This will create invoice for a policy and save it in the DB.
357
+ * @summary Create the invoice
358
+ * @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ * @memberof InvoicesApi
362
+ */
363
+ createInvoice(requestParameters: InvoicesApiCreateInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any>>;
295
364
  /**
296
365
  * Gets an invoice.
297
366
  * @summary Retrieve the invoice
@@ -300,7 +369,7 @@ export declare class InvoicesApi extends BaseAPI {
300
369
  * @throws {RequiredError}
301
370
  * @memberof InvoicesApi
302
371
  */
303
- getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
372
+ getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceResponseClass, any>>;
304
373
  /**
305
374
  * 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.
306
375
  * @summary List invoices
@@ -309,7 +378,7 @@ export declare class InvoicesApi extends BaseAPI {
309
378
  * @throws {RequiredError}
310
379
  * @memberof InvoicesApi
311
380
  */
312
- listInvoices(requestParameters?: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
381
+ listInvoices(requestParameters?: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any>>;
313
382
  /**
314
383
  * 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.
315
384
  * @summary List policies billing dates
@@ -318,5 +387,5 @@ export declare class InvoicesApi extends BaseAPI {
318
387
  * @throws {RequiredError}
319
388
  * @memberof InvoicesApi
320
389
  */
321
- listPoliciesBillingDates(requestParameters?: InvoicesApiListPoliciesBillingDatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
390
+ listPoliciesBillingDates(requestParameters?: InvoicesApiListPoliciesBillingDatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesBillingDatesResponseClass, any>>;
322
391
  }