Skip to content

Commit c40ecdd

Browse files
committed
Add bankruptcyDate and endOfBankruptcyProceedingsDate attributes
1 parent 9eb99a6 commit c40ecdd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2220
-130
lines changed

README.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
11
# NIP24 Client for JavaScript
22

3-
This is the official repository for NIP24 Client for JavaScript: https://www.nip24.pl
3+
This is the official repository for [NIP24](https://nip24.pl) Client for JavaScript
44

5-
This library contains validators for common Polish tax numbers like NIP, REGON and KRS. Validators for EU VAT ID and IBAN
6-
are also included. After registration at NIP24 Portal this library could be used for various
7-
on-line validations of Polish and EU companies. Please, visit our web page for more details.
5+
This library contains validators for common Polish tax numbers like NIP, REGON and KRS. Validators for EU VAT ID
6+
and IBAN are also included. After registration at [NIP24](https://nip24.pl) Portal this library could be used for
7+
various on-line validations of Polish and EU companies. Please, visit our web page for more details.
88

9-
# Documentation
9+
## Documentation
1010

11-
The documentation and samples are available at https://www.nip24.pl/dokumentacja/
11+
The documentation and samples are available [here](https://nip24.pl/dokumentacja/).
1212

13-
# License
13+
## Build
14+
15+
Node.js 22+ is required to build this library. Building is only required to generate TypeScript definitions.
16+
17+
```bash
18+
git clone https://github.com/nip24pl/nip24-javascript-client.git
19+
cd nip24-javascript-client
20+
npm install
21+
npm run build:types
22+
```
23+
24+
## How to use
25+
26+
The release version of the library is published in [NPM](https://www.npmjs.com/package/nip24client).
27+
Add the following dependency using the _npm_ tool:
28+
29+
```bash
30+
npm install nip24client
31+
```
32+
33+
The _example_ directory contains a sample usage from a Node.js application, and the _example-web_ directory contains
34+
a sample usage from an HTML web application.
35+
36+
## License
1437

1538
This project is delivered under Apache License, Version 2.0:
1639

example-web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nip24client-example-web",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "NIP24 Client for Javascript - web browser example",
55
"author": "",
66
"license": "Apache-2.0",
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"browserify": "latest",
13-
"uglify-js": "^3.17.1"
13+
"uglify-js": "latest"
1414
},
1515
"dependencies": {
1616
"nip24client": "file:.."

example/package-lock.json

Lines changed: 19 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nip24client-example",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "NIP24 Client for Javascript - node.js example",
55
"author": "",
66
"license": "Apache-2.0",

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
'use strict';
2222

23-
2423
module.exports = {
2524
AccountStatus: require('./lib/accountstatus'),
2625
AllData: require('./lib/alldata'),

lib/accountstatus.js

Lines changed: 160 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,60 +20,219 @@
2020

2121
'use strict';
2222

23-
2423
/**
2524
* Current account status information
2625
*/
2726
function AccountStatus()
2827
{
28+
/**
29+
* @type {string}
30+
*/
2931
this.uid = undefined;
3032

33+
/**
34+
* @type {string}
35+
*/
3136
this.type = undefined;
37+
38+
/**
39+
* @type {Date}
40+
*/
3241
this.validTo = undefined;
42+
43+
/**
44+
* @type {string}
45+
*/
3346
this.billingPlanName = undefined;
3447

48+
/**
49+
* @type {number}
50+
*/
3551
this.subscriptionPrice = undefined;
52+
53+
/**
54+
* @type {number}
55+
*/
3656
this.itemPrice = undefined;
57+
58+
/**
59+
* @type {number}
60+
*/
3761
this.itemPriceStatus = undefined;
62+
63+
/**
64+
* @type {number}
65+
*/
3866
this.itemPriceInvoice = undefined;
67+
68+
/**
69+
* @type {number}
70+
*/
3971
this.itemPriceAll = undefined;
72+
73+
/**
74+
* @type {number}
75+
*/
4076
this.itemPriceIBAN = undefined;
77+
78+
/**
79+
* @type {number}
80+
*/
4181
this.itemPriceWhitelist = undefined;
82+
83+
/**
84+
* @type {number}
85+
*/
4286
this.itemPriceSearchVAT = undefined;
4387

88+
/**
89+
* @type {number}
90+
*/
4491
this.limit = undefined;
92+
93+
/**
94+
* @type {number}
95+
*/
4596
this.requestDelay = undefined;
97+
98+
/**
99+
* @type {number}
100+
*/
46101
this.domainLimit = undefined;
47102

103+
/**
104+
* @type {boolean}
105+
*/
48106
this.overPlanAllowed = undefined;
107+
108+
/**
109+
* @type {boolean}
110+
*/
49111
this.terytCodes = undefined;
112+
113+
/**
114+
* @type {boolean}
115+
*/
50116
this.excelAddIn = undefined;
117+
118+
/**
119+
* @type {boolean}
120+
*/
51121
this.jpkVat = undefined;
122+
123+
/**
124+
* @type {boolean}
125+
*/
52126
this.cli = undefined;
127+
128+
/**
129+
* @type {boolean}
130+
*/
53131
this.stats = undefined;
132+
133+
/**
134+
* @type {boolean}
135+
*/
54136
this.nipMonitor = undefined;
55137

138+
/**
139+
* @type {boolean}
140+
*/
56141
this.searchByNIP = undefined;
142+
143+
/**
144+
* @type {boolean}
145+
*/
57146
this.searchByREGON = undefined;
147+
148+
/**
149+
* @type {boolean}
150+
*/
58151
this.searchByKRS = undefined;
59152

153+
/**
154+
* @type {boolean}
155+
*/
60156
this.funcIsActive = undefined;
157+
158+
/**
159+
* @type {boolean}
160+
*/
61161
this.funcGetInvoiceData = undefined;
162+
163+
/**
164+
* @type {boolean}
165+
*/
62166
this.funcGetAllData = undefined;
167+
168+
/**
169+
* @type {boolean}
170+
*/
63171
this.funcGetVIESData = undefined;
172+
173+
/**
174+
* @type {boolean}
175+
*/
64176
this.funcGetVATStatus = undefined;
177+
178+
/**
179+
* @type {boolean}
180+
*/
65181
this.funcGetIBANStatus = undefined;
182+
183+
/**
184+
* @type {boolean}
185+
*/
66186
this.funcGetWhitelistStatus = undefined;
187+
188+
/**
189+
* @type {boolean}
190+
*/
67191
this.funcSearchVAT = undefined;
68192

193+
/**
194+
* @type {number}
195+
*/
69196
this.invoiceDataCount = undefined;
197+
198+
/**
199+
* @type {number}
200+
*/
70201
this.allDataCount = undefined;
202+
203+
/**
204+
* @type {number}
205+
*/
71206
this.firmStatusCount = undefined;
207+
208+
/**
209+
* @type {number}
210+
*/
72211
this.vatStatusCount = undefined;
212+
213+
/**
214+
* @type {number}
215+
*/
73216
this.viesStatusCount = undefined;
217+
218+
/**
219+
* @type {number}
220+
*/
74221
this.ibanStatusCount = undefined;
222+
223+
/**
224+
* @type {number}
225+
*/
75226
this.whitelistStatusCount = undefined;
227+
228+
/**
229+
* @type {number}
230+
*/
76231
this.searchVATCount = undefined;
232+
233+
/**
234+
* @type {number}
235+
*/
77236
this.totalCount = undefined;
78237
}
79238

0 commit comments

Comments
 (0)