@emilgroup/billing-sdk 1.7.0 → 1.8.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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/models/create-invoice-payment-request-dto.ts +60 -0
- package/models/create-invoice-status-request-dto.ts +2 -1
- package/models/index.ts +3 -0
- package/models/invoice-class.ts +15 -1
- package/models/invoice-payment-class.ts +102 -0
- package/{dist/models/create-custom-estimated-invoice-request-dto.js → models/invoice-payments-class.ts} +18 -7
- package/models/invoice-status-class.ts +2 -1
- package/models/omit-type-class.ts +15 -1
- package/package.json +1 -2
- package/dist/api/correction-invoices-api.d.ts +0 -106
- package/dist/api/correction-invoices-api.js +0 -230
- package/dist/api/default-api.d.ts +0 -66
- package/dist/api/default-api.js +0 -196
- package/dist/api/estimated-invoices-api.d.ts +0 -154
- package/dist/api/estimated-invoices-api.js +0 -317
- package/dist/api/initial-invoices-api.d.ts +0 -106
- package/dist/api/initial-invoices-api.js +0 -230
- package/dist/api/invoices-api.d.ts +0 -307
- package/dist/api/invoices-api.js +0 -477
- package/dist/api/recurring-invoices-api.d.ts +0 -106
- package/dist/api/recurring-invoices-api.js +0 -230
- package/dist/api.d.ts +0 -17
- package/dist/api.js +0 -35
- package/dist/base.d.ts +0 -74
- package/dist/base.js +0 -298
- package/dist/common.d.ts +0 -91
- package/dist/common.js +0 -276
- package/dist/configuration.d.ts +0 -83
- package/dist/configuration.js +0 -44
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
- package/dist/models/create-correction-invoices-response-class.js +0 -15
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +0 -35
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
- package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-estimated-invoice-request-dto.d.ts +0 -31
- package/dist/models/create-estimated-invoice-request-dto.js +0 -15
- package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
- package/dist/models/create-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-request-dto.d.ts +0 -77
- package/dist/models/create-invoice-request-dto.js +0 -26
- package/dist/models/create-invoice-response-class.d.ts +0 -25
- package/dist/models/create-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-status-request-dto.d.ts +0 -35
- package/dist/models/create-invoice-status-request-dto.js +0 -20
- package/dist/models/create-termination-invoice-request-dto.d.ts +0 -48
- package/dist/models/create-termination-invoice-request-dto.js +0 -15
- package/dist/models/get-invoice-response-class.d.ts +0 -25
- package/dist/models/get-invoice-response-class.js +0 -15
- package/dist/models/index.d.ts +0 -28
- package/dist/models/index.js +0 -44
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/dist/models/invoice-class.d.ts +0 -150
- package/dist/models/invoice-class.js +0 -30
- package/dist/models/invoice-item-class.d.ts +0 -129
- package/dist/models/invoice-item-class.js +0 -24
- package/dist/models/invoice-status-class.d.ts +0 -47
- package/dist/models/invoice-status-class.js +0 -20
- package/dist/models/list-invoices-response-class.d.ts +0 -31
- package/dist/models/list-invoices-response-class.js +0 -15
- package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
- package/dist/models/list-policies-billing-dates-response-class.js +0 -15
- package/dist/models/list-request-dto.d.ts +0 -54
- package/dist/models/list-request-dto.js +0 -15
- package/dist/models/omit-type-class.d.ts +0 -143
- package/dist/models/omit-type-class.js +0 -30
- package/dist/models/policy-billing-date-class.d.ts +0 -42
- package/dist/models/policy-billing-date-class.js +0 -15
- package/dist/models/policy-dto.d.ts +0 -122
- package/dist/models/policy-dto.js +0 -22
- package/dist/models/policy-object-dto.d.ts +0 -48
- package/dist/models/policy-object-dto.js +0 -15
- package/dist/models/policy-premium-dto.d.ts +0 -49
- package/dist/models/policy-premium-dto.js +0 -15
- package/dist/models/policy-premium-item-dto.d.ts +0 -55
- package/dist/models/policy-premium-item-dto.js +0 -15
- package/dist/models/policy-version-dto.d.ts +0 -55
- package/dist/models/policy-version-dto.js +0 -15
- package/dist/models/premium-formula-dto.d.ts +0 -72
- package/dist/models/premium-formula-dto.js +0 -15
- package/dist/models/revert-invoice-request-dto.d.ts +0 -24
- package/dist/models/revert-invoice-request-dto.js +0 -15
- package/dist/models/timeslice-dto.d.ts +0 -62
- package/dist/models/timeslice-dto.js +0 -15
package/.openapi-generator/FILES
CHANGED
|
@@ -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.
|
|
20
|
+
npm install @emilgroup/billing-sdk@1.8.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk@1.
|
|
24
|
+
yarn add @emilgroup/billing-sdk@1.8.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -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
|
+
|
|
@@ -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];
|
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';
|
package/models/invoice-class.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -82,6 +83,12 @@ export interface InvoiceClass {
|
|
|
82
83
|
* @memberof InvoiceClass
|
|
83
84
|
*/
|
|
84
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 InvoiceClass
|
|
90
|
+
*/
|
|
91
|
+
'paidAmount': number;
|
|
85
92
|
/**
|
|
86
93
|
* Invoice status.
|
|
87
94
|
* @type {string}
|
|
@@ -136,6 +143,12 @@ export interface InvoiceClass {
|
|
|
136
143
|
* @memberof InvoiceClass
|
|
137
144
|
*/
|
|
138
145
|
'currency': string;
|
|
146
|
+
/**
|
|
147
|
+
* Invoice payments.
|
|
148
|
+
* @type {InvoicePaymentsClass}
|
|
149
|
+
* @memberof InvoiceClass
|
|
150
|
+
*/
|
|
151
|
+
'payments': InvoicePaymentsClass;
|
|
139
152
|
}
|
|
140
153
|
|
|
141
154
|
export const InvoiceClassTypeEnum = {
|
|
@@ -152,7 +165,8 @@ export const InvoiceClassTypeEnum = {
|
|
|
152
165
|
export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof InvoiceClassTypeEnum];
|
|
153
166
|
export const InvoiceClassStatusEnum = {
|
|
154
167
|
Open: 'open',
|
|
155
|
-
Paid: 'paid'
|
|
168
|
+
Paid: 'paid',
|
|
169
|
+
PartiallyPaid: 'partially-paid'
|
|
156
170
|
} as const;
|
|
157
171
|
|
|
158
172
|
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
|
+
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,9 +11,21 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
*
|
|
@@ -81,6 +82,12 @@ export interface OmitTypeClass {
|
|
|
81
82
|
* @memberof OmitTypeClass
|
|
82
83
|
*/
|
|
83
84
|
'grossAmount': number;
|
|
85
|
+
/**
|
|
86
|
+
* 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.
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof OmitTypeClass
|
|
89
|
+
*/
|
|
90
|
+
'paidAmount': number;
|
|
84
91
|
/**
|
|
85
92
|
* Invoice status.
|
|
86
93
|
* @type {string}
|
|
@@ -129,6 +136,12 @@ export interface OmitTypeClass {
|
|
|
129
136
|
* @memberof OmitTypeClass
|
|
130
137
|
*/
|
|
131
138
|
'currency': string;
|
|
139
|
+
/**
|
|
140
|
+
* Invoice payments.
|
|
141
|
+
* @type {InvoicePaymentsClass}
|
|
142
|
+
* @memberof OmitTypeClass
|
|
143
|
+
*/
|
|
144
|
+
'payments': InvoicePaymentsClass;
|
|
132
145
|
}
|
|
133
146
|
|
|
134
147
|
export const OmitTypeClassTypeEnum = {
|
|
@@ -145,7 +158,8 @@ export const OmitTypeClassTypeEnum = {
|
|
|
145
158
|
export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
|
|
146
159
|
export const OmitTypeClassStatusEnum = {
|
|
147
160
|
Open: 'open',
|
|
148
|
-
Paid: 'paid'
|
|
161
|
+
Paid: 'paid',
|
|
162
|
+
PartiallyPaid: 'partially-paid'
|
|
149
163
|
} as const;
|
|
150
164
|
|
|
151
165
|
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.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/billing-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"axios": "^0.27.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
|
|
25
24
|
"typescript": "^4.0"
|
|
26
25
|
}
|
|
27
26
|
}
|
|
@@ -1,106 +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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreateCorrectionInvoicesResponseClass } from '../models';
|
|
16
|
-
import { CreateInvoiceRequestDto } from '../models';
|
|
17
|
-
/**
|
|
18
|
-
* CorrectionInvoicesApi - axios parameter creator
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export declare const CorrectionInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
-
/**
|
|
23
|
-
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
24
|
-
* @summary Create the correction invoice
|
|
25
|
-
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
26
|
-
* @param {string} [authorization] Bearer Token
|
|
27
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
28
|
-
* @param {*} [options] Override http request option.
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
*/
|
|
31
|
-
createCorrectionInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* CorrectionInvoicesApi - functional programming interface
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
export declare const CorrectionInvoicesApiFp: (configuration?: Configuration) => {
|
|
38
|
-
/**
|
|
39
|
-
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
40
|
-
* @summary Create the correction invoice
|
|
41
|
-
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
42
|
-
* @param {string} [authorization] Bearer Token
|
|
43
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
44
|
-
* @param {*} [options] Override http request option.
|
|
45
|
-
* @throws {RequiredError}
|
|
46
|
-
*/
|
|
47
|
-
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponseClass>>;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* CorrectionInvoicesApi - factory interface
|
|
51
|
-
* @export
|
|
52
|
-
*/
|
|
53
|
-
export declare const CorrectionInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
54
|
-
/**
|
|
55
|
-
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
56
|
-
* @summary Create the correction invoice
|
|
57
|
-
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
58
|
-
* @param {string} [authorization] Bearer Token
|
|
59
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
60
|
-
* @param {*} [options] Override http request option.
|
|
61
|
-
* @throws {RequiredError}
|
|
62
|
-
*/
|
|
63
|
-
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass>;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Request parameters for createCorrectionInvoice operation in CorrectionInvoicesApi.
|
|
67
|
-
* @export
|
|
68
|
-
* @interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest
|
|
69
|
-
*/
|
|
70
|
-
export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {CreateInvoiceRequestDto}
|
|
74
|
-
* @memberof CorrectionInvoicesApiCreateCorrectionInvoice
|
|
75
|
-
*/
|
|
76
|
-
readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
|
|
77
|
-
/**
|
|
78
|
-
* Bearer Token
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof CorrectionInvoicesApiCreateCorrectionInvoice
|
|
81
|
-
*/
|
|
82
|
-
readonly authorization?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof CorrectionInvoicesApiCreateCorrectionInvoice
|
|
87
|
-
*/
|
|
88
|
-
readonly idempotencyKey?: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* CorrectionInvoicesApi - object-oriented interface
|
|
92
|
-
* @export
|
|
93
|
-
* @class CorrectionInvoicesApi
|
|
94
|
-
* @extends {BaseAPI}
|
|
95
|
-
*/
|
|
96
|
-
export declare class CorrectionInvoicesApi extends BaseAPI {
|
|
97
|
-
/**
|
|
98
|
-
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
99
|
-
* @summary Create the correction invoice
|
|
100
|
-
* @param {CorrectionInvoicesApiCreateCorrectionInvoiceRequest} requestParameters Request parameters.
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
* @memberof CorrectionInvoicesApi
|
|
104
|
-
*/
|
|
105
|
-
createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCorrectionInvoicesResponseClass, any>>;
|
|
106
|
-
}
|