Skip to content

Commit 8423279

Browse files
committed
Adding business partner data
1 parent 55d0117 commit 8423279

24 files changed

+238
-63
lines changed

pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>pl.nip24</groupId>
77
<artifactId>nip24-client</artifactId>
8-
<version>1.4.0</version>
8+
<version>1.4.1</version>
99

1010
<name>nip24-java-client</name>
1111
<description>NIP24 Service Client for Java</description>
@@ -47,8 +47,8 @@
4747
<java.version>11</java.version>
4848
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4949

50-
<swagger.version>2.2.16</swagger.version>
51-
<jackson.version>2.15.2</jackson.version>
50+
<swagger.version>2.2.22</swagger.version>
51+
<jackson.version>2.17.1</jackson.version>
5252
</properties>
5353

5454
<build>
@@ -57,7 +57,7 @@
5757
<plugin>
5858
<groupId>org.apache.maven.plugins</groupId>
5959
<artifactId>maven-compiler-plugin</artifactId>
60-
<version>3.11.0</version>
60+
<version>3.13.0</version>
6161
<configuration>
6262
<source>${java.version}</source>
6363
<target>${java.version}</target>
@@ -68,7 +68,7 @@
6868
<plugin>
6969
<groupId>org.apache.maven.plugins</groupId>
7070
<artifactId>maven-source-plugin</artifactId>
71-
<version>3.3.0</version>
71+
<version>3.3.1</version>
7272
<executions>
7373
<execution>
7474
<id>attach-sources</id>
@@ -83,7 +83,7 @@
8383
<plugin>
8484
<groupId>org.apache.maven.plugins</groupId>
8585
<artifactId>maven-javadoc-plugin</artifactId>
86-
<version>3.6.0</version>
86+
<version>3.7.0</version>
8787
<executions>
8888
<execution>
8989
<id>attach-javadocs</id>
@@ -100,11 +100,11 @@
100100
</build>
101101

102102
<dependencies>
103-
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
103+
<!-- https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api -->
104104
<dependency>
105-
<groupId>javax.xml.bind</groupId>
106-
<artifactId>jaxb-api</artifactId>
107-
<version>2.3.1</version>
105+
<groupId>jakarta.xml.bind</groupId>
106+
<artifactId>jakarta.xml.bind-api</artifactId>
107+
<version>4.0.2</version>
108108
</dependency>
109109

110110
<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-annotations -->

src/main/java/pl/nip24/client/AccountStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

src/main/java/pl/nip24/client/AllData.java

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

@@ -70,15 +70,17 @@ public class AllData extends InvoiceData {
7070

7171
protected String ownershipFormCode;
7272
protected String ownershipFormName;
73-
73+
74+
protected List<BusinessPartner> businessPartner;
7475
protected List<PKD> pkd;
7576

7677
/**
7778
* Tworzy nowy obiekt
7879
*/
7980
public AllData()
8081
{
81-
pkd = new ArrayList<PKD>();
82+
businessPartner = new ArrayList<>();
83+
pkd = new ArrayList<>();
8284
}
8385

8486
/**
@@ -639,6 +641,24 @@ public void setOwnershipFormName(String ownershipFormName)
639641
this.ownershipFormName = ownershipFormName;
640642
}
641643

644+
/**
645+
* Lista wspólników s.c.
646+
* @return lista wspólników s.c.
647+
*/
648+
public List<BusinessPartner> getBusinessPartner()
649+
{
650+
return businessPartner;
651+
}
652+
653+
/**
654+
* Dodanie wspólnika s.c.
655+
* @param bp wspólnik s.c.
656+
*/
657+
public void addBusinessPartner(BusinessPartner bp)
658+
{
659+
this.businessPartner.add(bp);
660+
}
661+
642662
/**
643663
* Lista kodów PKD
644664
* @return lista kodów
@@ -716,6 +736,7 @@ public String toString()
716736
+ ", ownershipFormCode = " + ownershipFormCode
717737
+ ", ownershipFormName = " + ownershipFormName
718738

739+
+ ", businessPartner = " + businessPartner
719740
+ ", pkd = " + pkd
720741
+ "]";
721742
}
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/**
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* @author NETCAT <firma@netcat.pl>
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
18+
* @license http://www.apache.org/licenses/LICENSE-2.0
19+
*/
20+
21+
package pl.nip24.client;
22+
23+
/**
24+
* Element listy wspólników s.c.
25+
* @author robert
26+
*/
27+
public class BusinessPartner {
28+
29+
private String regon;
30+
private String firmName;
31+
private String firstName;
32+
private String secondName;
33+
private String lastName;
34+
35+
/**
36+
* Tworzy nowy obiekt
37+
*/
38+
public BusinessPartner()
39+
{
40+
}
41+
42+
/**
43+
* Numer REGON
44+
* @return numer REGON
45+
*/
46+
public String getRegon() {
47+
return regon;
48+
}
49+
50+
/**
51+
* Numer REGON
52+
* @param regon numer REGON
53+
*/
54+
public void setRegon(String regon) {
55+
this.regon = regon;
56+
}
57+
58+
/**
59+
* Nazwa firmy
60+
* @return nazwa firmy
61+
*/
62+
public String getFirmName() {
63+
return firmName;
64+
}
65+
66+
/**
67+
* Nazwa firmy
68+
* @param firmName nazwa firmy
69+
*/
70+
public void setFirmName(String firmName) {
71+
this.firmName = firmName;
72+
}
73+
74+
/**
75+
* Imię pierwsze
76+
* @return imię pierwsze
77+
*/
78+
public String getFirstName() {
79+
return firstName;
80+
}
81+
82+
/**
83+
* Imię pierwsze
84+
* @param firstName imię pierwsze
85+
*/
86+
public void setFirstName(String firstName) {
87+
this.firstName = firstName;
88+
}
89+
90+
/**
91+
* Imię drugie
92+
* @return imię drugie
93+
*/
94+
public String getSecondName() {
95+
return secondName;
96+
}
97+
98+
/**
99+
* Imię drugie
100+
* @param secondName imię drugie
101+
*/
102+
public void setSecondName(String secondName) {
103+
this.secondName = secondName;
104+
}
105+
106+
/**
107+
* Nazwisko
108+
* @return nazwisko
109+
*/
110+
public String getLastName() {
111+
return lastName;
112+
}
113+
114+
/**
115+
* Nazwisko
116+
* @param lastName nazwisko
117+
*/
118+
public void setLastName(String lastName) {
119+
this.lastName = lastName;
120+
}
121+
122+
@Override
123+
public String toString() {
124+
return "BusinessPartner: [regon = " + regon
125+
+ ", firmName = " + firmName
126+
+ ", firstName = " + firstName
127+
+ ", secondName = " + secondName
128+
+ ", lastName = " + lastName
129+
+ "]";
130+
}
131+
}

src/main/java/pl/nip24/client/EUVAT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

src/main/java/pl/nip24/client/Error.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

src/main/java/pl/nip24/client/IBAN.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

src/main/java/pl/nip24/client/IBANStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

src/main/java/pl/nip24/client/InvoiceData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

src/main/java/pl/nip24/client/KRS.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015-2023 NETCAT (www.netcat.pl)
2+
* Copyright 2015-2024 NETCAT (www.netcat.pl)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @author NETCAT <firma@netcat.pl>
17-
* @copyright 2015-2023 NETCAT (www.netcat.pl)
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
1818
* @license http://www.apache.org/licenses/LICENSE-2.0
1919
*/
2020

0 commit comments

Comments
 (0)