@emilgroup/billing-sdk-node 1.29.1-beta.2 → 1.29.1-beta.3

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 (30) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/README.md +2 -2
  3. package/api/invoices-api.ts +14 -12
  4. package/api/policy-billing-api.ts +471 -0
  5. package/api.ts +2 -0
  6. package/dist/api/invoices-api.d.ts +15 -12
  7. package/dist/api/invoices-api.js +10 -6
  8. package/dist/api/policy-billing-api.d.ts +270 -0
  9. package/dist/api/policy-billing-api.js +456 -0
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/create-invoice-request-dto.d.ts +0 -12
  13. package/dist/models/create-item-request-dto.d.ts +0 -65
  14. package/dist/models/create-item-request-dto.js +0 -21
  15. package/dist/models/create-policy-billing-request-dto.d.ts +50 -0
  16. package/dist/models/{list-policies-billing-dates-response-class.js → create-policy-billing-request-dto.js} +8 -0
  17. package/dist/models/index.d.ts +2 -2
  18. package/dist/models/index.js +2 -2
  19. package/dist/models/update-policy-billing-request-dto.d.ts +32 -0
  20. package/dist/models/{policy-billing-date-class.js → update-policy-billing-request-dto.js} +8 -0
  21. package/models/create-invoice-request-dto.ts +0 -12
  22. package/models/create-item-request-dto.ts +0 -70
  23. package/models/create-policy-billing-request-dto.ts +59 -0
  24. package/models/index.ts +2 -2
  25. package/models/update-policy-billing-request-dto.ts +41 -0
  26. package/package.json +1 -1
  27. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  28. package/dist/models/policy-billing-date-class.d.ts +0 -54
  29. package/models/list-policies-billing-dates-response-class.ts +0 -37
  30. package/models/policy-billing-date-class.ts +0 -60
@@ -13,3 +13,11 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreatePolicyBillingRequestDtoStatusEnum = void 0;
17
+ exports.CreatePolicyBillingRequestDtoStatusEnum = {
18
+ Invoiced: 'invoiced',
19
+ Pending: 'pending',
20
+ Terminated: 'terminated',
21
+ Withdrawn: 'withdrawn',
22
+ Paused: 'paused'
23
+ };
@@ -12,6 +12,7 @@ export * from './create-invoice-request-dto';
12
12
  export * from './create-invoice-response-class';
13
13
  export * from './create-invoice-status-request-dto';
14
14
  export * from './create-item-request-dto';
15
+ export * from './create-policy-billing-request-dto';
15
16
  export * from './create-termination-invoice-request-dto';
16
17
  export * from './get-invoice-response-class';
17
18
  export * from './inline-response200';
@@ -22,10 +23,8 @@ export * from './invoice-payment-class';
22
23
  export * from './invoice-payments-class';
23
24
  export * from './invoice-status-class';
24
25
  export * from './list-invoices-response-class';
25
- export * from './list-policies-billing-dates-response-class';
26
26
  export * from './list-request-dto';
27
27
  export * from './omit-type-class';
28
- export * from './policy-billing-date-class';
29
28
  export * from './policy-dto';
30
29
  export * from './policy-object-dto';
31
30
  export * from './policy-premium-dto';
@@ -34,3 +33,4 @@ export * from './policy-version-dto';
34
33
  export * from './premium-formula-dto';
35
34
  export * from './revert-invoice-request-dto';
36
35
  export * from './timeslice-dto';
36
+ export * from './update-policy-billing-request-dto';
@@ -28,6 +28,7 @@ __exportStar(require("./create-invoice-request-dto"), exports);
28
28
  __exportStar(require("./create-invoice-response-class"), exports);
29
29
  __exportStar(require("./create-invoice-status-request-dto"), exports);
30
30
  __exportStar(require("./create-item-request-dto"), exports);
31
+ __exportStar(require("./create-policy-billing-request-dto"), exports);
31
32
  __exportStar(require("./create-termination-invoice-request-dto"), exports);
32
33
  __exportStar(require("./get-invoice-response-class"), exports);
33
34
  __exportStar(require("./inline-response200"), exports);
@@ -38,10 +39,8 @@ __exportStar(require("./invoice-payment-class"), exports);
38
39
  __exportStar(require("./invoice-payments-class"), exports);
39
40
  __exportStar(require("./invoice-status-class"), exports);
40
41
  __exportStar(require("./list-invoices-response-class"), exports);
41
- __exportStar(require("./list-policies-billing-dates-response-class"), exports);
42
42
  __exportStar(require("./list-request-dto"), exports);
43
43
  __exportStar(require("./omit-type-class"), exports);
44
- __exportStar(require("./policy-billing-date-class"), exports);
45
44
  __exportStar(require("./policy-dto"), exports);
46
45
  __exportStar(require("./policy-object-dto"), exports);
47
46
  __exportStar(require("./policy-premium-dto"), exports);
@@ -50,3 +49,4 @@ __exportStar(require("./policy-version-dto"), exports);
50
49
  __exportStar(require("./premium-formula-dto"), exports);
51
50
  __exportStar(require("./revert-invoice-request-dto"), exports);
52
51
  __exportStar(require("./timeslice-dto"), exports);
52
+ __exportStar(require("./update-policy-billing-request-dto"), exports);
@@ -0,0 +1,32 @@
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 UpdatePolicyBillingRequestDto
16
+ */
17
+ export interface UpdatePolicyBillingRequestDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdatePolicyBillingRequestDto
22
+ */
23
+ 'status': UpdatePolicyBillingRequestDtoStatusEnum;
24
+ }
25
+ export declare const UpdatePolicyBillingRequestDtoStatusEnum: {
26
+ readonly Invoiced: "invoiced";
27
+ readonly Pending: "pending";
28
+ readonly Terminated: "terminated";
29
+ readonly Withdrawn: "withdrawn";
30
+ readonly Paused: "paused";
31
+ };
32
+ export type UpdatePolicyBillingRequestDtoStatusEnum = typeof UpdatePolicyBillingRequestDtoStatusEnum[keyof typeof UpdatePolicyBillingRequestDtoStatusEnum];
@@ -13,3 +13,11 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdatePolicyBillingRequestDtoStatusEnum = void 0;
17
+ exports.UpdatePolicyBillingRequestDtoStatusEnum = {
18
+ Invoiced: 'invoiced',
19
+ Pending: 'pending',
20
+ Terminated: 'terminated',
21
+ Withdrawn: 'withdrawn',
22
+ Paused: 'paused'
23
+ };
@@ -33,18 +33,6 @@ export interface CreateInvoiceRequestDto {
33
33
  * @memberof CreateInvoiceRequestDto
34
34
  */
35
35
  'policyCode': string;
36
- /**
37
- * Policy number.
38
- * @type {string}
39
- * @memberof CreateInvoiceRequestDto
40
- */
41
- 'policyNumber': string;
42
- /**
43
- * Account number.
44
- * @type {string}
45
- * @memberof CreateInvoiceRequestDto
46
- */
47
- 'accountNumber': string;
48
36
  /**
49
37
  * Type of the invoice.
50
38
  * @type {string}
@@ -20,24 +20,12 @@
20
20
  * @interface CreateItemRequestDto
21
21
  */
22
22
  export interface CreateItemRequestDto {
23
- /**
24
- * Premium formula id
25
- * @type {number}
26
- * @memberof CreateItemRequestDto
27
- */
28
- 'premiumFormulaId': number;
29
23
  /**
30
24
  * Name
31
25
  * @type {string}
32
26
  * @memberof CreateItemRequestDto
33
27
  */
34
28
  'name': string;
35
- /**
36
- * Group
37
- * @type {string}
38
- * @memberof CreateItemRequestDto
39
- */
40
- 'group': string;
41
29
  /**
42
30
  * Quantity
43
31
  * @type {number}
@@ -50,63 +38,5 @@ export interface CreateItemRequestDto {
50
38
  * @memberof CreateItemRequestDto
51
39
  */
52
40
  'pricePerUnit': number;
53
- /**
54
- * Invoice unit
55
- * @type {string}
56
- * @memberof CreateItemRequestDto
57
- */
58
- 'unit': CreateItemRequestDtoUnitEnum;
59
- /**
60
- * Unique identifier of the tax that this object belongs to.
61
- * @type {string}
62
- * @memberof CreateItemRequestDto
63
- */
64
- 'taxCode': string;
65
- /**
66
- * Tax rate
67
- * @type {number}
68
- * @memberof CreateItemRequestDto
69
- */
70
- 'taxRate': number;
71
- /**
72
- * Type of Premium item.
73
- * @type {string}
74
- * @memberof CreateItemRequestDto
75
- */
76
- 'itemType': CreateItemRequestDtoItemTypeEnum;
77
- /**
78
- * Visibility of Premium item.
79
- * @type {string}
80
- * @memberof CreateItemRequestDto
81
- */
82
- 'visibility': CreateItemRequestDtoVisibilityEnum;
83
41
  }
84
42
 
85
- export const CreateItemRequestDtoUnitEnum = {
86
- Day: 'day',
87
- Week: 'week',
88
- Month: 'month',
89
- Quarter: 'quarter',
90
- Year: 'year',
91
- OneTimePayment: 'oneTimePayment'
92
- } as const;
93
-
94
- export type CreateItemRequestDtoUnitEnum = typeof CreateItemRequestDtoUnitEnum[keyof typeof CreateItemRequestDtoUnitEnum];
95
- export const CreateItemRequestDtoItemTypeEnum = {
96
- Netto: 'netto',
97
- Commission: 'commission',
98
- Tax: 'tax',
99
- Discount: 'discount',
100
- Brutto: 'brutto',
101
- Other: 'other'
102
- } as const;
103
-
104
- export type CreateItemRequestDtoItemTypeEnum = typeof CreateItemRequestDtoItemTypeEnum[keyof typeof CreateItemRequestDtoItemTypeEnum];
105
- export const CreateItemRequestDtoVisibilityEnum = {
106
- Public: 'public',
107
- Internal: 'internal'
108
- } as const;
109
-
110
- export type CreateItemRequestDtoVisibilityEnum = typeof CreateItemRequestDtoVisibilityEnum[keyof typeof CreateItemRequestDtoVisibilityEnum];
111
-
112
-
@@ -0,0 +1,59 @@
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 CreatePolicyBillingRequestDto
21
+ */
22
+ export interface CreatePolicyBillingRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CreatePolicyBillingRequestDto
27
+ */
28
+ 'policyCode': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CreatePolicyBillingRequestDto
33
+ */
34
+ 'nextBillingDate': string;
35
+ /**
36
+ *
37
+ * @type {object}
38
+ * @memberof CreatePolicyBillingRequestDto
39
+ */
40
+ 'isInvoiced': object;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof CreatePolicyBillingRequestDto
45
+ */
46
+ 'status': CreatePolicyBillingRequestDtoStatusEnum;
47
+ }
48
+
49
+ export const CreatePolicyBillingRequestDtoStatusEnum = {
50
+ Invoiced: 'invoiced',
51
+ Pending: 'pending',
52
+ Terminated: 'terminated',
53
+ Withdrawn: 'withdrawn',
54
+ Paused: 'paused'
55
+ } as const;
56
+
57
+ export type CreatePolicyBillingRequestDtoStatusEnum = typeof CreatePolicyBillingRequestDtoStatusEnum[keyof typeof CreatePolicyBillingRequestDtoStatusEnum];
58
+
59
+
package/models/index.ts CHANGED
@@ -12,6 +12,7 @@ export * from './create-invoice-request-dto';
12
12
  export * from './create-invoice-response-class';
13
13
  export * from './create-invoice-status-request-dto';
14
14
  export * from './create-item-request-dto';
15
+ export * from './create-policy-billing-request-dto';
15
16
  export * from './create-termination-invoice-request-dto';
16
17
  export * from './get-invoice-response-class';
17
18
  export * from './inline-response200';
@@ -22,10 +23,8 @@ export * from './invoice-payment-class';
22
23
  export * from './invoice-payments-class';
23
24
  export * from './invoice-status-class';
24
25
  export * from './list-invoices-response-class';
25
- export * from './list-policies-billing-dates-response-class';
26
26
  export * from './list-request-dto';
27
27
  export * from './omit-type-class';
28
- export * from './policy-billing-date-class';
29
28
  export * from './policy-dto';
30
29
  export * from './policy-object-dto';
31
30
  export * from './policy-premium-dto';
@@ -34,3 +33,4 @@ export * from './policy-version-dto';
34
33
  export * from './premium-formula-dto';
35
34
  export * from './revert-invoice-request-dto';
36
35
  export * from './timeslice-dto';
36
+ export * from './update-policy-billing-request-dto';
@@ -0,0 +1,41 @@
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 UpdatePolicyBillingRequestDto
21
+ */
22
+ export interface UpdatePolicyBillingRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof UpdatePolicyBillingRequestDto
27
+ */
28
+ 'status': UpdatePolicyBillingRequestDtoStatusEnum;
29
+ }
30
+
31
+ export const UpdatePolicyBillingRequestDtoStatusEnum = {
32
+ Invoiced: 'invoiced',
33
+ Pending: 'pending',
34
+ Terminated: 'terminated',
35
+ Withdrawn: 'withdrawn',
36
+ Paused: 'paused'
37
+ } as const;
38
+
39
+ export type UpdatePolicyBillingRequestDtoStatusEnum = typeof UpdatePolicyBillingRequestDtoStatusEnum[keyof typeof UpdatePolicyBillingRequestDtoStatusEnum];
40
+
41
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.29.1-beta.2",
3
+ "version": "1.29.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,31 +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
- import { PolicyBillingDateClass } from './policy-billing-date-class';
13
- /**
14
- *
15
- * @export
16
- * @interface ListPoliciesBillingDatesResponseClass
17
- */
18
- export interface ListPoliciesBillingDatesResponseClass {
19
- /**
20
- * Invoices list items.
21
- * @type {Array<PolicyBillingDateClass>}
22
- * @memberof ListPoliciesBillingDatesResponseClass
23
- */
24
- 'items': Array<PolicyBillingDateClass>;
25
- /**
26
- * Next page token.
27
- * @type {string}
28
- * @memberof ListPoliciesBillingDatesResponseClass
29
- */
30
- 'nextPageToken': string;
31
- }
@@ -1,54 +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 PolicyBillingDateClass
16
- */
17
- export interface PolicyBillingDateClass {
18
- /**
19
- * Internal unique identifier for the object. You should not have to use this, use code instead.
20
- * @type {number}
21
- * @memberof PolicyBillingDateClass
22
- */
23
- 'id': number;
24
- /**
25
- * Unique identifier of the policy that this object belongs to.
26
- * @type {string}
27
- * @memberof PolicyBillingDateClass
28
- */
29
- 'policyCode': string;
30
- /**
31
- * The next billing date this policy will be invoiced.
32
- * @type {string}
33
- * @memberof PolicyBillingDateClass
34
- */
35
- 'nextBillingDate': string;
36
- /**
37
- * This field will be set to true once an invoice has been created on this specific billing date. It is there to avoid a policy being invoiced multiple times in case of retry.
38
- * @type {boolean}
39
- * @memberof PolicyBillingDateClass
40
- */
41
- 'isInvoiced': boolean;
42
- /**
43
- * Identifier of the user who created the record.
44
- * @type {string}
45
- * @memberof PolicyBillingDateClass
46
- */
47
- 'createdBy': string;
48
- /**
49
- * Identifier of the user who last updated the record.
50
- * @type {string}
51
- * @memberof PolicyBillingDateClass
52
- */
53
- 'updatedBy': string;
54
- }
@@ -1,37 +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
- import { PolicyBillingDateClass } from './policy-billing-date-class';
17
-
18
- /**
19
- *
20
- * @export
21
- * @interface ListPoliciesBillingDatesResponseClass
22
- */
23
- export interface ListPoliciesBillingDatesResponseClass {
24
- /**
25
- * Invoices list items.
26
- * @type {Array<PolicyBillingDateClass>}
27
- * @memberof ListPoliciesBillingDatesResponseClass
28
- */
29
- 'items': Array<PolicyBillingDateClass>;
30
- /**
31
- * Next page token.
32
- * @type {string}
33
- * @memberof ListPoliciesBillingDatesResponseClass
34
- */
35
- 'nextPageToken': string;
36
- }
37
-
@@ -1,60 +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 PolicyBillingDateClass
21
- */
22
- export interface PolicyBillingDateClass {
23
- /**
24
- * Internal unique identifier for the object. You should not have to use this, use code instead.
25
- * @type {number}
26
- * @memberof PolicyBillingDateClass
27
- */
28
- 'id': number;
29
- /**
30
- * Unique identifier of the policy that this object belongs to.
31
- * @type {string}
32
- * @memberof PolicyBillingDateClass
33
- */
34
- 'policyCode': string;
35
- /**
36
- * The next billing date this policy will be invoiced.
37
- * @type {string}
38
- * @memberof PolicyBillingDateClass
39
- */
40
- 'nextBillingDate': string;
41
- /**
42
- * This field will be set to true once an invoice has been created on this specific billing date. It is there to avoid a policy being invoiced multiple times in case of retry.
43
- * @type {boolean}
44
- * @memberof PolicyBillingDateClass
45
- */
46
- 'isInvoiced': boolean;
47
- /**
48
- * Identifier of the user who created the record.
49
- * @type {string}
50
- * @memberof PolicyBillingDateClass
51
- */
52
- 'createdBy': string;
53
- /**
54
- * Identifier of the user who last updated the record.
55
- * @type {string}
56
- * @memberof PolicyBillingDateClass
57
- */
58
- 'updatedBy': string;
59
- }
60
-