@emilgroup/billing-sdk-node 1.0.0 → 1.0.1
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 +1 -0
- package/README.md +6 -4
- package/dist/models/create-correction-invoices-response-class.d.ts +3 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/invoice-class.d.ts +3 -2
- package/dist/models/invoice-item-class.d.ts +108 -0
- package/dist/models/invoice-item-class.js +15 -0
- package/dist/models/list-invoices-response-class.d.ts +3 -2
- package/models/create-correction-invoices-response-class.ts +3 -2
- package/models/index.ts +1 -0
- package/models/invoice-class.ts +3 -2
- package/models/invoice-item-class.ts +114 -0
- package/models/list-invoices-response-class.ts +3 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used with Nodejs based applications.
|
|
4
4
|
|
|
5
|
+
>For more information, you can go to [Emil Api documentation](https://emil.stoplight.io/docs/emil-api/).
|
|
6
|
+
|
|
5
7
|
Language level
|
|
6
8
|
* ES5 - you must have a Promises/A+ library installed
|
|
7
9
|
* ES6
|
|
@@ -10,18 +12,18 @@ Module system
|
|
|
10
12
|
* CommonJS
|
|
11
13
|
* ES6 module system
|
|
12
14
|
|
|
13
|
-
Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
|
|
15
|
+
Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)).
|
|
14
16
|
|
|
15
|
-
##
|
|
17
|
+
## Using the SDK
|
|
16
18
|
|
|
17
19
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
20
|
|
|
19
21
|
```
|
|
20
|
-
npm install @emilgroup/billing-sdk-node@1.0.
|
|
22
|
+
npm install @emilgroup/billing-sdk-node@1.0.1 --save
|
|
21
23
|
```
|
|
22
24
|
or
|
|
23
25
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk-node@1.0.
|
|
26
|
+
yarn add @emilgroup/billing-sdk-node@1.0.1
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
And then you can import `InvoicesApi`.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InvoiceClass } from './invoice-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,8 +18,8 @@
|
|
|
17
18
|
export interface CreateCorrectionInvoicesResponseClass {
|
|
18
19
|
/**
|
|
19
20
|
* Correction invoices response
|
|
20
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<InvoiceClass>}
|
|
21
22
|
* @memberof CreateCorrectionInvoicesResponseClass
|
|
22
23
|
*/
|
|
23
|
-
'invoices': Array<
|
|
24
|
+
'invoices': Array<InvoiceClass>;
|
|
24
25
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './create-estimated-invoice-response-class';
|
|
|
6
6
|
export * from './create-invoice-request-dto';
|
|
7
7
|
export * from './create-invoice-response-class';
|
|
8
8
|
export * from './invoice-class';
|
|
9
|
+
export * from './invoice-item-class';
|
|
9
10
|
export * from './list-invoices-response-class';
|
|
10
11
|
export * from './list-request-dto';
|
|
11
12
|
export * from './policy-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./create-estimated-invoice-response-class"), exports);
|
|
|
22
22
|
__exportStar(require("./create-invoice-request-dto"), exports);
|
|
23
23
|
__exportStar(require("./create-invoice-response-class"), exports);
|
|
24
24
|
__exportStar(require("./invoice-class"), exports);
|
|
25
|
+
__exportStar(require("./invoice-item-class"), exports);
|
|
25
26
|
__exportStar(require("./list-invoices-response-class"), exports);
|
|
26
27
|
__exportStar(require("./list-request-dto"), exports);
|
|
27
28
|
__exportStar(require("./policy-dto"), exports);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InvoiceItemClass } from './invoice-item-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -113,8 +114,8 @@ export interface InvoiceClass {
|
|
|
113
114
|
'createdAt': string;
|
|
114
115
|
/**
|
|
115
116
|
* Invoice items
|
|
116
|
-
* @type {Array<
|
|
117
|
+
* @type {Array<InvoiceItemClass>}
|
|
117
118
|
* @memberof InvoiceClass
|
|
118
119
|
*/
|
|
119
|
-
'invoiceItems': Array<
|
|
120
|
+
'invoiceItems': Array<InvoiceItemClass>;
|
|
120
121
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL BillingService
|
|
3
|
+
* The EMIL BillingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 InvoiceItemClass
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceItemClass {
|
|
18
|
+
/**
|
|
19
|
+
* Invoice item id
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InvoiceItemClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Premium formula id
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof InvoiceItemClass
|
|
28
|
+
*/
|
|
29
|
+
'premiumFormulaId': number;
|
|
30
|
+
/**
|
|
31
|
+
* product name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceItemClass
|
|
34
|
+
*/
|
|
35
|
+
'name': string;
|
|
36
|
+
/**
|
|
37
|
+
* tax code
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvoiceItemClass
|
|
40
|
+
*/
|
|
41
|
+
'taxCode': string;
|
|
42
|
+
/**
|
|
43
|
+
* Invoice type
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InvoiceItemClass
|
|
46
|
+
*/
|
|
47
|
+
'unit': string;
|
|
48
|
+
/**
|
|
49
|
+
* group
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InvoiceItemClass
|
|
52
|
+
*/
|
|
53
|
+
'group': string;
|
|
54
|
+
/**
|
|
55
|
+
* Item quantity
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof InvoiceItemClass
|
|
58
|
+
*/
|
|
59
|
+
'quantity': number;
|
|
60
|
+
/**
|
|
61
|
+
* Item price per unit
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof InvoiceItemClass
|
|
64
|
+
*/
|
|
65
|
+
'pricePerUnit': number;
|
|
66
|
+
/**
|
|
67
|
+
* Item tax rate
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof InvoiceItemClass
|
|
70
|
+
*/
|
|
71
|
+
'taxRate': number;
|
|
72
|
+
/**
|
|
73
|
+
* Net amount
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof InvoiceItemClass
|
|
76
|
+
*/
|
|
77
|
+
'netAmount': number;
|
|
78
|
+
/**
|
|
79
|
+
* Net tax amount
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof InvoiceItemClass
|
|
82
|
+
*/
|
|
83
|
+
'taxAmount': number;
|
|
84
|
+
/**
|
|
85
|
+
* Gross amount
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof InvoiceItemClass
|
|
88
|
+
*/
|
|
89
|
+
'grossAmount': number;
|
|
90
|
+
/**
|
|
91
|
+
* Credit amount
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof InvoiceItemClass
|
|
94
|
+
*/
|
|
95
|
+
'creditAmount': number;
|
|
96
|
+
/**
|
|
97
|
+
* Invoice item interval from
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof InvoiceItemClass
|
|
100
|
+
*/
|
|
101
|
+
'billingIntervalFrom': string;
|
|
102
|
+
/**
|
|
103
|
+
* Invoice item interval to
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof InvoiceItemClass
|
|
106
|
+
*/
|
|
107
|
+
'billingIntervalTo': string;
|
|
108
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InvoiceClass } from './invoice-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,10 +18,10 @@
|
|
|
17
18
|
export interface ListInvoicesResponseClass {
|
|
18
19
|
/**
|
|
19
20
|
* Invoices list items
|
|
20
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<InvoiceClass>}
|
|
21
22
|
* @memberof ListInvoicesResponseClass
|
|
22
23
|
*/
|
|
23
|
-
'items': Array<
|
|
24
|
+
'items': Array<InvoiceClass>;
|
|
24
25
|
/**
|
|
25
26
|
* Next page token
|
|
26
27
|
* @type {string}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InvoiceClass } from './invoice-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -22,9 +23,9 @@
|
|
|
22
23
|
export interface CreateCorrectionInvoicesResponseClass {
|
|
23
24
|
/**
|
|
24
25
|
* Correction invoices response
|
|
25
|
-
* @type {Array<
|
|
26
|
+
* @type {Array<InvoiceClass>}
|
|
26
27
|
* @memberof CreateCorrectionInvoicesResponseClass
|
|
27
28
|
*/
|
|
28
|
-
'invoices': Array<
|
|
29
|
+
'invoices': Array<InvoiceClass>;
|
|
29
30
|
}
|
|
30
31
|
|
package/models/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './create-estimated-invoice-response-class';
|
|
|
6
6
|
export * from './create-invoice-request-dto';
|
|
7
7
|
export * from './create-invoice-response-class';
|
|
8
8
|
export * from './invoice-class';
|
|
9
|
+
export * from './invoice-item-class';
|
|
9
10
|
export * from './list-invoices-response-class';
|
|
10
11
|
export * from './list-request-dto';
|
|
11
12
|
export * from './policy-dto';
|
package/models/invoice-class.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InvoiceItemClass } from './invoice-item-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -118,9 +119,9 @@ export interface InvoiceClass {
|
|
|
118
119
|
'createdAt': string;
|
|
119
120
|
/**
|
|
120
121
|
* Invoice items
|
|
121
|
-
* @type {Array<
|
|
122
|
+
* @type {Array<InvoiceItemClass>}
|
|
122
123
|
* @memberof InvoiceClass
|
|
123
124
|
*/
|
|
124
|
-
'invoiceItems': Array<
|
|
125
|
+
'invoiceItems': Array<InvoiceItemClass>;
|
|
125
126
|
}
|
|
126
127
|
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
*
|
|
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 InvoiceItemClass
|
|
21
|
+
*/
|
|
22
|
+
export interface InvoiceItemClass {
|
|
23
|
+
/**
|
|
24
|
+
* Invoice item id
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof InvoiceItemClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Premium formula id
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof InvoiceItemClass
|
|
33
|
+
*/
|
|
34
|
+
'premiumFormulaId': number;
|
|
35
|
+
/**
|
|
36
|
+
* product name
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InvoiceItemClass
|
|
39
|
+
*/
|
|
40
|
+
'name': string;
|
|
41
|
+
/**
|
|
42
|
+
* tax code
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof InvoiceItemClass
|
|
45
|
+
*/
|
|
46
|
+
'taxCode': string;
|
|
47
|
+
/**
|
|
48
|
+
* Invoice type
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof InvoiceItemClass
|
|
51
|
+
*/
|
|
52
|
+
'unit': string;
|
|
53
|
+
/**
|
|
54
|
+
* group
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof InvoiceItemClass
|
|
57
|
+
*/
|
|
58
|
+
'group': string;
|
|
59
|
+
/**
|
|
60
|
+
* Item quantity
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof InvoiceItemClass
|
|
63
|
+
*/
|
|
64
|
+
'quantity': number;
|
|
65
|
+
/**
|
|
66
|
+
* Item price per unit
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof InvoiceItemClass
|
|
69
|
+
*/
|
|
70
|
+
'pricePerUnit': number;
|
|
71
|
+
/**
|
|
72
|
+
* Item tax rate
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof InvoiceItemClass
|
|
75
|
+
*/
|
|
76
|
+
'taxRate': number;
|
|
77
|
+
/**
|
|
78
|
+
* Net amount
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof InvoiceItemClass
|
|
81
|
+
*/
|
|
82
|
+
'netAmount': number;
|
|
83
|
+
/**
|
|
84
|
+
* Net tax amount
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof InvoiceItemClass
|
|
87
|
+
*/
|
|
88
|
+
'taxAmount': number;
|
|
89
|
+
/**
|
|
90
|
+
* Gross amount
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof InvoiceItemClass
|
|
93
|
+
*/
|
|
94
|
+
'grossAmount': number;
|
|
95
|
+
/**
|
|
96
|
+
* Credit amount
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof InvoiceItemClass
|
|
99
|
+
*/
|
|
100
|
+
'creditAmount': number;
|
|
101
|
+
/**
|
|
102
|
+
* Invoice item interval from
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof InvoiceItemClass
|
|
105
|
+
*/
|
|
106
|
+
'billingIntervalFrom': string;
|
|
107
|
+
/**
|
|
108
|
+
* Invoice item interval to
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof InvoiceItemClass
|
|
111
|
+
*/
|
|
112
|
+
'billingIntervalTo': string;
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InvoiceClass } from './invoice-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -22,10 +23,10 @@
|
|
|
22
23
|
export interface ListInvoicesResponseClass {
|
|
23
24
|
/**
|
|
24
25
|
* Invoices list items
|
|
25
|
-
* @type {Array<
|
|
26
|
+
* @type {Array<InvoiceClass>}
|
|
26
27
|
* @memberof ListInvoicesResponseClass
|
|
27
28
|
*/
|
|
28
|
-
'items': Array<
|
|
29
|
+
'items': Array<InvoiceClass>;
|
|
29
30
|
/**
|
|
30
31
|
* Next page token
|
|
31
32
|
* @type {string}
|