Skip to content

Commit cd30603

Browse files
committed
Adding business partner data
1 parent f53796c commit cd30603

23 files changed

+135
-63
lines changed

example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

nip24/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -16,12 +16,13 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

2323
from nip24.error import *
2424
from nip24.number import *
25+
from nip24.businesspartner import *
2526
from nip24.pkd import *
2627
from nip24.invoicedata import *
2728
from nip24.alldata import *
@@ -40,4 +41,4 @@
4041
from nip24.iban import *
4142
from nip24.nip24client import *
4243

43-
__version__ = '1.4.0'
44+
__version__ = '1.4.1'

nip24/accountstatus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

nip24/alldata.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

@@ -72,6 +72,7 @@ def __init__(self):
7272
self.specificLegalFormName = None
7373
self.ownershipFormCode = None
7474
self.ownershipFormName = None
75+
self.businessPartner = []
7576
self.pkd = []
7677

7778
def __str__(self):
@@ -120,5 +121,6 @@ def __str__(self):
120121
+ ', specificLegalFormName = ' + str(self.specificLegalFormName) \
121122
+ ', ownershipFormCode = ' + str(self.ownershipFormCode) \
122123
+ ', ownershipFormName = ' + str(self.ownershipFormName) \
124+
+ ', businessPartner = [' + ', '.join(str(e) for e in self.businessPartner) + ']' \
123125
+ ', pkd = [' + ', '.join(str(e) for e in self.pkd) + ']' \
124126
+ ']'

nip24/businesspartner.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# @author NETCAT <firma@netcat.pl>
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
20+
# @license http://www.apache.org/licenses/LICENSE-2.0
21+
#
22+
23+
24+
class BusinessPartner:
25+
"""
26+
Business partner data
27+
"""
28+
29+
def __init__(self):
30+
self.regon = None
31+
self.firmName = None
32+
self.firstName = None
33+
self.secondName = None
34+
self.lastName = None
35+
36+
def __str__(self):
37+
return 'BusinessPartner: [regon = ' + str(self.regon) \
38+
+ ', firmName = ' + str(self.firmName) \
39+
+ ', firstName = ' + str(self.firstName) \
40+
+ ', secondName = ' + str(self.secondName) \
41+
+ ', lastName = ' + str(self.lastName) \
42+
+ ']'

nip24/error.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License")
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

@@ -27,7 +27,7 @@ class Error:
2727
"""
2828

2929
NIP_EMPTY = 1
30-
NIP_UNKNOWN= 2
30+
NIP_UNKNOWN = 2
3131
GUS_LOGIN = 3
3232
GUS_CAPTCHA = 4
3333
GUS_SYNC = 5

nip24/euvat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License"),
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

nip24/iban.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License"),
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

nip24/ibanstatus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

nip24/invoicedata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright 2015-2023 NETCAT (www.netcat.pl)
4+
# Copyright 2015-2024 NETCAT (www.netcat.pl)
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
#
1818
# @author NETCAT <firma@netcat.pl>
19-
# @copyright 2015-2023 NETCAT (www.netcat.pl)
19+
# @copyright 2015-2024 NETCAT (www.netcat.pl)
2020
# @license http://www.apache.org/licenses/LICENSE-2.0
2121
#
2222

0 commit comments

Comments
 (0)