Skip to content

Commit d7c5ba6

Browse files
committed
Add bankruptcyDate and endOfBankruptcyProceedingsDate attributes
1 parent 7139d6a commit d7c5ba6

File tree

6 files changed

+28
-17
lines changed

6 files changed

+28
-17
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
you may not use this file except in compliance with the License.
194194
You may obtain a copy of the License at
195195

196-
http://www.apache.org/licenses/LICENSE-2.0
196+
https://www.apache.org/licenses/LICENSE-2.0
197197

198198
Unless required by applicable law or agreed to in writing, software
199199
distributed under the License is distributed on an "AS IS" BASIS,

README.md

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

3-
This is the official repository for NIP24 Client for Python: https://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
6-
EU VAT ID and IBAN 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://nip24.pl/dokumentacja/
11+
The documentation and samples are available [here](https://nip24.pl/dokumentacja/).
1212

13-
# Version
13+
## How to use
1414

15-
Version 1.3.3 is the last version compatible with Python 2.7 and is available for download here: https://github.com/nip24pl/nip24-python-client/releases/tag/1.3.3
16-
Begining from version 1.3.4 only Python 3.7 and newer is supported.
15+
Add the following dependency using the _pip_ tool:
1716

18-
# License
17+
```bash
18+
pip install https://github.com/nip24pl/nip24-c-client/releases/download/1.4.3/nip24-python-client-1.4.3.zip
19+
```
20+
21+
The _example.py_ file contains usage examples.
22+
23+
## License
1924

2025
This project is delivered under Apache License, Version 2.0:
2126

nip24/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
from nip24.iban import *
4242
from nip24.nip24client import *
4343

44-
__version__ = '1.4.2'
44+
__version__ = '1.4.3'

nip24/alldata.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def __init__(self):
5959
self.holdDate = None
6060
self.renevalDate = None
6161
self.lastUpdateDate = None
62+
self.bankruptcyDate = None
63+
self.endOfBankruptcyProceedingsDate = None
6264
self.endDate = None
6365
self.registryEntityCode = None
6466
self.registryEntityName = None
@@ -76,7 +78,7 @@ def __init__(self):
7678
self.pkd = []
7779

7880
def __str__(self):
79-
return 'AllData: [uid = ' + str(self.uid) \
81+
return ('AllData: [uid = ' + str(self.uid) \
8082
+ ', nip = ' + str(self.nip) \
8183
+ ', regon = ' + str(self.regon) \
8284
+ ', type = ' + str(self.type) \
@@ -108,6 +110,8 @@ def __str__(self):
108110
+ ', holdDate = ' + str(self.holdDate) \
109111
+ ', renevalDate = ' + str(self.renevalDate) \
110112
+ ', lastUpdateDate = ' + str(self.lastUpdateDate) \
113+
+ ', bankruptcyDate = ' + str(self.bankruptcyDate) \
114+
+ ', endOfBankruptcyProceedingsDate = ' + str(self.endOfBankruptcyProceedingsDate) \
111115
+ ', endDate = ' + str(self.endDate) \
112116
+ ', registryEntityCode = ' + str(self.registryEntityCode) \
113117
+ ', registryEntityName = ' + str(self.registryEntityName) \
@@ -123,4 +127,4 @@ def __str__(self):
123127
+ ', ownershipFormName = ' + str(self.ownershipFormName) \
124128
+ ', businessPartner = [' + ', '.join(str(e) for e in self.businessPartner) + ']' \
125129
+ ', pkd = [' + ', '.join(str(e) for e in self.pkd) + ']' \
126-
+ ']'
130+
+ ']')

nip24/nip24client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class NIP24Client:
4343
NIP24 service client
4444
"""
4545

46-
VERSION = '1.4.2'
46+
VERSION = '1.4.3'
4747

4848
PRODUCTION_URL = 'https://www.nip24.pl/api'
4949
TEST_URL = 'https://www.nip24.pl/api-test'
@@ -329,6 +329,8 @@ def getAllDataExt(self, type, number, force=True):
329329
all.holdDate = self.__get_date_time(doc, '/result/firm/holdDate/text()')
330330
all.renevalDate = self.__get_date_time(doc, '/result/firm/renevalDate/text()')
331331
all.lastUpdateDate = self.__get_date_time(doc, '/result/firm/lastUpdateDate/text()')
332+
all.bankruptcyDate = self.__get_date_time(doc, '/result/firm/bankruptcyDate/text()')
333+
all.endOfBankruptcyProceedingsDate = self.__get_date_time(doc, '/result/firm/endOfBankruptcyProceedingsDate/text()')
332334
all.endDate = self.__get_date_time(doc, '/result/firm/endDate/text()')
333335

334336
all.registryEntityCode = self.__get_text(doc, '/result/firm/registryEntity/code/text()')

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from setuptools import setup
2424

2525
setup(name='nip24',
26-
version='1.4.2',
26+
version='1.4.3',
2727
description='NIP24 Service Client',
2828
url='https://www.nip24.pl',
2929
author='nip24.pl',

0 commit comments

Comments
 (0)