@emilgroup/billing-sdk-node 1.17.0 → 1.18.0

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 (104) hide show
  1. package/.openapi-generator/FILES +3 -17
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +2 -4
  4. package/api/draft-invoice-api.ts +346 -0
  5. package/api/estimated-invoices-api.ts +112 -11
  6. package/api/initial-invoices-api.ts +2 -4
  7. package/api/invoices-api.ts +110 -222
  8. package/api/recurring-invoices-api.ts +2 -4
  9. package/api.ts +2 -0
  10. package/dist/api/correction-invoices-api.d.ts +3 -4
  11. package/dist/api/draft-invoice-api.d.ts +185 -0
  12. package/dist/api/draft-invoice-api.js +396 -0
  13. package/dist/api/estimated-invoices-api.d.ts +66 -12
  14. package/dist/api/estimated-invoices-api.js +97 -4
  15. package/dist/api/initial-invoices-api.d.ts +3 -4
  16. package/dist/api/invoices-api.d.ts +97 -157
  17. package/dist/api/invoices-api.js +70 -163
  18. package/dist/api/recurring-invoices-api.d.ts +3 -4
  19. package/dist/api.d.ts +1 -0
  20. package/dist/api.js +1 -0
  21. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  22. package/dist/models/{invoice-class.js → create-draft-invoice-request-dto.js} +2 -7
  23. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  24. package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
  25. package/dist/models/create-invoice-payment-request-dto.d.ts +2 -2
  26. package/dist/models/create-invoice-request-dto.d.ts +5 -5
  27. package/dist/models/index.d.ts +2 -17
  28. package/dist/models/index.js +2 -17
  29. package/dist/models/inline-response200.d.ts +6 -6
  30. package/dist/models/inline-response503.d.ts +6 -6
  31. package/dist/models/policy-dto.d.ts +5 -19
  32. package/dist/models/policy-dto.js +0 -8
  33. package/dist/models/policy-object-dto.d.ts +14 -20
  34. package/dist/models/policy-premium-dto.d.ts +2 -2
  35. package/dist/models/policy-premium-item-dto.d.ts +2 -2
  36. package/dist/models/policy-version-dto.d.ts +9 -3
  37. package/dist/models/premium-formula-dto.d.ts +2 -2
  38. package/dist/models/timeslice-dto.d.ts +1 -1
  39. package/models/create-draft-invoice-request-dto.ts +98 -0
  40. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  41. package/models/create-estimated-invoice-request-dto.ts +1 -7
  42. package/models/create-invoice-payment-request-dto.ts +2 -2
  43. package/models/create-invoice-request-dto.ts +5 -5
  44. package/models/index.ts +2 -17
  45. package/models/inline-response200.ts +6 -6
  46. package/models/inline-response503.ts +6 -6
  47. package/models/policy-dto.ts +5 -22
  48. package/models/policy-object-dto.ts +14 -20
  49. package/models/policy-premium-dto.ts +2 -2
  50. package/models/policy-premium-item-dto.ts +2 -2
  51. package/models/policy-version-dto.ts +9 -3
  52. package/models/premium-formula-dto.ts +2 -2
  53. package/models/timeslice-dto.ts +1 -1
  54. package/package.json +1 -1
  55. package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
  56. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
  57. package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
  58. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
  59. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  60. package/dist/models/create-invoice-payment-response-class.d.ts +0 -25
  61. package/dist/models/create-invoice-payment-response-class.js +0 -15
  62. package/dist/models/create-invoice-response-class.d.ts +0 -25
  63. package/dist/models/create-invoice-response-class.js +0 -15
  64. package/dist/models/create-invoice-status-request-dto.d.ts +0 -36
  65. package/dist/models/create-invoice-status-request-dto.js +0 -21
  66. package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
  67. package/dist/models/create-termination-invoice-request-dto.js +0 -15
  68. package/dist/models/get-invoice-response-class.d.ts +0 -25
  69. package/dist/models/get-invoice-response-class.js +0 -15
  70. package/dist/models/invoice-class.d.ts +0 -170
  71. package/dist/models/invoice-item-class.d.ts +0 -129
  72. package/dist/models/invoice-item-class.js +0 -24
  73. package/dist/models/invoice-payment-class.d.ts +0 -102
  74. package/dist/models/invoice-payment-class.js +0 -15
  75. package/dist/models/invoice-payments-class.d.ts +0 -25
  76. package/dist/models/invoice-payments-class.js +0 -15
  77. package/dist/models/invoice-status-class.d.ts +0 -48
  78. package/dist/models/invoice-status-class.js +0 -21
  79. package/dist/models/list-invoices-response-class.d.ts +0 -31
  80. package/dist/models/list-invoices-response-class.js +0 -15
  81. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  82. package/dist/models/list-policies-billing-dates-response-class.js +0 -15
  83. package/dist/models/omit-type-class.d.ts +0 -156
  84. package/dist/models/omit-type-class.js +0 -31
  85. package/dist/models/policy-billing-date-class.d.ts +0 -42
  86. package/dist/models/policy-billing-date-class.js +0 -15
  87. package/models/create-correction-invoices-response-class.ts +0 -31
  88. package/models/create-custom-estimated-invoice-response-class.ts +0 -30
  89. package/models/create-estimated-invoice-response-class.ts +0 -37
  90. package/models/create-invoice-payment-response-class.ts +0 -31
  91. package/models/create-invoice-response-class.ts +0 -31
  92. package/models/create-invoice-status-request-dto.ts +0 -45
  93. package/models/create-termination-invoice-request-dto.ts +0 -60
  94. package/models/get-invoice-response-class.ts +0 -31
  95. package/models/invoice-class.ts +0 -180
  96. package/models/invoice-item-class.ts +0 -138
  97. package/models/invoice-payment-class.ts +0 -108
  98. package/models/invoice-payments-class.ts +0 -31
  99. package/models/invoice-status-class.ts +0 -57
  100. package/models/list-invoices-response-class.ts +0 -37
  101. package/models/list-policies-billing-dates-response-class.ts +0 -37
  102. package/models/omit-type-class.ts +0 -166
  103. package/models/policy-billing-date-class.ts +0 -48
  104. /package/dist/models/{create-correction-invoices-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
@@ -27,11 +27,5 @@ export interface CreateEstimatedInvoiceRequestDto {
27
27
  * @type {object}
28
28
  * @memberof CreateEstimatedInvoiceRequestDto
29
29
  */
30
- 'metadata'?: object;
31
- /**
32
- *
33
- * @type {boolean}
34
- * @memberof CreateEstimatedInvoiceRequestDto
35
- */
36
- 'calculateProRata'?: boolean;
30
+ 'metadata': object;
37
31
  }
@@ -38,9 +38,9 @@ export interface CreateInvoicePaymentRequestDto {
38
38
  * @type {string}
39
39
  * @memberof CreateInvoicePaymentRequestDto
40
40
  */
41
- 'comment'?: string;
41
+ 'comment': string;
42
42
  /**
43
- * Payment id.
43
+ * Unique identifier referencing the payment.
44
44
  * @type {number}
45
45
  * @memberof CreateInvoicePaymentRequestDto
46
46
  */
@@ -20,7 +20,7 @@ export interface CreateInvoiceRequestDto {
20
20
  * @type {string}
21
21
  * @memberof CreateInvoiceRequestDto
22
22
  */
23
- 'invoiceNumber'?: string;
23
+ 'invoiceNumber': string;
24
24
  /**
25
25
  * Account number.
26
26
  * @type {string}
@@ -50,15 +50,15 @@ export interface CreateInvoiceRequestDto {
50
50
  * @type {object}
51
51
  * @memberof CreateInvoiceRequestDto
52
52
  */
53
- 'metadata'?: object;
53
+ 'metadata': object;
54
54
  /**
55
- * This is the date from which the invoice item interval starts.
55
+ * This is the date from which the invoice interval starts.
56
56
  * @type {string}
57
57
  * @memberof CreateInvoiceRequestDto
58
58
  */
59
59
  'billingIntervalFrom': string;
60
60
  /**
61
- * This is the date that the invoice item interval ends.
61
+ * This is the date that the invoice interval ends.
62
62
  * @type {string}
63
63
  * @memberof CreateInvoiceRequestDto
64
64
  */
@@ -68,7 +68,7 @@ export interface CreateInvoiceRequestDto {
68
68
  * @type {string}
69
69
  * @memberof CreateInvoiceRequestDto
70
70
  */
71
- 'dueDate'?: string;
71
+ 'dueDate': string;
72
72
  }
73
73
  export declare const CreateInvoiceRequestDtoTypeEnum: {
74
74
  readonly Initial: "initial";
@@ -1,27 +1,12 @@
1
- export * from './create-correction-invoices-response-class';
2
1
  export * from './create-custom-estimated-invoice-request-dto';
3
- export * from './create-custom-estimated-invoice-response-class';
2
+ export * from './create-draft-invoice-request-dto';
3
+ export * from './create-estimated-invoice-for-interval-request-dto';
4
4
  export * from './create-estimated-invoice-request-dto';
5
- export * from './create-estimated-invoice-response-class';
6
5
  export * from './create-invoice-payment-request-dto';
7
- export * from './create-invoice-payment-response-class';
8
6
  export * from './create-invoice-request-dto';
9
- export * from './create-invoice-response-class';
10
- export * from './create-invoice-status-request-dto';
11
- export * from './create-termination-invoice-request-dto';
12
- export * from './get-invoice-response-class';
13
7
  export * from './inline-response200';
14
8
  export * from './inline-response503';
15
- export * from './invoice-class';
16
- export * from './invoice-item-class';
17
- export * from './invoice-payment-class';
18
- export * from './invoice-payments-class';
19
- export * from './invoice-status-class';
20
- export * from './list-invoices-response-class';
21
- export * from './list-policies-billing-dates-response-class';
22
9
  export * from './list-request-dto';
23
- export * from './omit-type-class';
24
- export * from './policy-billing-date-class';
25
10
  export * from './policy-dto';
26
11
  export * from './policy-object-dto';
27
12
  export * from './policy-premium-dto';
@@ -14,30 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./create-correction-invoices-response-class"), exports);
18
17
  __exportStar(require("./create-custom-estimated-invoice-request-dto"), exports);
19
- __exportStar(require("./create-custom-estimated-invoice-response-class"), exports);
18
+ __exportStar(require("./create-draft-invoice-request-dto"), exports);
19
+ __exportStar(require("./create-estimated-invoice-for-interval-request-dto"), exports);
20
20
  __exportStar(require("./create-estimated-invoice-request-dto"), exports);
21
- __exportStar(require("./create-estimated-invoice-response-class"), exports);
22
21
  __exportStar(require("./create-invoice-payment-request-dto"), exports);
23
- __exportStar(require("./create-invoice-payment-response-class"), exports);
24
22
  __exportStar(require("./create-invoice-request-dto"), exports);
25
- __exportStar(require("./create-invoice-response-class"), exports);
26
- __exportStar(require("./create-invoice-status-request-dto"), exports);
27
- __exportStar(require("./create-termination-invoice-request-dto"), exports);
28
- __exportStar(require("./get-invoice-response-class"), exports);
29
23
  __exportStar(require("./inline-response200"), exports);
30
24
  __exportStar(require("./inline-response503"), exports);
31
- __exportStar(require("./invoice-class"), exports);
32
- __exportStar(require("./invoice-item-class"), exports);
33
- __exportStar(require("./invoice-payment-class"), exports);
34
- __exportStar(require("./invoice-payments-class"), exports);
35
- __exportStar(require("./invoice-status-class"), exports);
36
- __exportStar(require("./list-invoices-response-class"), exports);
37
- __exportStar(require("./list-policies-billing-dates-response-class"), exports);
38
25
  __exportStar(require("./list-request-dto"), exports);
39
- __exportStar(require("./omit-type-class"), exports);
40
- __exportStar(require("./policy-billing-date-class"), exports);
41
26
  __exportStar(require("./policy-dto"), exports);
42
27
  __exportStar(require("./policy-object-dto"), exports);
43
28
  __exportStar(require("./policy-premium-dto"), exports);
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -63,7 +63,7 @@ export interface PolicyDto {
63
63
  * @type {string}
64
64
  * @memberof PolicyDto
65
65
  */
66
- 'status': PolicyDtoStatusEnum;
66
+ 'status': string;
67
67
  /**
68
68
  * Policy holder.
69
69
  * @type {string}
@@ -95,29 +95,15 @@ export interface PolicyDto {
95
95
  */
96
96
  'productName': string;
97
97
  /**
98
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
98
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
99
99
  * @type {string}
100
100
  * @memberof PolicyDto
101
101
  */
102
102
  'productSlug': string;
103
103
  /**
104
- *
105
- * @type {string}
106
- * @memberof PolicyDto
107
- */
108
- 'policyStartDate': string;
109
- /**
110
- *
111
- * @type {string}
104
+ * Linked partners.
105
+ * @type {Array<string>}
112
106
  * @memberof PolicyDto
113
107
  */
114
- 'ern': string;
108
+ 'partnerLinks': Array<string>;
115
109
  }
116
- export declare const PolicyDtoStatusEnum: {
117
- readonly Active: "ACTIVE";
118
- readonly Withdrawn: "WITHDRAWN";
119
- readonly Terminated: "TERMINATED";
120
- readonly Suspended: "SUSPENDED";
121
- readonly Pending: "PENDING";
122
- };
123
- export type PolicyDtoStatusEnum = typeof PolicyDtoStatusEnum[keyof typeof PolicyDtoStatusEnum];
@@ -13,11 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PolicyDtoStatusEnum = void 0;
17
- exports.PolicyDtoStatusEnum = {
18
- Active: 'ACTIVE',
19
- Withdrawn: 'WITHDRAWN',
20
- Terminated: 'TERMINATED',
21
- Suspended: 'SUSPENDED',
22
- Pending: 'PENDING'
23
- };
@@ -28,45 +28,39 @@ export interface PolicyObjectDto {
28
28
  */
29
29
  'insuredObjectName': string;
30
30
  /**
31
- * Insured object summary.
31
+ * Insured object label.
32
32
  * @type {string}
33
33
  * @memberof PolicyObjectDto
34
34
  */
35
- 'summary': string;
35
+ 'insuredObjectLabel': string;
36
36
  /**
37
- * Insured object data.
38
- * @type {object}
37
+ * A boolean value indicating whether the insured object accepts multiple objects.
38
+ * @type {boolean}
39
39
  * @memberof PolicyObjectDto
40
40
  */
41
- 'data': object;
41
+ 'isMultiInsuredObject': boolean;
42
42
  /**
43
- * Time at which the object was created.
43
+ * Insured object summary.
44
44
  * @type {string}
45
45
  * @memberof PolicyObjectDto
46
46
  */
47
- 'createdAt'?: string;
47
+ 'summary': string;
48
48
  /**
49
- * Time at which the object was updated.
50
- * @type {string}
49
+ * Insured object data.
50
+ * @type {object}
51
51
  * @memberof PolicyObjectDto
52
52
  */
53
- 'updatedAt'?: string;
53
+ 'data': object;
54
54
  /**
55
- *
55
+ * Time at which the object was created.
56
56
  * @type {string}
57
57
  * @memberof PolicyObjectDto
58
58
  */
59
- 'code': string;
59
+ 'createdAt': string;
60
60
  /**
61
- *
61
+ * Time at which the object was updated.
62
62
  * @type {string}
63
63
  * @memberof PolicyObjectDto
64
64
  */
65
- 'insuredObjectLabel': string;
66
- /**
67
- *
68
- * @type {boolean}
69
- * @memberof PolicyObjectDto
70
- */
71
- 'isMultiInsuredObject': boolean;
65
+ 'updatedAt': string;
72
66
  }
@@ -27,13 +27,13 @@ export interface PolicyPremiumDto {
27
27
  * @type {string}
28
28
  * @memberof PolicyPremiumDto
29
29
  */
30
- 'createdAt'?: string;
30
+ 'createdAt': string;
31
31
  /**
32
32
  * Time at which the object was updated.
33
33
  * @type {string}
34
34
  * @memberof PolicyPremiumDto
35
35
  */
36
- 'updatedAt'?: string;
36
+ 'updatedAt': string;
37
37
  /**
38
38
  * Premium Items.
39
39
  * @type {Array<PolicyPremiumItemDto>}
@@ -39,7 +39,7 @@ export interface PolicyPremiumItemDto {
39
39
  * @type {string}
40
40
  * @memberof PolicyPremiumItemDto
41
41
  */
42
- 'updatedAt'?: string;
42
+ 'updatedAt': string;
43
43
  /**
44
44
  * Item premium formula entity.
45
45
  * @type {PremiumFormulaDto}
@@ -51,5 +51,5 @@ export interface PolicyPremiumItemDto {
51
51
  * @type {boolean}
52
52
  * @memberof PolicyPremiumItemDto
53
53
  */
54
- 'isOverride'?: boolean;
54
+ 'isOverride': boolean;
55
55
  }
@@ -33,23 +33,29 @@ export interface PolicyVersionDto {
33
33
  * @type {object}
34
34
  * @memberof PolicyVersionDto
35
35
  */
36
- 'metadata'?: object;
36
+ 'metadata': object;
37
37
  /**
38
38
  * Time at which the object was created.
39
39
  * @type {string}
40
40
  * @memberof PolicyVersionDto
41
41
  */
42
- 'createdAt'?: string;
42
+ 'createdAt': string;
43
43
  /**
44
44
  * Time at which the object was updated.
45
45
  * @type {string}
46
46
  * @memberof PolicyVersionDto
47
47
  */
48
- 'updatedAt'?: string;
48
+ 'updatedAt': string;
49
49
  /**
50
50
  * Policy timeline.
51
51
  * @type {Array<TimesliceDto>}
52
52
  * @memberof PolicyVersionDto
53
53
  */
54
54
  'timeline': Array<TimesliceDto>;
55
+ /**
56
+ * Is this a draft policy version?
57
+ * @type {boolean}
58
+ * @memberof PolicyVersionDto
59
+ */
60
+ 'isDraft': boolean;
55
61
  }
@@ -62,11 +62,11 @@ export interface PremiumFormulaDto {
62
62
  * @type {string}
63
63
  * @memberof PremiumFormulaDto
64
64
  */
65
- 'createdAt'?: string;
65
+ 'createdAt': string;
66
66
  /**
67
67
  * Time at which the object was updated.
68
68
  * @type {string}
69
69
  * @memberof PremiumFormulaDto
70
70
  */
71
- 'updatedAt'?: string;
71
+ 'updatedAt': string;
72
72
  }
@@ -40,7 +40,7 @@ export interface TimesliceDto {
40
40
  * @type {string}
41
41
  * @memberof TimesliceDto
42
42
  */
43
- 'to'?: string;
43
+ 'to': string;
44
44
  /**
45
45
  * Time at which the object was created.
46
46
  * @type {string}
@@ -0,0 +1,98 @@
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 CreateDraftInvoiceRequestDto
21
+ */
22
+ export interface CreateDraftInvoiceRequestDto {
23
+ /**
24
+ * Invoice type.
25
+ * @type {string}
26
+ * @memberof CreateDraftInvoiceRequestDto
27
+ */
28
+ 'type': CreateDraftInvoiceRequestDtoTypeEnum;
29
+ /**
30
+ * Unique number for the invoice. If not set, the system will automatically assign a value.
31
+ * @type {string}
32
+ * @memberof CreateDraftInvoiceRequestDto
33
+ */
34
+ 'invoiceNumber'?: string;
35
+ /**
36
+ * Unique identifier of the policy that this object belongs to.
37
+ * @type {string}
38
+ * @memberof CreateDraftInvoiceRequestDto
39
+ */
40
+ 'policyCode': string;
41
+ /**
42
+ * Account number.
43
+ * @type {string}
44
+ * @memberof CreateDraftInvoiceRequestDto
45
+ */
46
+ 'accountNumber': string;
47
+ /**
48
+ * Metadata contains extra information that the object would need for specific cases.
49
+ * @type {object}
50
+ * @memberof CreateDraftInvoiceRequestDto
51
+ */
52
+ 'metadata': object;
53
+ /**
54
+ * This is the date from which the invoice interval starts.
55
+ * @type {string}
56
+ * @memberof CreateDraftInvoiceRequestDto
57
+ */
58
+ 'billingIntervalFrom'?: string;
59
+ /**
60
+ * This is the date that the invoice interval ends.
61
+ * @type {string}
62
+ * @memberof CreateDraftInvoiceRequestDto
63
+ */
64
+ 'billingIntervalTo'?: string;
65
+ /**
66
+ * Invoice due date.
67
+ * @type {string}
68
+ * @memberof CreateDraftInvoiceRequestDto
69
+ */
70
+ 'dueDate'?: string;
71
+ /**
72
+ * Policy number.
73
+ * @type {string}
74
+ * @memberof CreateDraftInvoiceRequestDto
75
+ */
76
+ 'policyNumber'?: string;
77
+ /**
78
+ * A boolean flag indicating whether the invoice should be calculated on a pro rata basis. When true, the invoice amount is adjusted proportionally based on the duration of service.
79
+ * @type {object}
80
+ * @memberof CreateDraftInvoiceRequestDto
81
+ */
82
+ 'calculateProRata'?: object;
83
+ }
84
+
85
+ export const CreateDraftInvoiceRequestDtoTypeEnum = {
86
+ Initial: 'initial',
87
+ Recurring: 'recurring',
88
+ Correction: 'correction',
89
+ Estimated: 'estimated',
90
+ Penalty: 'penalty',
91
+ Other: 'other',
92
+ Withdraw: 'withdraw',
93
+ Final: 'final'
94
+ } as const;
95
+
96
+ export type CreateDraftInvoiceRequestDtoTypeEnum = typeof CreateDraftInvoiceRequestDtoTypeEnum[keyof typeof CreateDraftInvoiceRequestDtoTypeEnum];
97
+
98
+
@@ -0,0 +1,55 @@
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 { PolicyDto } from './policy-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateEstimatedInvoiceForIntervalRequestDto
22
+ */
23
+ export interface CreateEstimatedInvoiceForIntervalRequestDto {
24
+ /**
25
+ * The policy object that the invoice is attached to. This contains all relevant policy details associated with this invoice.
26
+ * @type {PolicyDto}
27
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
28
+ */
29
+ 'policy': PolicyDto;
30
+ /**
31
+ * Metadata contains extra information that the object would need for specific cases.
32
+ * @type {object}
33
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
34
+ */
35
+ 'metadata'?: object;
36
+ /**
37
+ * A boolean flag indicating whether the invoice should be calculated on a pro rata basis. When true, the invoice amount is adjusted proportionally based on the duration of service.
38
+ * @type {boolean}
39
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
40
+ */
41
+ 'calculateProRata'?: boolean;
42
+ /**
43
+ * The start date of the billing interval. This is the date from which the invoice period begins.
44
+ * @type {string}
45
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
46
+ */
47
+ 'billingIntervalFrom': string;
48
+ /**
49
+ * The end date of the billing interval. This is the date until which the invoice period runs. Together with billingIntervalFrom, it defines the time period for which the invoice is issued.
50
+ * @type {string}
51
+ * @memberof CreateEstimatedInvoiceForIntervalRequestDto
52
+ */
53
+ 'billingIntervalTo': string;
54
+ }
55
+
@@ -32,12 +32,6 @@ export interface CreateEstimatedInvoiceRequestDto {
32
32
  * @type {object}
33
33
  * @memberof CreateEstimatedInvoiceRequestDto
34
34
  */
35
- 'metadata'?: object;
36
- /**
37
- *
38
- * @type {boolean}
39
- * @memberof CreateEstimatedInvoiceRequestDto
40
- */
41
- 'calculateProRata'?: boolean;
35
+ 'metadata': object;
42
36
  }
43
37
 
@@ -43,9 +43,9 @@ export interface CreateInvoicePaymentRequestDto {
43
43
  * @type {string}
44
44
  * @memberof CreateInvoicePaymentRequestDto
45
45
  */
46
- 'comment'?: string;
46
+ 'comment': string;
47
47
  /**
48
- * Payment id.
48
+ * Unique identifier referencing the payment.
49
49
  * @type {number}
50
50
  * @memberof CreateInvoicePaymentRequestDto
51
51
  */
@@ -25,7 +25,7 @@ export interface CreateInvoiceRequestDto {
25
25
  * @type {string}
26
26
  * @memberof CreateInvoiceRequestDto
27
27
  */
28
- 'invoiceNumber'?: string;
28
+ 'invoiceNumber': string;
29
29
  /**
30
30
  * Account number.
31
31
  * @type {string}
@@ -55,15 +55,15 @@ export interface CreateInvoiceRequestDto {
55
55
  * @type {object}
56
56
  * @memberof CreateInvoiceRequestDto
57
57
  */
58
- 'metadata'?: object;
58
+ 'metadata': object;
59
59
  /**
60
- * This is the date from which the invoice item interval starts.
60
+ * This is the date from which the invoice interval starts.
61
61
  * @type {string}
62
62
  * @memberof CreateInvoiceRequestDto
63
63
  */
64
64
  'billingIntervalFrom': string;
65
65
  /**
66
- * This is the date that the invoice item interval ends.
66
+ * This is the date that the invoice interval ends.
67
67
  * @type {string}
68
68
  * @memberof CreateInvoiceRequestDto
69
69
  */
@@ -73,7 +73,7 @@ export interface CreateInvoiceRequestDto {
73
73
  * @type {string}
74
74
  * @memberof CreateInvoiceRequestDto
75
75
  */
76
- 'dueDate'?: string;
76
+ 'dueDate': string;
77
77
  }
78
78
 
79
79
  export const CreateInvoiceRequestDtoTypeEnum = {
package/models/index.ts CHANGED
@@ -1,27 +1,12 @@
1
- export * from './create-correction-invoices-response-class';
2
1
  export * from './create-custom-estimated-invoice-request-dto';
3
- export * from './create-custom-estimated-invoice-response-class';
2
+ export * from './create-draft-invoice-request-dto';
3
+ export * from './create-estimated-invoice-for-interval-request-dto';
4
4
  export * from './create-estimated-invoice-request-dto';
5
- export * from './create-estimated-invoice-response-class';
6
5
  export * from './create-invoice-payment-request-dto';
7
- export * from './create-invoice-payment-response-class';
8
6
  export * from './create-invoice-request-dto';
9
- export * from './create-invoice-response-class';
10
- export * from './create-invoice-status-request-dto';
11
- export * from './create-termination-invoice-request-dto';
12
- export * from './get-invoice-response-class';
13
7
  export * from './inline-response200';
14
8
  export * from './inline-response503';
15
- export * from './invoice-class';
16
- export * from './invoice-item-class';
17
- export * from './invoice-payment-class';
18
- export * from './invoice-payments-class';
19
- export * from './invoice-status-class';
20
- export * from './list-invoices-response-class';
21
- export * from './list-policies-billing-dates-response-class';
22
9
  export * from './list-request-dto';
23
- export * from './omit-type-class';
24
- export * from './policy-billing-date-class';
25
10
  export * from './policy-dto';
26
11
  export * from './policy-object-dto';
27
12
  export * from './policy-premium-dto';