@emilgroup/billing-sdk 1.7.0 → 1.9.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 (31) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/dist/models/create-invoice-payment-request-dto.d.ts +54 -0
  4. package/dist/models/create-invoice-payment-request-dto.js +15 -0
  5. package/dist/models/create-invoice-request-dto.d.ts +6 -0
  6. package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
  7. package/dist/models/create-invoice-status-request-dto.js +2 -1
  8. package/dist/models/create-termination-invoice-request-dto.d.ts +6 -0
  9. package/dist/models/index.d.ts +3 -0
  10. package/dist/models/index.js +3 -0
  11. package/dist/models/invoice-class.d.ts +20 -0
  12. package/dist/models/invoice-class.js +2 -1
  13. package/dist/models/invoice-payment-class.d.ts +96 -0
  14. package/dist/models/invoice-payment-class.js +15 -0
  15. package/dist/models/invoice-payments-class.d.ts +25 -0
  16. package/dist/models/invoice-payments-class.js +15 -0
  17. package/dist/models/invoice-status-class.d.ts +1 -0
  18. package/dist/models/invoice-status-class.js +2 -1
  19. package/dist/models/omit-type-class.d.ts +20 -0
  20. package/dist/models/omit-type-class.js +2 -1
  21. package/models/create-invoice-payment-request-dto.ts +60 -0
  22. package/models/create-invoice-request-dto.ts +6 -0
  23. package/models/create-invoice-status-request-dto.ts +2 -1
  24. package/models/create-termination-invoice-request-dto.ts +6 -0
  25. package/models/index.ts +3 -0
  26. package/models/invoice-class.ts +21 -1
  27. package/models/invoice-payment-class.ts +102 -0
  28. package/models/invoice-payments-class.ts +31 -0
  29. package/models/invoice-status-class.ts +2 -1
  30. package/models/omit-type-class.ts +21 -1
  31. package/package.json +1 -1
@@ -19,6 +19,7 @@ models/create-custom-estimated-invoice-request-dto.ts
19
19
  models/create-custom-estimated-invoice-response-class.ts
20
20
  models/create-estimated-invoice-request-dto.ts
21
21
  models/create-estimated-invoice-response-class.ts
22
+ models/create-invoice-payment-request-dto.ts
22
23
  models/create-invoice-request-dto.ts
23
24
  models/create-invoice-response-class.ts
24
25
  models/create-invoice-status-request-dto.ts
@@ -29,6 +30,8 @@ models/inline-response200.ts
29
30
  models/inline-response503.ts
30
31
  models/invoice-class.ts
31
32
  models/invoice-item-class.ts
33
+ models/invoice-payment-class.ts
34
+ models/invoice-payments-class.ts
32
35
  models/invoice-status-class.ts
33
36
  models/list-invoices-response-class.ts
34
37
  models/list-policies-billing-dates-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.7.0 --save
20
+ npm install @emilgroup/billing-sdk@1.9.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk@1.7.0
24
+ yarn add @emilgroup/billing-sdk@1.9.0
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -0,0 +1,54 @@
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 CreateInvoicePaymentRequestDto
16
+ */
17
+ export interface CreateInvoicePaymentRequestDto {
18
+ /**
19
+ * Payment amount.
20
+ * @type {number}
21
+ * @memberof CreateInvoicePaymentRequestDto
22
+ */
23
+ 'transactionAmount': number;
24
+ /**
25
+ * Payment date.
26
+ * @type {string}
27
+ * @memberof CreateInvoicePaymentRequestDto
28
+ */
29
+ 'transactionDate': string;
30
+ /**
31
+ * Transaction reference.
32
+ * @type {string}
33
+ * @memberof CreateInvoicePaymentRequestDto
34
+ */
35
+ 'transactionReference': string;
36
+ /**
37
+ * Payment comment.
38
+ * @type {string}
39
+ * @memberof CreateInvoicePaymentRequestDto
40
+ */
41
+ 'comment'?: string;
42
+ /**
43
+ * Payment id.
44
+ * @type {number}
45
+ * @memberof CreateInvoicePaymentRequestDto
46
+ */
47
+ 'paymentId': number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CreateInvoicePaymentRequestDto
52
+ */
53
+ 'invoiceId': number;
54
+ }
@@ -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 });
@@ -33,6 +33,12 @@ 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;
36
42
  /**
37
43
  * Type of the invoice.
38
44
  * @type {string}
@@ -31,5 +31,6 @@ export interface CreateInvoiceStatusRequestDto {
31
31
  export declare const CreateInvoiceStatusRequestDtoStatusEnum: {
32
32
  readonly Open: "open";
33
33
  readonly Paid: "paid";
34
+ readonly PartiallyPaid: "partially-paid";
34
35
  };
35
36
  export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
@@ -16,5 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateInvoiceStatusRequestDtoStatusEnum = void 0;
17
17
  exports.CreateInvoiceStatusRequestDtoStatusEnum = {
18
18
  Open: 'open',
19
- Paid: 'paid'
19
+ Paid: 'paid',
20
+ PartiallyPaid: 'partially-paid'
20
21
  };
@@ -45,4 +45,10 @@ export interface CreateTerminationInvoiceRequestDto {
45
45
  * @memberof CreateTerminationInvoiceRequestDto
46
46
  */
47
47
  'billingIntervalTo': string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateTerminationInvoiceRequestDto
52
+ */
53
+ 'policyNumber': string;
48
54
  }
@@ -3,6 +3,7 @@ export * from './create-custom-estimated-invoice-request-dto';
3
3
  export * from './create-custom-estimated-invoice-response-class';
4
4
  export * from './create-estimated-invoice-request-dto';
5
5
  export * from './create-estimated-invoice-response-class';
6
+ export * from './create-invoice-payment-request-dto';
6
7
  export * from './create-invoice-request-dto';
7
8
  export * from './create-invoice-response-class';
8
9
  export * from './create-invoice-status-request-dto';
@@ -12,6 +13,8 @@ export * from './inline-response200';
12
13
  export * from './inline-response503';
13
14
  export * from './invoice-class';
14
15
  export * from './invoice-item-class';
16
+ export * from './invoice-payment-class';
17
+ export * from './invoice-payments-class';
15
18
  export * from './invoice-status-class';
16
19
  export * from './list-invoices-response-class';
17
20
  export * from './list-policies-billing-dates-response-class';
@@ -19,6 +19,7 @@ __exportStar(require("./create-custom-estimated-invoice-request-dto"), exports);
19
19
  __exportStar(require("./create-custom-estimated-invoice-response-class"), exports);
20
20
  __exportStar(require("./create-estimated-invoice-request-dto"), exports);
21
21
  __exportStar(require("./create-estimated-invoice-response-class"), exports);
22
+ __exportStar(require("./create-invoice-payment-request-dto"), exports);
22
23
  __exportStar(require("./create-invoice-request-dto"), exports);
23
24
  __exportStar(require("./create-invoice-response-class"), exports);
24
25
  __exportStar(require("./create-invoice-status-request-dto"), exports);
@@ -28,6 +29,8 @@ __exportStar(require("./inline-response200"), exports);
28
29
  __exportStar(require("./inline-response503"), exports);
29
30
  __exportStar(require("./invoice-class"), exports);
30
31
  __exportStar(require("./invoice-item-class"), exports);
32
+ __exportStar(require("./invoice-payment-class"), exports);
33
+ __exportStar(require("./invoice-payments-class"), exports);
31
34
  __exportStar(require("./invoice-status-class"), exports);
32
35
  __exportStar(require("./list-invoices-response-class"), exports);
33
36
  __exportStar(require("./list-policies-billing-dates-response-class"), exports);
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { InvoiceItemClass } from './invoice-item-class';
13
+ import { InvoicePaymentsClass } from './invoice-payments-class';
13
14
  import { InvoiceStatusClass } from './invoice-status-class';
14
15
  /**
15
16
  *
@@ -35,6 +36,12 @@ export interface InvoiceClass {
35
36
  * @memberof InvoiceClass
36
37
  */
37
38
  'accountNumber': string;
39
+ /**
40
+ * Policy number.
41
+ * @type {string}
42
+ * @memberof InvoiceClass
43
+ */
44
+ 'policyNumber': string;
38
45
  /**
39
46
  * Unique identifier for the object.
40
47
  * @type {string}
@@ -77,6 +84,12 @@ export interface InvoiceClass {
77
84
  * @memberof InvoiceClass
78
85
  */
79
86
  'grossAmount': number;
87
+ /**
88
+ * Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
89
+ * @type {number}
90
+ * @memberof InvoiceClass
91
+ */
92
+ 'paidAmount': number;
80
93
  /**
81
94
  * Invoice status.
82
95
  * @type {string}
@@ -131,6 +144,12 @@ export interface InvoiceClass {
131
144
  * @memberof InvoiceClass
132
145
  */
133
146
  'currency': string;
147
+ /**
148
+ * Invoice payments.
149
+ * @type {InvoicePaymentsClass}
150
+ * @memberof InvoiceClass
151
+ */
152
+ 'payments': InvoicePaymentsClass;
134
153
  }
135
154
  export declare const InvoiceClassTypeEnum: {
136
155
  readonly Initial: "initial";
@@ -146,5 +165,6 @@ export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof Invo
146
165
  export declare const InvoiceClassStatusEnum: {
147
166
  readonly Open: "open";
148
167
  readonly Paid: "paid";
168
+ readonly PartiallyPaid: "partially-paid";
149
169
  };
150
170
  export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
@@ -26,5 +26,6 @@ exports.InvoiceClassTypeEnum = {
26
26
  };
27
27
  exports.InvoiceClassStatusEnum = {
28
28
  Open: 'open',
29
- Paid: 'paid'
29
+ Paid: 'paid',
30
+ PartiallyPaid: 'partially-paid'
30
31
  };
@@ -0,0 +1,96 @@
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 InvoicePaymentClass
16
+ */
17
+ export interface InvoicePaymentClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof InvoicePaymentClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier referencing the invoice.
26
+ * @type {number}
27
+ * @memberof InvoicePaymentClass
28
+ */
29
+ 'invoiceId': number;
30
+ /**
31
+ * Payment amount is in cents.
32
+ * @type {number}
33
+ * @memberof InvoicePaymentClass
34
+ */
35
+ 'transactionAmount': number;
36
+ /**
37
+ * This is the date when the payment was made.
38
+ * @type {string}
39
+ * @memberof InvoicePaymentClass
40
+ */
41
+ 'transactionDate': string;
42
+ /**
43
+ * Transaction reference.
44
+ * @type {string}
45
+ * @memberof InvoicePaymentClass
46
+ */
47
+ 'transactionReference': string;
48
+ /**
49
+ * Payment comment.
50
+ * @type {string}
51
+ * @memberof InvoicePaymentClass
52
+ */
53
+ 'commment': string;
54
+ /**
55
+ * User who added payment.
56
+ * @type {string}
57
+ * @memberof InvoicePaymentClass
58
+ */
59
+ 'createdBy': string;
60
+ /**
61
+ * Invoice gross amount is in cents.
62
+ * @type {number}
63
+ * @memberof InvoicePaymentClass
64
+ */
65
+ 'invoiceGrossAmount': number;
66
+ /**
67
+ * Invoice paid amount before payment. The amount is in cents.
68
+ * @type {number}
69
+ * @memberof InvoicePaymentClass
70
+ */
71
+ 'oldInvoicePaidAmount': number;
72
+ /**
73
+ * Invoice paid amount after payment. The amount is in cents.
74
+ * @type {number}
75
+ * @memberof InvoicePaymentClass
76
+ */
77
+ 'newInvoicePaidAmount': number;
78
+ /**
79
+ * Invoice status before payment.
80
+ * @type {string}
81
+ * @memberof InvoicePaymentClass
82
+ */
83
+ 'oldInvoiceStatus': string;
84
+ /**
85
+ * Invoice status after payment.
86
+ * @type {string}
87
+ * @memberof InvoicePaymentClass
88
+ */
89
+ 'newInvoiceStatus': string;
90
+ /**
91
+ * Time at which the object was created.
92
+ * @type {string}
93
+ * @memberof InvoicePaymentClass
94
+ */
95
+ 'createdAt': string;
96
+ }
@@ -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,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 { InvoicePaymentClass } from './invoice-payment-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface InvoicePaymentsClass
17
+ */
18
+ export interface InvoicePaymentsClass {
19
+ /**
20
+ * Invoice payments.
21
+ * @type {Array<InvoicePaymentClass>}
22
+ * @memberof InvoicePaymentsClass
23
+ */
24
+ 'payments': Array<InvoicePaymentClass>;
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 });
@@ -43,5 +43,6 @@ export interface InvoiceStatusClass {
43
43
  export declare const InvoiceStatusClassStatusEnum: {
44
44
  readonly Open: "open";
45
45
  readonly Paid: "paid";
46
+ readonly PartiallyPaid: "partially-paid";
46
47
  };
47
48
  export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
@@ -16,5 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.InvoiceStatusClassStatusEnum = void 0;
17
17
  exports.InvoiceStatusClassStatusEnum = {
18
18
  Open: 'open',
19
- Paid: 'paid'
19
+ Paid: 'paid',
20
+ PartiallyPaid: 'partially-paid'
20
21
  };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { InvoiceItemClass } from './invoice-item-class';
13
+ import { InvoicePaymentsClass } from './invoice-payments-class';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -34,6 +35,12 @@ export interface OmitTypeClass {
34
35
  * @memberof OmitTypeClass
35
36
  */
36
37
  'accountNumber': string;
38
+ /**
39
+ * Policy number.
40
+ * @type {string}
41
+ * @memberof OmitTypeClass
42
+ */
43
+ 'policyNumber': string;
37
44
  /**
38
45
  * Unique identifier for the object.
39
46
  * @type {string}
@@ -76,6 +83,12 @@ export interface OmitTypeClass {
76
83
  * @memberof OmitTypeClass
77
84
  */
78
85
  'grossAmount': number;
86
+ /**
87
+ * Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
88
+ * @type {number}
89
+ * @memberof OmitTypeClass
90
+ */
91
+ 'paidAmount': number;
79
92
  /**
80
93
  * Invoice status.
81
94
  * @type {string}
@@ -124,6 +137,12 @@ export interface OmitTypeClass {
124
137
  * @memberof OmitTypeClass
125
138
  */
126
139
  'currency': string;
140
+ /**
141
+ * Invoice payments.
142
+ * @type {InvoicePaymentsClass}
143
+ * @memberof OmitTypeClass
144
+ */
145
+ 'payments': InvoicePaymentsClass;
127
146
  }
128
147
  export declare const OmitTypeClassTypeEnum: {
129
148
  readonly Initial: "initial";
@@ -139,5 +158,6 @@ export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof Om
139
158
  export declare const OmitTypeClassStatusEnum: {
140
159
  readonly Open: "open";
141
160
  readonly Paid: "paid";
161
+ readonly PartiallyPaid: "partially-paid";
142
162
  };
143
163
  export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
@@ -26,5 +26,6 @@ exports.OmitTypeClassTypeEnum = {
26
26
  };
27
27
  exports.OmitTypeClassStatusEnum = {
28
28
  Open: 'open',
29
- Paid: 'paid'
29
+ Paid: 'paid',
30
+ PartiallyPaid: 'partially-paid'
30
31
  };
@@ -0,0 +1,60 @@
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 CreateInvoicePaymentRequestDto
21
+ */
22
+ export interface CreateInvoicePaymentRequestDto {
23
+ /**
24
+ * Payment amount.
25
+ * @type {number}
26
+ * @memberof CreateInvoicePaymentRequestDto
27
+ */
28
+ 'transactionAmount': number;
29
+ /**
30
+ * Payment date.
31
+ * @type {string}
32
+ * @memberof CreateInvoicePaymentRequestDto
33
+ */
34
+ 'transactionDate': string;
35
+ /**
36
+ * Transaction reference.
37
+ * @type {string}
38
+ * @memberof CreateInvoicePaymentRequestDto
39
+ */
40
+ 'transactionReference': string;
41
+ /**
42
+ * Payment comment.
43
+ * @type {string}
44
+ * @memberof CreateInvoicePaymentRequestDto
45
+ */
46
+ 'comment'?: string;
47
+ /**
48
+ * Payment id.
49
+ * @type {number}
50
+ * @memberof CreateInvoicePaymentRequestDto
51
+ */
52
+ 'paymentId': number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof CreateInvoicePaymentRequestDto
57
+ */
58
+ 'invoiceId': number;
59
+ }
60
+
@@ -38,6 +38,12 @@ export interface CreateInvoiceRequestDto {
38
38
  * @memberof CreateInvoiceRequestDto
39
39
  */
40
40
  'policyCode': string;
41
+ /**
42
+ * Policy number.
43
+ * @type {string}
44
+ * @memberof CreateInvoiceRequestDto
45
+ */
46
+ 'policyNumber': string;
41
47
  /**
42
48
  * Type of the invoice.
43
49
  * @type {string}
@@ -36,7 +36,8 @@ export interface CreateInvoiceStatusRequestDto {
36
36
 
37
37
  export const CreateInvoiceStatusRequestDtoStatusEnum = {
38
38
  Open: 'open',
39
- Paid: 'paid'
39
+ Paid: 'paid',
40
+ PartiallyPaid: 'partially-paid'
40
41
  } as const;
41
42
 
42
43
  export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
@@ -50,5 +50,11 @@ export interface CreateTerminationInvoiceRequestDto {
50
50
  * @memberof CreateTerminationInvoiceRequestDto
51
51
  */
52
52
  'billingIntervalTo': string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof CreateTerminationInvoiceRequestDto
57
+ */
58
+ 'policyNumber': string;
53
59
  }
54
60
 
package/models/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from './create-custom-estimated-invoice-request-dto';
3
3
  export * from './create-custom-estimated-invoice-response-class';
4
4
  export * from './create-estimated-invoice-request-dto';
5
5
  export * from './create-estimated-invoice-response-class';
6
+ export * from './create-invoice-payment-request-dto';
6
7
  export * from './create-invoice-request-dto';
7
8
  export * from './create-invoice-response-class';
8
9
  export * from './create-invoice-status-request-dto';
@@ -12,6 +13,8 @@ export * from './inline-response200';
12
13
  export * from './inline-response503';
13
14
  export * from './invoice-class';
14
15
  export * from './invoice-item-class';
16
+ export * from './invoice-payment-class';
17
+ export * from './invoice-payments-class';
15
18
  export * from './invoice-status-class';
16
19
  export * from './list-invoices-response-class';
17
20
  export * from './list-policies-billing-dates-response-class';
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  import { InvoiceItemClass } from './invoice-item-class';
17
+ import { InvoicePaymentsClass } from './invoice-payments-class';
17
18
  import { InvoiceStatusClass } from './invoice-status-class';
18
19
 
19
20
  /**
@@ -40,6 +41,12 @@ export interface InvoiceClass {
40
41
  * @memberof InvoiceClass
41
42
  */
42
43
  'accountNumber': string;
44
+ /**
45
+ * Policy number.
46
+ * @type {string}
47
+ * @memberof InvoiceClass
48
+ */
49
+ 'policyNumber': string;
43
50
  /**
44
51
  * Unique identifier for the object.
45
52
  * @type {string}
@@ -82,6 +89,12 @@ export interface InvoiceClass {
82
89
  * @memberof InvoiceClass
83
90
  */
84
91
  'grossAmount': number;
92
+ /**
93
+ * Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
94
+ * @type {number}
95
+ * @memberof InvoiceClass
96
+ */
97
+ 'paidAmount': number;
85
98
  /**
86
99
  * Invoice status.
87
100
  * @type {string}
@@ -136,6 +149,12 @@ export interface InvoiceClass {
136
149
  * @memberof InvoiceClass
137
150
  */
138
151
  'currency': string;
152
+ /**
153
+ * Invoice payments.
154
+ * @type {InvoicePaymentsClass}
155
+ * @memberof InvoiceClass
156
+ */
157
+ 'payments': InvoicePaymentsClass;
139
158
  }
140
159
 
141
160
  export const InvoiceClassTypeEnum = {
@@ -152,7 +171,8 @@ export const InvoiceClassTypeEnum = {
152
171
  export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof InvoiceClassTypeEnum];
153
172
  export const InvoiceClassStatusEnum = {
154
173
  Open: 'open',
155
- Paid: 'paid'
174
+ Paid: 'paid',
175
+ PartiallyPaid: 'partially-paid'
156
176
  } as const;
157
177
 
158
178
  export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
@@ -0,0 +1,102 @@
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 InvoicePaymentClass
21
+ */
22
+ export interface InvoicePaymentClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof InvoicePaymentClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the invoice.
31
+ * @type {number}
32
+ * @memberof InvoicePaymentClass
33
+ */
34
+ 'invoiceId': number;
35
+ /**
36
+ * Payment amount is in cents.
37
+ * @type {number}
38
+ * @memberof InvoicePaymentClass
39
+ */
40
+ 'transactionAmount': number;
41
+ /**
42
+ * This is the date when the payment was made.
43
+ * @type {string}
44
+ * @memberof InvoicePaymentClass
45
+ */
46
+ 'transactionDate': string;
47
+ /**
48
+ * Transaction reference.
49
+ * @type {string}
50
+ * @memberof InvoicePaymentClass
51
+ */
52
+ 'transactionReference': string;
53
+ /**
54
+ * Payment comment.
55
+ * @type {string}
56
+ * @memberof InvoicePaymentClass
57
+ */
58
+ 'commment': string;
59
+ /**
60
+ * User who added payment.
61
+ * @type {string}
62
+ * @memberof InvoicePaymentClass
63
+ */
64
+ 'createdBy': string;
65
+ /**
66
+ * Invoice gross amount is in cents.
67
+ * @type {number}
68
+ * @memberof InvoicePaymentClass
69
+ */
70
+ 'invoiceGrossAmount': number;
71
+ /**
72
+ * Invoice paid amount before payment. The amount is in cents.
73
+ * @type {number}
74
+ * @memberof InvoicePaymentClass
75
+ */
76
+ 'oldInvoicePaidAmount': number;
77
+ /**
78
+ * Invoice paid amount after payment. The amount is in cents.
79
+ * @type {number}
80
+ * @memberof InvoicePaymentClass
81
+ */
82
+ 'newInvoicePaidAmount': number;
83
+ /**
84
+ * Invoice status before payment.
85
+ * @type {string}
86
+ * @memberof InvoicePaymentClass
87
+ */
88
+ 'oldInvoiceStatus': string;
89
+ /**
90
+ * Invoice status after payment.
91
+ * @type {string}
92
+ * @memberof InvoicePaymentClass
93
+ */
94
+ 'newInvoiceStatus': string;
95
+ /**
96
+ * Time at which the object was created.
97
+ * @type {string}
98
+ * @memberof InvoicePaymentClass
99
+ */
100
+ 'createdAt': string;
101
+ }
102
+
@@ -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 { InvoicePaymentClass } from './invoice-payment-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface InvoicePaymentsClass
22
+ */
23
+ export interface InvoicePaymentsClass {
24
+ /**
25
+ * Invoice payments.
26
+ * @type {Array<InvoicePaymentClass>}
27
+ * @memberof InvoicePaymentsClass
28
+ */
29
+ 'payments': Array<InvoicePaymentClass>;
30
+ }
31
+
@@ -48,7 +48,8 @@ export interface InvoiceStatusClass {
48
48
 
49
49
  export const InvoiceStatusClassStatusEnum = {
50
50
  Open: 'open',
51
- Paid: 'paid'
51
+ Paid: 'paid',
52
+ PartiallyPaid: 'partially-paid'
52
53
  } as const;
53
54
 
54
55
  export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  import { InvoiceItemClass } from './invoice-item-class';
17
+ import { InvoicePaymentsClass } from './invoice-payments-class';
17
18
 
18
19
  /**
19
20
  *
@@ -39,6 +40,12 @@ export interface OmitTypeClass {
39
40
  * @memberof OmitTypeClass
40
41
  */
41
42
  'accountNumber': string;
43
+ /**
44
+ * Policy number.
45
+ * @type {string}
46
+ * @memberof OmitTypeClass
47
+ */
48
+ 'policyNumber': string;
42
49
  /**
43
50
  * Unique identifier for the object.
44
51
  * @type {string}
@@ -81,6 +88,12 @@ export interface OmitTypeClass {
81
88
  * @memberof OmitTypeClass
82
89
  */
83
90
  'grossAmount': number;
91
+ /**
92
+ * Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
93
+ * @type {number}
94
+ * @memberof OmitTypeClass
95
+ */
96
+ 'paidAmount': number;
84
97
  /**
85
98
  * Invoice status.
86
99
  * @type {string}
@@ -129,6 +142,12 @@ export interface OmitTypeClass {
129
142
  * @memberof OmitTypeClass
130
143
  */
131
144
  'currency': string;
145
+ /**
146
+ * Invoice payments.
147
+ * @type {InvoicePaymentsClass}
148
+ * @memberof OmitTypeClass
149
+ */
150
+ 'payments': InvoicePaymentsClass;
132
151
  }
133
152
 
134
153
  export const OmitTypeClassTypeEnum = {
@@ -145,7 +164,8 @@ export const OmitTypeClassTypeEnum = {
145
164
  export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
146
165
  export const OmitTypeClassStatusEnum = {
147
166
  Open: 'open',
148
- Paid: 'paid'
167
+ Paid: 'paid',
168
+ PartiallyPaid: 'partially-paid'
149
169
  } as const;
150
170
 
151
171
  export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [