@emilgroup/billing-sdk 1.63.1-beta.5 → 1.63.1-beta.6

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 (45) hide show
  1. package/.openapi-generator/FILES +1 -4
  2. package/README.md +2 -2
  3. package/api.ts +0 -2
  4. package/dist/api.d.ts +0 -1
  5. package/dist/api.js +0 -1
  6. package/dist/models/create-correction-invoices-response-class.d.ts +3 -3
  7. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +2 -4
  8. package/dist/models/create-draft-invoice-request-dto.d.ts +2 -4
  9. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +2 -4
  10. package/dist/models/create-estimated-invoice-request-dto.d.ts +2 -4
  11. package/dist/models/create-invoice-for-policy-request-dto.d.ts +2 -4
  12. package/dist/models/create-invoice-request-dto.d.ts +2 -4
  13. package/dist/models/create-invoice-response-class.d.ts +3 -3
  14. package/dist/models/create-termination-invoice-request-dto.d.ts +2 -4
  15. package/dist/models/get-invoice-response-class.d.ts +3 -3
  16. package/dist/models/index.d.ts +1 -3
  17. package/dist/models/index.js +1 -3
  18. package/dist/models/{omit-invoice-class-statuses.d.ts → omit-type-class.d.ts} +37 -37
  19. package/dist/models/{omit-invoice-class-statuses.js → omit-type-class.js} +3 -3
  20. package/dist/models/policy-object-dto.d.ts +2 -4
  21. package/dist/models/policy-version-dto.d.ts +2 -4
  22. package/models/create-correction-invoices-response-class.ts +3 -3
  23. package/models/create-custom-estimated-invoice-request-dto.ts +2 -2
  24. package/models/create-draft-invoice-request-dto.ts +2 -2
  25. package/models/create-estimated-invoice-for-interval-request-dto.ts +2 -2
  26. package/models/create-estimated-invoice-request-dto.ts +2 -2
  27. package/models/create-invoice-for-policy-request-dto.ts +2 -2
  28. package/models/create-invoice-request-dto.ts +2 -2
  29. package/models/create-invoice-response-class.ts +3 -3
  30. package/models/create-termination-invoice-request-dto.ts +2 -2
  31. package/models/get-invoice-response-class.ts +3 -3
  32. package/models/index.ts +1 -3
  33. package/models/{omit-invoice-class-statuses.ts → omit-type-class.ts} +37 -37
  34. package/models/policy-object-dto.ts +2 -2
  35. package/models/policy-version-dto.ts +2 -2
  36. package/package.json +1 -1
  37. package/api/withdraw-invoices-api.ts +0 -179
  38. package/dist/api/withdraw-invoices-api.d.ts +0 -106
  39. package/dist/api/withdraw-invoices-api.js +0 -230
  40. package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +0 -50
  41. package/dist/models/create-withdraw-invoice-request-dto-rest.js +0 -15
  42. package/dist/models/create-withdraw-invoice-request-dto.d.ts +0 -50
  43. package/dist/models/create-withdraw-invoice-request-dto.js +0 -15
  44. package/models/create-withdraw-invoice-request-dto-rest.ts +0 -54
  45. package/models/create-withdraw-invoice-request-dto.ts +0 -54
@@ -1,230 +0,0 @@
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.WithdrawInvoicesApi = exports.WithdrawInvoicesApiFactory = exports.WithdrawInvoicesApiFp = exports.WithdrawInvoicesApiAxiosParamCreator = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("../common");
86
- // @ts-ignore
87
- var base_1 = require("../base");
88
- /**
89
- * WithdrawInvoicesApi - axios parameter creator
90
- * @export
91
- */
92
- var WithdrawInvoicesApiAxiosParamCreator = function (configuration) {
93
- var _this = this;
94
- return {
95
- /**
96
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
97
- * @summary Create the Withdraw invoice
98
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
99
- * @param {string} [authorization] Bearer Token
100
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
110
- case 0:
111
- // verify required parameter 'createWithdrawInvoiceRequestDtoRest' is not null or undefined
112
- (0, common_1.assertParamExists)('createWithdrawInvoice', 'createWithdrawInvoiceRequestDtoRest', createWithdrawInvoiceRequestDtoRest);
113
- localVarPath = "/billingservice/v1/withdraw-invoices";
114
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
- if (configuration) {
116
- baseOptions = configuration.baseOptions;
117
- baseAccessToken = configuration.accessToken;
118
- }
119
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
120
- localVarHeaderParameter = {};
121
- localVarQueryParameter = {};
122
- // authentication bearer required
123
- // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
125
- case 1:
126
- // authentication bearer required
127
- // http bearer authentication required
128
- _a.sent();
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
- }
132
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
134
- }
135
- localVarHeaderParameter['Content-Type'] = 'application/json';
136
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWithdrawInvoiceRequestDtoRest, localVarRequestOptions, configuration);
140
- return [2 /*return*/, {
141
- url: (0, common_1.toPathString)(localVarUrlObj),
142
- options: localVarRequestOptions,
143
- }];
144
- }
145
- });
146
- });
147
- },
148
- };
149
- };
150
- exports.WithdrawInvoicesApiAxiosParamCreator = WithdrawInvoicesApiAxiosParamCreator;
151
- /**
152
- * WithdrawInvoicesApi - functional programming interface
153
- * @export
154
- */
155
- var WithdrawInvoicesApiFp = function (configuration) {
156
- var localVarAxiosParamCreator = (0, exports.WithdrawInvoicesApiAxiosParamCreator)(configuration);
157
- return {
158
- /**
159
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
160
- * @summary Create the Withdraw invoice
161
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
162
- * @param {string} [authorization] Bearer Token
163
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
164
- * @param {*} [options] Override http request option.
165
- * @throws {RequiredError}
166
- */
167
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
168
- return __awaiter(this, void 0, void 0, function () {
169
- var localVarAxiosArgs;
170
- return __generator(this, function (_a) {
171
- switch (_a.label) {
172
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options)];
173
- case 1:
174
- localVarAxiosArgs = _a.sent();
175
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
176
- }
177
- });
178
- });
179
- },
180
- };
181
- };
182
- exports.WithdrawInvoicesApiFp = WithdrawInvoicesApiFp;
183
- /**
184
- * WithdrawInvoicesApi - factory interface
185
- * @export
186
- */
187
- var WithdrawInvoicesApiFactory = function (configuration, basePath, axios) {
188
- var localVarFp = (0, exports.WithdrawInvoicesApiFp)(configuration);
189
- return {
190
- /**
191
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
192
- * @summary Create the Withdraw invoice
193
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
194
- * @param {string} [authorization] Bearer Token
195
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
196
- * @param {*} [options] Override http request option.
197
- * @throws {RequiredError}
198
- */
199
- createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
200
- return localVarFp.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
201
- },
202
- };
203
- };
204
- exports.WithdrawInvoicesApiFactory = WithdrawInvoicesApiFactory;
205
- /**
206
- * WithdrawInvoicesApi - object-oriented interface
207
- * @export
208
- * @class WithdrawInvoicesApi
209
- * @extends {BaseAPI}
210
- */
211
- var WithdrawInvoicesApi = /** @class */ (function (_super) {
212
- __extends(WithdrawInvoicesApi, _super);
213
- function WithdrawInvoicesApi() {
214
- return _super !== null && _super.apply(this, arguments) || this;
215
- }
216
- /**
217
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
218
- * @summary Create the Withdraw invoice
219
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
220
- * @param {*} [options] Override http request option.
221
- * @throws {RequiredError}
222
- * @memberof WithdrawInvoicesApi
223
- */
224
- WithdrawInvoicesApi.prototype.createWithdrawInvoice = function (requestParameters, options) {
225
- var _this = this;
226
- return (0, exports.WithdrawInvoicesApiFp)(this.configuration).createWithdrawInvoice(requestParameters.createWithdrawInvoiceRequestDtoRest, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
227
- };
228
- return WithdrawInvoicesApi;
229
- }(base_1.BaseAPI));
230
- exports.WithdrawInvoicesApi = WithdrawInvoicesApi;
@@ -1,50 +0,0 @@
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
- /**
13
- *
14
- * @export
15
- * @interface CreateWithdrawInvoiceRequestDtoRest
16
- */
17
- export interface CreateWithdrawInvoiceRequestDtoRest {
18
- /**
19
- * Unique identifier of the policy that this object belongs to.
20
- * @type {string}
21
- * @memberof CreateWithdrawInvoiceRequestDtoRest
22
- */
23
- 'policyCode': string;
24
- /**
25
- * Account number.
26
- * @type {string}
27
- * @memberof CreateWithdrawInvoiceRequestDtoRest
28
- */
29
- 'accountNumber': string;
30
- /**
31
- * Policy number.
32
- * @type {string}
33
- * @memberof CreateWithdrawInvoiceRequestDtoRest
34
- */
35
- 'policyNumber': string;
36
- /**
37
- * This is the date from which the invoice interval starts.
38
- * @type {string}
39
- * @memberof CreateWithdrawInvoiceRequestDtoRest
40
- */
41
- 'billingIntervalFrom': string;
42
- /**
43
- * Metadata contains extra information that the object would need for specific cases.
44
- * @type {{ [key: string]: object; }}
45
- * @memberof CreateWithdrawInvoiceRequestDtoRest
46
- */
47
- 'metadata'?: {
48
- [key: string]: object;
49
- };
50
- }
@@ -1,15 +0,0 @@
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 });
@@ -1,50 +0,0 @@
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
- /**
13
- *
14
- * @export
15
- * @interface CreateWithdrawInvoiceRequestDto
16
- */
17
- export interface CreateWithdrawInvoiceRequestDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof CreateWithdrawInvoiceRequestDto
22
- */
23
- 'policyCode': string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateWithdrawInvoiceRequestDto
28
- */
29
- 'accountNumber': string;
30
- /**
31
- *
32
- * @type {{ [key: string]: object; }}
33
- * @memberof CreateWithdrawInvoiceRequestDto
34
- */
35
- 'metadata'?: {
36
- [key: string]: object;
37
- };
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof CreateWithdrawInvoiceRequestDto
42
- */
43
- 'billingIntervalFrom': string;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof CreateWithdrawInvoiceRequestDto
48
- */
49
- 'policyNumber': string;
50
- }
@@ -1,15 +0,0 @@
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 });
@@ -1,54 +0,0 @@
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
-
17
- /**
18
- *
19
- * @export
20
- * @interface CreateWithdrawInvoiceRequestDtoRest
21
- */
22
- export interface CreateWithdrawInvoiceRequestDtoRest {
23
- /**
24
- * Unique identifier of the policy that this object belongs to.
25
- * @type {string}
26
- * @memberof CreateWithdrawInvoiceRequestDtoRest
27
- */
28
- 'policyCode': string;
29
- /**
30
- * Account number.
31
- * @type {string}
32
- * @memberof CreateWithdrawInvoiceRequestDtoRest
33
- */
34
- 'accountNumber': string;
35
- /**
36
- * Policy number.
37
- * @type {string}
38
- * @memberof CreateWithdrawInvoiceRequestDtoRest
39
- */
40
- 'policyNumber': string;
41
- /**
42
- * This is the date from which the invoice interval starts.
43
- * @type {string}
44
- * @memberof CreateWithdrawInvoiceRequestDtoRest
45
- */
46
- 'billingIntervalFrom': string;
47
- /**
48
- * Metadata contains extra information that the object would need for specific cases.
49
- * @type {{ [key: string]: object; }}
50
- * @memberof CreateWithdrawInvoiceRequestDtoRest
51
- */
52
- 'metadata'?: { [key: string]: object; };
53
- }
54
-
@@ -1,54 +0,0 @@
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
-
17
- /**
18
- *
19
- * @export
20
- * @interface CreateWithdrawInvoiceRequestDto
21
- */
22
- export interface CreateWithdrawInvoiceRequestDto {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof CreateWithdrawInvoiceRequestDto
27
- */
28
- 'policyCode': string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CreateWithdrawInvoiceRequestDto
33
- */
34
- 'accountNumber': string;
35
- /**
36
- *
37
- * @type {{ [key: string]: object; }}
38
- * @memberof CreateWithdrawInvoiceRequestDto
39
- */
40
- 'metadata'?: { [key: string]: object; };
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof CreateWithdrawInvoiceRequestDto
45
- */
46
- 'billingIntervalFrom': string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof CreateWithdrawInvoiceRequestDto
51
- */
52
- 'policyNumber': string;
53
- }
54
-