Skip to content

Commit a363206

Browse files
committed
Adding business partner data
1 parent e7b5b91 commit a363206

25 files changed

+231
-58
lines changed

nip24Example/Program.cs

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 <[email protected]>
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

nip24Example/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.4.8.0")]
35-
[assembly: AssemblyFileVersion("1.4.8.0")]
34+
[assembly: AssemblyVersion("1.4.9.0")]
35+
[assembly: AssemblyFileVersion("1.4.9.0")]

nip24Library/AccountStatus.cs

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 <[email protected]>
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

nip24Library/AllData.cs

Lines changed: 33 additions & 10 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 <[email protected]>
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

@@ -307,13 +307,19 @@ public interface IAllData
307307
[DispId(80)]
308308
string OwnershipFormName { get; set; }
309309

310+
/// <summary>
311+
/// Lista wspólników s.c.
312+
/// </summary>
313+
[DispId(81)]
314+
BusinessPartner[] BusinessPartner { get; set; }
315+
310316
/// <summary>
311-
/// Lista kodów PKD
312-
/// </summary>
313-
[DispId(81)]
317+
/// Lista kodów PKD
318+
/// </summary>
319+
[DispId(82)]
314320
PKD[] PKD { get; set; }
315321

316-
[DispId(82)]
322+
[DispId(83)]
317323
string ToString();
318324
}
319325

@@ -564,10 +570,25 @@ DateTime IAllData.RecordCreationDate
564570
/// </summary>
565571
public string OwnershipFormName { get; set; }
566572

567-
/// <summary>
568-
/// Lista kodów PKD
569-
/// </summary>
570-
[ComVisible(false)]
573+
/// <summary>
574+
/// Lista wspólników s.c.
575+
/// </summary>
576+
[ComVisible(false)]
577+
public List<BusinessPartner> BusinessPartner { get; set; }
578+
579+
/// <summary>
580+
/// Lista wspólników s.c.
581+
/// </summary>
582+
BusinessPartner[] IAllData.BusinessPartner
583+
{
584+
get { return BusinessPartner.ToArray(); }
585+
set { BusinessPartner = new List<BusinessPartner>(value); }
586+
}
587+
588+
/// <summary>
589+
/// Lista kodów PKD
590+
/// </summary>
591+
[ComVisible(false)]
571592
public List<PKD> PKD { get; set; }
572593

573594
/// <summary>
@@ -584,6 +605,7 @@ PKD[] IAllData.PKD
584605
/// </summary>
585606
public AllData()
586607
{
608+
BusinessPartner = new List<BusinessPartner>();
587609
PKD = new List<PKD>();
588610
}
589611

@@ -644,6 +666,7 @@ public override string ToString()
644666
+ ", ownershipFormCode = " + OwnershipFormCode
645667
+ ", ownershipFormName = " + OwnershipFormName
646668

669+
+ ", businessPartner = [" + string.Join(", ", BusinessPartner.ConvertAll(e => Convert.ToString(e)).ToArray()) + "]"
647670
+ ", pkd = [" + string.Join(", ", PKD.ConvertAll(e => Convert.ToString(e)).ToArray()) + "]"
648671
+ "]";
649672
}

nip24Library/BusinessPartner.cs

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
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 <[email protected]>
17+
* @copyright 2015-2024 NETCAT (www.netcat.pl)
18+
* @license http://www.apache.org/licenses/LICENSE-2.0
19+
*/
20+
21+
using System.Runtime.InteropServices;
22+
23+
namespace NIP24
24+
{
25+
#region interface
26+
27+
/// <summary>
28+
/// Interfejs elementu listy wspólników s.c.
29+
/// </summary>
30+
[Guid("4C20999B-27DF-44BF-9535-25B11EB9F570")]
31+
[ComVisible(true)]
32+
public interface IBusinessPartner
33+
{
34+
/// <summary>
35+
/// Numer REGON
36+
/// </summary>
37+
[DispId(1)]
38+
string REGON { get; set; }
39+
40+
/// <summary>
41+
/// Nazwa firmy
42+
/// </summary>
43+
[DispId(2)]
44+
string FirmName { get; set; }
45+
46+
/// <summary>
47+
/// Imię pierwsze
48+
/// </summary>
49+
[DispId(3)]
50+
string FirstName { get; set; }
51+
52+
/// <summary>
53+
/// Imię drugie
54+
/// </summary>
55+
[DispId(4)]
56+
string SecondName { get; set; }
57+
58+
/// <summary>
59+
/// Nazwisko
60+
/// </summary>
61+
[DispId(5)]
62+
string LastName { get; set; }
63+
64+
[DispId(6)]
65+
string ToString();
66+
}
67+
68+
#endregion
69+
70+
#region implementation
71+
72+
/// <summary>
73+
/// Element listy wspólników s.c.
74+
/// </summary>
75+
[Guid("C29DEC29-AB37-4A0C-93B5-8335D1A222FE")]
76+
[ClassInterface(ClassInterfaceType.None)]
77+
[ComVisible(true)]
78+
public class BusinessPartner : IBusinessPartner
79+
{
80+
/// <summary>
81+
/// Numer REGON
82+
/// </summary>
83+
public string REGON { get; set; }
84+
85+
/// <summary>
86+
/// Nazwa firmy
87+
/// </summary>
88+
public string FirmName { get; set; }
89+
90+
/// <summary>
91+
/// Imię pierwsze
92+
/// </summary>
93+
public string FirstName { get; set; }
94+
95+
/// <summary>
96+
/// Imię drugie
97+
/// </summary>
98+
public string SecondName { get; set; }
99+
100+
/// <summary>
101+
/// Nazwisko
102+
/// </summary>
103+
public string LastName { get; set; }
104+
105+
/// <summary>
106+
/// Tworzy nowy, pusty obiekt
107+
/// </summary>
108+
public BusinessPartner()
109+
{
110+
}
111+
112+
public override string ToString()
113+
{
114+
return "BusinessPartner: [regon = " + REGON
115+
+ ", firmName = " + FirmName
116+
+ ", firstName = " + FirstName
117+
+ ", secondName = " + SecondName
118+
+ ", lastName = " + LastName
119+
+ "]";
120+
}
121+
}
122+
123+
#endregion
124+
}

nip24Library/EUVAT.cs

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 <[email protected]>
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

nip24Library/Error.cs

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 <[email protected]>
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

nip24Library/IBAN.cs

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 <[email protected]>
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

nip24Library/IBANStatus.cs

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 <[email protected]>
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

nip24Library/InvoiceData.cs

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 <[email protected]>
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)