@emilgroup/billing-sdk-node 1.63.1-beta.37 → 1.63.1-beta.39

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 (53) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +23 -8
  4. package/api/draft-invoice-api.ts +24 -9
  5. package/api/estimated-invoices-api.ts +32 -12
  6. package/api/health-api.ts +1 -1
  7. package/api/initial-invoices-api.ts +15 -5
  8. package/api/invoices-api.ts +39 -14
  9. package/api/policy-billing-api.ts +24 -9
  10. package/api/recurring-invoices-api.ts +15 -5
  11. package/api/termination-invoices-api.ts +15 -5
  12. package/api/withdraw-invoices-api.ts +193 -0
  13. package/api.ts +2 -0
  14. package/base.ts +4 -0
  15. package/common.ts +3 -2
  16. package/dist/api/correction-invoices-api.d.ts +2 -2
  17. package/dist/api/correction-invoices-api.js +35 -18
  18. package/dist/api/draft-invoice-api.d.ts +3 -3
  19. package/dist/api/draft-invoice-api.js +45 -24
  20. package/dist/api/estimated-invoices-api.d.ts +4 -4
  21. package/dist/api/estimated-invoices-api.js +60 -32
  22. package/dist/api/health-api.d.ts +1 -1
  23. package/dist/api/health-api.js +1 -1
  24. package/dist/api/initial-invoices-api.d.ts +1 -1
  25. package/dist/api/initial-invoices-api.js +20 -10
  26. package/dist/api/invoices-api.d.ts +4 -4
  27. package/dist/api/invoices-api.js +53 -31
  28. package/dist/api/policy-billing-api.d.ts +3 -3
  29. package/dist/api/policy-billing-api.js +41 -23
  30. package/dist/api/recurring-invoices-api.d.ts +1 -1
  31. package/dist/api/recurring-invoices-api.js +20 -10
  32. package/dist/api/termination-invoices-api.d.ts +1 -1
  33. package/dist/api/termination-invoices-api.js +20 -10
  34. package/dist/api/withdraw-invoices-api.d.ts +106 -0
  35. package/dist/api/withdraw-invoices-api.js +244 -0
  36. package/dist/api.d.ts +1 -0
  37. package/dist/api.js +1 -0
  38. package/dist/base.d.ts +1 -0
  39. package/dist/base.js +3 -0
  40. package/dist/common.d.ts +1 -1
  41. package/dist/common.js +1 -0
  42. package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +50 -0
  43. package/dist/models/create-withdraw-invoice-request-dto-rest.js +15 -0
  44. package/dist/models/create-withdraw-invoice-request-dto.d.ts +50 -0
  45. package/dist/models/create-withdraw-invoice-request-dto.js +15 -0
  46. package/dist/models/index.d.ts +2 -0
  47. package/dist/models/index.js +2 -0
  48. package/dist/models/invoice-item-class.d.ts +12 -0
  49. package/models/create-withdraw-invoice-request-dto-rest.ts +54 -0
  50. package/models/create-withdraw-invoice-request-dto.ts +54 -0
  51. package/models/index.ts +2 -0
  52. package/models/invoice-item-class.ts +12 -0
  53. package/package.json +2 -2
package/dist/api.js CHANGED
@@ -36,3 +36,4 @@ __exportStar(require("./api/invoices-api"), exports);
36
36
  __exportStar(require("./api/policy-billing-api"), exports);
37
37
  __exportStar(require("./api/recurring-invoices-api"), exports);
38
38
  __exportStar(require("./api/termination-invoices-api"), exports);
39
+ __exportStar(require("./api/withdraw-invoices-api"), exports);
package/dist/base.d.ts CHANGED
@@ -63,6 +63,7 @@ export declare class BaseAPI {
63
63
  protected configuration: Configuration;
64
64
  private username?;
65
65
  private password?;
66
+ protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
66
67
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
67
68
  initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
68
69
  private loadCredentials;
package/dist/base.js CHANGED
@@ -163,6 +163,9 @@ var BaseAPI = /** @class */ (function () {
163
163
  }
164
164
  this.attachInterceptor(axios);
165
165
  }
166
+ BaseAPI.prototype.withOwner = function (options) {
167
+ return __assign({}, options);
168
+ };
166
169
  BaseAPI.prototype.initialize = function (env, targetWorkspace) {
167
170
  if (env === void 0) { env = Environment.Production; }
168
171
  return __awaiter(this, void 0, void 0, function () {
package/dist/common.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
67
67
  /**
68
68
  * EMIL BillingService
69
69
  * The EMIL BillingService API description
package/dist/common.js CHANGED
@@ -234,6 +234,7 @@ exports.toPathString = toPathString;
234
234
  * @export
235
235
  */
236
236
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
237
+ // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
237
238
  return function (axios, basePath) {
238
239
  if (axios === void 0) { axios = globalAxios; }
239
240
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -0,0 +1,50 @@
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
+ }
@@ -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 });
@@ -0,0 +1,50 @@
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
+ }
@@ -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 });
@@ -17,6 +17,8 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
+ export * from './create-withdraw-invoice-request-dto';
21
+ export * from './create-withdraw-invoice-request-dto-rest';
20
22
  export * from './get-invoice-response-class';
21
23
  export * from './inline-response200';
22
24
  export * from './inline-response503';
@@ -33,6 +33,8 @@ __exportStar(require("./create-policy-billing-response-class"), exports);
33
33
  __exportStar(require("./create-product-estimated-invoice-request-dto"), exports);
34
34
  __exportStar(require("./create-product-estimated-invoice-response-class"), exports);
35
35
  __exportStar(require("./create-termination-invoice-request-dto"), exports);
36
+ __exportStar(require("./create-withdraw-invoice-request-dto"), exports);
37
+ __exportStar(require("./create-withdraw-invoice-request-dto-rest"), exports);
36
38
  __exportStar(require("./get-invoice-response-class"), exports);
37
39
  __exportStar(require("./inline-response200"), exports);
38
40
  __exportStar(require("./inline-response503"), exports);
@@ -27,6 +27,18 @@ export interface InvoiceItemClass {
27
27
  * @memberof InvoiceItemClass
28
28
  */
29
29
  'premiumFormulaId': number;
30
+ /**
31
+ * Unique identifier of the premium formula that this object belongs to.
32
+ * @type {string}
33
+ * @memberof InvoiceItemClass
34
+ */
35
+ 'premiumFormulaCode'?: string;
36
+ /**
37
+ * Unique identifier of the original invoice that this object belongs to.
38
+ * @type {string}
39
+ * @memberof InvoiceItemClass
40
+ */
41
+ 'reversedInvoiceCode'?: string;
30
42
  /**
31
43
  * Product name.
32
44
  * @type {string}
@@ -0,0 +1,54 @@
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
+
@@ -0,0 +1,54 @@
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
+
package/models/index.ts CHANGED
@@ -17,6 +17,8 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
+ export * from './create-withdraw-invoice-request-dto';
21
+ export * from './create-withdraw-invoice-request-dto-rest';
20
22
  export * from './get-invoice-response-class';
21
23
  export * from './inline-response200';
22
24
  export * from './inline-response503';
@@ -32,6 +32,18 @@ export interface InvoiceItemClass {
32
32
  * @memberof InvoiceItemClass
33
33
  */
34
34
  'premiumFormulaId': number;
35
+ /**
36
+ * Unique identifier of the premium formula that this object belongs to.
37
+ * @type {string}
38
+ * @memberof InvoiceItemClass
39
+ */
40
+ 'premiumFormulaCode'?: string;
41
+ /**
42
+ * Unique identifier of the original invoice that this object belongs to.
43
+ * @type {string}
44
+ * @memberof InvoiceItemClass
45
+ */
46
+ 'reversedInvoiceCode'?: string;
35
47
  /**
36
48
  * Product name.
37
49
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.63.1-beta.37",
3
+ "version": "1.63.1-beta.39",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.18.0",
21
+ "axios": "1.20.0",
22
22
  "form-data": "^4.0.0",
23
23
  "url": "^0.11.0"
24
24
  },