@emilgroup/billing-sdk-node 1.55.1-beta.21 → 1.55.1-beta.23
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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +103 -0
- package/dist/api/correction-invoices-api.d.ts +53 -0
- package/dist/api/correction-invoices-api.js +89 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/revert-invoice-response-class.d.ts +25 -0
- package/dist/models/revert-invoice-response-class.js +15 -0
- package/models/index.ts +1 -0
- package/models/revert-invoice-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -59,6 +59,7 @@ models/premium-formula-dto.ts
|
|
|
59
59
|
models/premium-override-dto.ts
|
|
60
60
|
models/premium-override-request-dto.ts
|
|
61
61
|
models/revert-invoice-request-dto.ts
|
|
62
|
+
models/revert-invoice-response-class.ts
|
|
62
63
|
models/timeslice-dto.ts
|
|
63
64
|
models/update-policy-billing-request-dto.ts
|
|
64
65
|
models/update-policy-billing-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/billing-sdk-node@1.55.1-beta.
|
|
20
|
+
npm install @emilgroup/billing-sdk-node@1.55.1-beta.23 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk-node@1.55.1-beta.
|
|
24
|
+
yarn add @emilgroup/billing-sdk-node@1.55.1-beta.23
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
24
24
|
import { CreateCorrectionInvoicesResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateInvoiceForPolicyRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { RevertInvoiceRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { RevertInvoiceResponseClass } from '../models';
|
|
27
31
|
// URLSearchParams not necessarily used
|
|
28
32
|
// @ts-ignore
|
|
29
33
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -81,6 +85,52 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
81
85
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
86
|
localVarRequestOptions.data = serializeDataIfNeeded(createInvoiceForPolicyRequestDto, localVarRequestOptions, configuration)
|
|
83
87
|
|
|
88
|
+
return {
|
|
89
|
+
url: toPathString(localVarUrlObj),
|
|
90
|
+
options: localVarRequestOptions,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
95
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
revertInvoice: async (revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'revertInvoiceRequestDto' is not null or undefined
|
|
102
|
+
assertParamExists('revertInvoice', 'revertInvoiceRequestDto', revertInvoiceRequestDto)
|
|
103
|
+
const localVarPath = `/billingservice/v1/correction-invoices/revert`;
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication bearer required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
+
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
+
|
|
129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(revertInvoiceRequestDto, localVarRequestOptions, configuration)
|
|
133
|
+
|
|
84
134
|
return {
|
|
85
135
|
url: toPathString(localVarUrlObj),
|
|
86
136
|
options: localVarRequestOptions,
|
|
@@ -109,6 +159,17 @@ export const CorrectionInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
109
159
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options);
|
|
110
160
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
111
161
|
},
|
|
162
|
+
/**
|
|
163
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
164
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
165
|
+
* @param {string} [authorization] Bearer Token
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
async revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertInvoiceResponseClass>> {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revertInvoice(revertInvoiceRequestDto, authorization, options);
|
|
171
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
172
|
+
},
|
|
112
173
|
}
|
|
113
174
|
};
|
|
114
175
|
|
|
@@ -131,6 +192,16 @@ export const CorrectionInvoicesApiFactory = function (configuration?: Configurat
|
|
|
131
192
|
createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass> {
|
|
132
193
|
return localVarFp.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
133
194
|
},
|
|
195
|
+
/**
|
|
196
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
197
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
198
|
+
* @param {string} [authorization] Bearer Token
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<RevertInvoiceResponseClass> {
|
|
203
|
+
return localVarFp.revertInvoice(revertInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
204
|
+
},
|
|
134
205
|
};
|
|
135
206
|
};
|
|
136
207
|
|
|
@@ -162,6 +233,27 @@ export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
|
|
|
162
233
|
readonly idempotencyKey?: string
|
|
163
234
|
}
|
|
164
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Request parameters for revertInvoice operation in CorrectionInvoicesApi.
|
|
238
|
+
* @export
|
|
239
|
+
* @interface CorrectionInvoicesApiRevertInvoiceRequest
|
|
240
|
+
*/
|
|
241
|
+
export interface CorrectionInvoicesApiRevertInvoiceRequest {
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {RevertInvoiceRequestDto}
|
|
245
|
+
* @memberof CorrectionInvoicesApiRevertInvoice
|
|
246
|
+
*/
|
|
247
|
+
readonly revertInvoiceRequestDto: RevertInvoiceRequestDto
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Bearer Token
|
|
251
|
+
* @type {string}
|
|
252
|
+
* @memberof CorrectionInvoicesApiRevertInvoice
|
|
253
|
+
*/
|
|
254
|
+
readonly authorization?: string
|
|
255
|
+
}
|
|
256
|
+
|
|
165
257
|
/**
|
|
166
258
|
* CorrectionInvoicesApi - object-oriented interface
|
|
167
259
|
* @export
|
|
@@ -180,4 +272,15 @@ export class CorrectionInvoicesApi extends BaseAPI {
|
|
|
180
272
|
public createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig) {
|
|
181
273
|
return CorrectionInvoicesApiFp(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
182
274
|
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
278
|
+
* @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
* @memberof CorrectionInvoicesApi
|
|
282
|
+
*/
|
|
283
|
+
public revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig) {
|
|
284
|
+
return CorrectionInvoicesApiFp(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
285
|
+
}
|
|
183
286
|
}
|
|
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateCorrectionInvoicesResponseClass } from '../models';
|
|
16
16
|
import { CreateInvoiceForPolicyRequestDto } from '../models';
|
|
17
|
+
import { RevertInvoiceRequestDto } from '../models';
|
|
18
|
+
import { RevertInvoiceResponseClass } from '../models';
|
|
17
19
|
/**
|
|
18
20
|
* CorrectionInvoicesApi - axios parameter creator
|
|
19
21
|
* @export
|
|
@@ -29,6 +31,14 @@ export declare const CorrectionInvoicesApiAxiosParamCreator: (configuration?: Co
|
|
|
29
31
|
* @throws {RequiredError}
|
|
30
32
|
*/
|
|
31
33
|
createCorrectionInvoice: (createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
36
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
revertInvoice: (revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
42
|
};
|
|
33
43
|
/**
|
|
34
44
|
* CorrectionInvoicesApi - functional programming interface
|
|
@@ -45,6 +55,14 @@ export declare const CorrectionInvoicesApiFp: (configuration?: Configuration) =>
|
|
|
45
55
|
* @throws {RequiredError}
|
|
46
56
|
*/
|
|
47
57
|
createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponseClass>>;
|
|
58
|
+
/**
|
|
59
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
60
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
61
|
+
* @param {string} [authorization] Bearer Token
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertInvoiceResponseClass>>;
|
|
48
66
|
};
|
|
49
67
|
/**
|
|
50
68
|
* CorrectionInvoicesApi - factory interface
|
|
@@ -61,6 +79,14 @@ export declare const CorrectionInvoicesApiFactory: (configuration?: Configuratio
|
|
|
61
79
|
* @throws {RequiredError}
|
|
62
80
|
*/
|
|
63
81
|
createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass>;
|
|
82
|
+
/**
|
|
83
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
84
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
85
|
+
* @param {string} [authorization] Bearer Token
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<RevertInvoiceResponseClass>;
|
|
64
90
|
};
|
|
65
91
|
/**
|
|
66
92
|
* Request parameters for createCorrectionInvoice operation in CorrectionInvoicesApi.
|
|
@@ -87,6 +113,25 @@ export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
|
|
|
87
113
|
*/
|
|
88
114
|
readonly idempotencyKey?: string;
|
|
89
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Request parameters for revertInvoice operation in CorrectionInvoicesApi.
|
|
118
|
+
* @export
|
|
119
|
+
* @interface CorrectionInvoicesApiRevertInvoiceRequest
|
|
120
|
+
*/
|
|
121
|
+
export interface CorrectionInvoicesApiRevertInvoiceRequest {
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {RevertInvoiceRequestDto}
|
|
125
|
+
* @memberof CorrectionInvoicesApiRevertInvoice
|
|
126
|
+
*/
|
|
127
|
+
readonly revertInvoiceRequestDto: RevertInvoiceRequestDto;
|
|
128
|
+
/**
|
|
129
|
+
* Bearer Token
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof CorrectionInvoicesApiRevertInvoice
|
|
132
|
+
*/
|
|
133
|
+
readonly authorization?: string;
|
|
134
|
+
}
|
|
90
135
|
/**
|
|
91
136
|
* CorrectionInvoicesApi - object-oriented interface
|
|
92
137
|
* @export
|
|
@@ -103,4 +148,12 @@ export declare class CorrectionInvoicesApi extends BaseAPI {
|
|
|
103
148
|
* @memberof CorrectionInvoicesApi
|
|
104
149
|
*/
|
|
105
150
|
createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCorrectionInvoicesResponseClass, any, {}>>;
|
|
151
|
+
/**
|
|
152
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
153
|
+
* @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters.
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
* @memberof CorrectionInvoicesApi
|
|
157
|
+
*/
|
|
158
|
+
revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RevertInvoiceResponseClass, any, {}>>;
|
|
106
159
|
}
|
|
@@ -149,6 +149,54 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
},
|
|
152
|
+
/**
|
|
153
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
154
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
155
|
+
* @param {string} [authorization] Bearer Token
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
160
|
+
if (options === void 0) { options = {}; }
|
|
161
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
|
+
return __generator(this, function (_a) {
|
|
164
|
+
switch (_a.label) {
|
|
165
|
+
case 0:
|
|
166
|
+
// verify required parameter 'revertInvoiceRequestDto' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('revertInvoice', 'revertInvoiceRequestDto', revertInvoiceRequestDto);
|
|
168
|
+
localVarPath = "/billingservice/v1/correction-invoices/revert";
|
|
169
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
baseAccessToken = configuration.accessToken;
|
|
173
|
+
}
|
|
174
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
175
|
+
localVarHeaderParameter = {};
|
|
176
|
+
localVarQueryParameter = {};
|
|
177
|
+
// authentication bearer required
|
|
178
|
+
// http bearer authentication required
|
|
179
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
180
|
+
case 1:
|
|
181
|
+
// authentication bearer required
|
|
182
|
+
// http bearer authentication required
|
|
183
|
+
_a.sent();
|
|
184
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
|
+
}
|
|
187
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
188
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
189
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
191
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revertInvoiceRequestDto, localVarRequestOptions, configuration);
|
|
192
|
+
return [2 /*return*/, {
|
|
193
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
194
|
+
options: localVarRequestOptions,
|
|
195
|
+
}];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
},
|
|
152
200
|
};
|
|
153
201
|
};
|
|
154
202
|
exports.CorrectionInvoicesApiAxiosParamCreator = CorrectionInvoicesApiAxiosParamCreator;
|
|
@@ -181,6 +229,26 @@ var CorrectionInvoicesApiFp = function (configuration) {
|
|
|
181
229
|
});
|
|
182
230
|
});
|
|
183
231
|
},
|
|
232
|
+
/**
|
|
233
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
234
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
235
|
+
* @param {string} [authorization] Bearer Token
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
241
|
+
var localVarAxiosArgs;
|
|
242
|
+
return __generator(this, function (_a) {
|
|
243
|
+
switch (_a.label) {
|
|
244
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.revertInvoice(revertInvoiceRequestDto, authorization, options)];
|
|
245
|
+
case 1:
|
|
246
|
+
localVarAxiosArgs = _a.sent();
|
|
247
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
},
|
|
184
252
|
};
|
|
185
253
|
};
|
|
186
254
|
exports.CorrectionInvoicesApiFp = CorrectionInvoicesApiFp;
|
|
@@ -203,6 +271,16 @@ var CorrectionInvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
203
271
|
createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
|
|
204
272
|
return localVarFp.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
|
|
205
273
|
},
|
|
274
|
+
/**
|
|
275
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
276
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
277
|
+
* @param {string} [authorization] Bearer Token
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
282
|
+
return localVarFp.revertInvoice(revertInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
283
|
+
},
|
|
206
284
|
};
|
|
207
285
|
};
|
|
208
286
|
exports.CorrectionInvoicesApiFactory = CorrectionInvoicesApiFactory;
|
|
@@ -229,6 +307,17 @@ var CorrectionInvoicesApi = /** @class */ (function (_super) {
|
|
|
229
307
|
var _this = this;
|
|
230
308
|
return (0, exports.CorrectionInvoicesApiFp)(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
231
309
|
};
|
|
310
|
+
/**
|
|
311
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
312
|
+
* @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters.
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
* @memberof CorrectionInvoicesApi
|
|
316
|
+
*/
|
|
317
|
+
CorrectionInvoicesApi.prototype.revertInvoice = function (requestParameters, options) {
|
|
318
|
+
var _this = this;
|
|
319
|
+
return (0, exports.CorrectionInvoicesApiFp)(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
320
|
+
};
|
|
232
321
|
return CorrectionInvoicesApi;
|
|
233
322
|
}(base_1.BaseAPI));
|
|
234
323
|
exports.CorrectionInvoicesApi = CorrectionInvoicesApi;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './premium-formula-dto';
|
|
|
39
39
|
export * from './premium-override-dto';
|
|
40
40
|
export * from './premium-override-request-dto';
|
|
41
41
|
export * from './revert-invoice-request-dto';
|
|
42
|
+
export * from './revert-invoice-response-class';
|
|
42
43
|
export * from './timeslice-dto';
|
|
43
44
|
export * from './update-policy-billing-request-dto';
|
|
44
45
|
export * from './update-policy-billing-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -55,6 +55,7 @@ __exportStar(require("./premium-formula-dto"), exports);
|
|
|
55
55
|
__exportStar(require("./premium-override-dto"), exports);
|
|
56
56
|
__exportStar(require("./premium-override-request-dto"), exports);
|
|
57
57
|
__exportStar(require("./revert-invoice-request-dto"), exports);
|
|
58
|
+
__exportStar(require("./revert-invoice-response-class"), exports);
|
|
58
59
|
__exportStar(require("./timeslice-dto"), exports);
|
|
59
60
|
__exportStar(require("./update-policy-billing-request-dto"), exports);
|
|
60
61
|
__exportStar(require("./update-policy-billing-response-class"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { InvoiceClass } from './invoice-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RevertInvoiceResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface RevertInvoiceResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Revert invoice response.
|
|
21
|
+
* @type {InvoiceClass}
|
|
22
|
+
* @memberof RevertInvoiceResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoice': InvoiceClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL BillingService
|
|
6
|
+
* The EMIL BillingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './premium-formula-dto';
|
|
|
39
39
|
export * from './premium-override-dto';
|
|
40
40
|
export * from './premium-override-request-dto';
|
|
41
41
|
export * from './revert-invoice-request-dto';
|
|
42
|
+
export * from './revert-invoice-response-class';
|
|
42
43
|
export * from './timeslice-dto';
|
|
43
44
|
export * from './update-policy-billing-request-dto';
|
|
44
45
|
export * from './update-policy-billing-response-class';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { InvoiceClass } from './invoice-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface RevertInvoiceResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface RevertInvoiceResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Revert invoice response.
|
|
26
|
+
* @type {InvoiceClass}
|
|
27
|
+
* @memberof RevertInvoiceResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'invoice': InvoiceClass;
|
|
30
|
+
}
|
|
31
|
+
|