@emilgroup/billing-sdk 1.56.0 → 1.56.1-beta.5
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@1.56.
|
|
20
|
+
npm install @emilgroup/billing-sdk@1.56.1-beta.5 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk@1.56.
|
|
24
|
+
yarn add @emilgroup/billing-sdk@1.56.1-beta.5
|
|
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
|
/**
|
|
28
32
|
* CorrectionInvoicesApi - axios parameter creator
|
|
29
33
|
* @export
|
|
@@ -77,6 +81,52 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
77
81
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
82
|
localVarRequestOptions.data = serializeDataIfNeeded(createInvoiceForPolicyRequestDto, localVarRequestOptions, configuration)
|
|
79
83
|
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
91
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
revertInvoice: async (revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'revertInvoiceRequestDto' is not null or undefined
|
|
98
|
+
assertParamExists('revertInvoice', 'revertInvoiceRequestDto', revertInvoiceRequestDto)
|
|
99
|
+
const localVarPath = `/billingservice/v1/correction-invoices/revert`;
|
|
100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
102
|
+
let baseOptions;
|
|
103
|
+
let baseAccessToken;
|
|
104
|
+
if (configuration) {
|
|
105
|
+
baseOptions = configuration.baseOptions;
|
|
106
|
+
baseAccessToken = configuration.accessToken;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
110
|
+
const localVarHeaderParameter = {} as any;
|
|
111
|
+
const localVarQueryParameter = {} as any;
|
|
112
|
+
|
|
113
|
+
// authentication bearer required
|
|
114
|
+
// http bearer authentication required
|
|
115
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
116
|
+
|
|
117
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
118
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
124
|
+
|
|
125
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
128
|
+
localVarRequestOptions.data = serializeDataIfNeeded(revertInvoiceRequestDto, localVarRequestOptions, configuration)
|
|
129
|
+
|
|
80
130
|
return {
|
|
81
131
|
url: toPathString(localVarUrlObj),
|
|
82
132
|
options: localVarRequestOptions,
|
|
@@ -105,6 +155,17 @@ export const CorrectionInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
105
155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options);
|
|
106
156
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
107
157
|
},
|
|
158
|
+
/**
|
|
159
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
160
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
161
|
+
* @param {string} [authorization] Bearer Token
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
async revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertInvoiceResponseClass>> {
|
|
166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revertInvoice(revertInvoiceRequestDto, authorization, options);
|
|
167
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
168
|
+
},
|
|
108
169
|
}
|
|
109
170
|
};
|
|
110
171
|
|
|
@@ -127,6 +188,16 @@ export const CorrectionInvoicesApiFactory = function (configuration?: Configurat
|
|
|
127
188
|
createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass> {
|
|
128
189
|
return localVarFp.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
129
190
|
},
|
|
191
|
+
/**
|
|
192
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
193
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
194
|
+
* @param {string} [authorization] Bearer Token
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<RevertInvoiceResponseClass> {
|
|
199
|
+
return localVarFp.revertInvoice(revertInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
200
|
+
},
|
|
130
201
|
};
|
|
131
202
|
};
|
|
132
203
|
|
|
@@ -158,6 +229,27 @@ export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
|
|
|
158
229
|
readonly idempotencyKey?: string
|
|
159
230
|
}
|
|
160
231
|
|
|
232
|
+
/**
|
|
233
|
+
* Request parameters for revertInvoice operation in CorrectionInvoicesApi.
|
|
234
|
+
* @export
|
|
235
|
+
* @interface CorrectionInvoicesApiRevertInvoiceRequest
|
|
236
|
+
*/
|
|
237
|
+
export interface CorrectionInvoicesApiRevertInvoiceRequest {
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {RevertInvoiceRequestDto}
|
|
241
|
+
* @memberof CorrectionInvoicesApiRevertInvoice
|
|
242
|
+
*/
|
|
243
|
+
readonly revertInvoiceRequestDto: RevertInvoiceRequestDto
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Bearer Token
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof CorrectionInvoicesApiRevertInvoice
|
|
249
|
+
*/
|
|
250
|
+
readonly authorization?: string
|
|
251
|
+
}
|
|
252
|
+
|
|
161
253
|
/**
|
|
162
254
|
* CorrectionInvoicesApi - object-oriented interface
|
|
163
255
|
* @export
|
|
@@ -176,4 +268,15 @@ export class CorrectionInvoicesApi extends BaseAPI {
|
|
|
176
268
|
public createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig) {
|
|
177
269
|
return CorrectionInvoicesApiFp(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
178
270
|
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
274
|
+
* @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
* @memberof CorrectionInvoicesApi
|
|
278
|
+
*/
|
|
279
|
+
public revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig) {
|
|
280
|
+
return CorrectionInvoicesApiFp(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
281
|
+
}
|
|
179
282
|
}
|
|
@@ -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
|
}
|
|
@@ -145,6 +145,54 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
+
/**
|
|
149
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
150
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
151
|
+
* @param {string} [authorization] Bearer Token
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
156
|
+
if (options === void 0) { options = {}; }
|
|
157
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
+
return __generator(this, function (_a) {
|
|
160
|
+
switch (_a.label) {
|
|
161
|
+
case 0:
|
|
162
|
+
// verify required parameter 'revertInvoiceRequestDto' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('revertInvoice', 'revertInvoiceRequestDto', revertInvoiceRequestDto);
|
|
164
|
+
localVarPath = "/billingservice/v1/correction-invoices/revert";
|
|
165
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
166
|
+
if (configuration) {
|
|
167
|
+
baseOptions = configuration.baseOptions;
|
|
168
|
+
baseAccessToken = configuration.accessToken;
|
|
169
|
+
}
|
|
170
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
171
|
+
localVarHeaderParameter = {};
|
|
172
|
+
localVarQueryParameter = {};
|
|
173
|
+
// authentication bearer required
|
|
174
|
+
// http bearer authentication required
|
|
175
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
176
|
+
case 1:
|
|
177
|
+
// authentication bearer required
|
|
178
|
+
// http bearer authentication required
|
|
179
|
+
_a.sent();
|
|
180
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
181
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
182
|
+
}
|
|
183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revertInvoiceRequestDto, localVarRequestOptions, configuration);
|
|
188
|
+
return [2 /*return*/, {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
}];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
},
|
|
148
196
|
};
|
|
149
197
|
};
|
|
150
198
|
exports.CorrectionInvoicesApiAxiosParamCreator = CorrectionInvoicesApiAxiosParamCreator;
|
|
@@ -177,6 +225,26 @@ var CorrectionInvoicesApiFp = function (configuration) {
|
|
|
177
225
|
});
|
|
178
226
|
});
|
|
179
227
|
},
|
|
228
|
+
/**
|
|
229
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
230
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
231
|
+
* @param {string} [authorization] Bearer Token
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
237
|
+
var localVarAxiosArgs;
|
|
238
|
+
return __generator(this, function (_a) {
|
|
239
|
+
switch (_a.label) {
|
|
240
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.revertInvoice(revertInvoiceRequestDto, authorization, options)];
|
|
241
|
+
case 1:
|
|
242
|
+
localVarAxiosArgs = _a.sent();
|
|
243
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
},
|
|
180
248
|
};
|
|
181
249
|
};
|
|
182
250
|
exports.CorrectionInvoicesApiFp = CorrectionInvoicesApiFp;
|
|
@@ -199,6 +267,16 @@ var CorrectionInvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
199
267
|
createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
|
|
200
268
|
return localVarFp.createCorrectionInvoice(createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
|
|
201
269
|
},
|
|
270
|
+
/**
|
|
271
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
272
|
+
* @param {RevertInvoiceRequestDto} revertInvoiceRequestDto
|
|
273
|
+
* @param {string} [authorization] Bearer Token
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
278
|
+
return localVarFp.revertInvoice(revertInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
279
|
+
},
|
|
202
280
|
};
|
|
203
281
|
};
|
|
204
282
|
exports.CorrectionInvoicesApiFactory = CorrectionInvoicesApiFactory;
|
|
@@ -225,6 +303,17 @@ var CorrectionInvoicesApi = /** @class */ (function (_super) {
|
|
|
225
303
|
var _this = this;
|
|
226
304
|
return (0, exports.CorrectionInvoicesApiFp)(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
227
305
|
};
|
|
306
|
+
/**
|
|
307
|
+
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
308
|
+
* @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters.
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
* @memberof CorrectionInvoicesApi
|
|
312
|
+
*/
|
|
313
|
+
CorrectionInvoicesApi.prototype.revertInvoice = function (requestParameters, options) {
|
|
314
|
+
var _this = this;
|
|
315
|
+
return (0, exports.CorrectionInvoicesApiFp)(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
316
|
+
};
|
|
228
317
|
return CorrectionInvoicesApi;
|
|
229
318
|
}(base_1.BaseAPI));
|
|
230
319
|
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
|
+
|