Skip to content

Commit de26169

Browse files
committed
Add bankruptcyDate and endOfBankruptcyProceedingsDate attributes
1 parent 64340e2 commit de26169

Some content is hidden

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

53 files changed

+2740
-1110
lines changed

README.md

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,50 @@
1-
# NIP24 Client for C#
1+
# NIP24 Client for .NET
22

3-
This is the official repository for NIP24 VIES Client for C#: https://nip24.pl
3+
This is the official repository for [NIP24](https://nip24.pl) Client for .NET
44

5-
This library contains validators for VIES (VAT EU) and 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-
# License
13+
## Build
14+
15+
Microsoft Visual Studio 2022 is required to build this library. Simply open the solution file (nip24Library.sln) in the
16+
IDE and build the _Release_ version. You can also build it from the _Developer Command Prompt for Visual Studio_:
17+
18+
```bash
19+
git clone https://github.com/nip24pl/nip24-cs-client
20+
cd nip24-cs-client
21+
22+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=net35
23+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=net452
24+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=net462
25+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=net472
26+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=net48
27+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=netstandard2.0
28+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=netstandard2.0
29+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=netcoreapp3.1
30+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=net5.0
31+
msbuild nip24Library.sln /t:Build /p:Configuration=Release /p:TargetFramework=net6.0
32+
```
33+
34+
## How to use
35+
36+
Add the following dependency using the _Package Manager_ prompt:
37+
38+
```bash
39+
PM> Install-Package NIP24.NIP24Client
40+
```
41+
42+
The release version of the library is also published in _NuGet Gallery_. If you don't want to build the library
43+
yourself, you can use our published version from [this](https://www.nuget.org/packages/NIP24.NIP24Client) location.
44+
45+
46+
## License
1447

1548
This project is delivered under Apache License, Version 2.0:
1649

17-
- [![License (Apache 2.0)](https://img.shields.io/badge/license-Apache%20version%202.0-blue.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0)
50+
- [![License (Apache 2.0)](https://img.shields.io/badge/license-Apache%20version%202.0-blue.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0)

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.5.0.0")]
35-
[assembly: AssemblyFileVersion("1.5.0.0")]
34+
[assembly: AssemblyVersion("1.5.2.0")]
35+
[assembly: AssemblyFileVersion("1.5.2.0")]

nip24Library/AccountStatus.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace NIP24
2929
/// Interfejs danych o koncie użytkownika
3030
/// </summary>
3131
[Guid("E239CE38-AD8D-445E-A770-1E8011FC474A")]
32-
[ComVisible(true)]
32+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
33+
[ComVisible(true)]
3334
public interface IAccountStatus
3435
{
3536
/// <summary>

nip24Library/AllData.cs

Lines changed: 68 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ namespace NIP24
3030
/// Interfejs pełnych danych firmy
3131
/// </summary>
3232
[Guid("F2C462BF-6C2C-44E2-95AB-2D52B50450C8")]
33-
[ComVisible(true)]
33+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
34+
[ComVisible(true)]
3435
public interface IAllData
3536
{
3637
#region members of IInvoiceData
@@ -229,97 +230,109 @@ public interface IAllData
229230
[DispId(67)]
230231
DateTime LastUpdateDate { get; set; }
231232

233+
/// <summary>
234+
/// Data orzeczenia o upadłości
235+
/// </summary>
236+
[DispId(68)]
237+
DateTime BankruptcyDate { get; set; }
238+
239+
/// <summary>
240+
/// Data zakończenia postępowania upadłościowego
241+
/// </summary>
242+
[DispId(69)]
243+
DateTime EndOfBankruptcyProceedingsDate { get; set; }
244+
232245
/// <summary>
233-
/// Data zakończenia działalności
234-
/// </summary>
235-
[DispId(68)]
246+
/// Data zakończenia działalności
247+
/// </summary>
248+
[DispId(70)]
236249
DateTime EndDate { get; set; }
237250

238251
/// <summary>
239252
/// Kod organu rejestrowego
240253
/// </summary>
241-
[DispId(69)]
254+
[DispId(71)]
242255
string RegistryEntityCode { get; set; }
243256

244257
/// <summary>
245258
/// Nazwa organu rejestrowego
246259
/// </summary>
247-
[DispId(70)]
260+
[DispId(72)]
248261
string RegistryEntityName { get; set; }
249262

250263
/// <summary>
251264
/// Kod rodzaju rejestru ewidencji
252265
/// </summary>
253-
[DispId(71)]
266+
[DispId(73)]
254267
string RegistryCode { get; set; }
255268

256269
/// <summary>
257270
/// Nazwa rodzaju rejestru ewidencji
258271
/// </summary>
259-
[DispId(72)]
272+
[DispId(74)]
260273
string RegistryName { get; set; }
261274

262275
/// <summary>
263276
/// Data wpisu do rejestru ewidencji
264277
/// </summary>
265-
[DispId(73)]
278+
[DispId(75)]
266279
DateTime RecordCreationDate { get; set; }
267280

268281
/// <summary>
269282
/// Numer w rejestrze ewidencji
270283
/// </summary>
271-
[DispId(74)]
284+
[DispId(76)]
272285
string RecordNumber { get; set; }
273286

274287
/// <summary>
275288
/// Kod podstawowej formy prawnej
276289
/// </summary>
277-
[DispId(75)]
290+
[DispId(77)]
278291
string BasicLegalFormCode { get; set; }
279292

280293
/// <summary>
281294
/// Nazwa podstawowej formy prawnej
282295
/// </summary>
283-
[DispId(76)]
296+
[DispId(78)]
284297
string BasicLegalFormName { get; set; }
285298

286299
/// <summary>
287300
/// Kod szczególnej formy prawnej
288301
/// </summary>
289-
[DispId(77)]
302+
[DispId(79)]
290303
string SpecificLegalFormCode { get; set; }
291304

292305
/// <summary>
293306
/// Nazwa szczególnej formy prawnej
294307
/// </summary>
295-
[DispId(78)]
308+
[DispId(80)]
296309
string SpecificLegalFormName { get; set; }
297310

298311
/// <summary>
299312
/// Kod formy własności
300313
/// </summary>
301-
[DispId(79)]
314+
[DispId(81)]
302315
string OwnershipFormCode { get; set; }
303316

304317
/// <summary>
305318
/// Nazwa formy własności
306319
/// </summary>
307-
[DispId(80)]
320+
[DispId(82)]
308321
string OwnershipFormName { get; set; }
309322

310323
/// <summary>
311324
/// Lista wspólników s.c.
312325
/// </summary>
313-
[DispId(81)]
326+
[DispId(83)]
314327
BusinessPartner[] BusinessPartner { get; set; }
315328

316329
/// <summary>
317330
/// Lista kodów PKD
318331
/// </summary>
319-
[DispId(82)]
332+
[DispId(84)]
320333
PKD[] PKD { get; set; }
321334

322-
[DispId(83)]
335+
[DispId(85)]
323336
string ToString();
324337
}
325338

@@ -485,10 +498,40 @@ DateTime IAllData.LastUpdateDate
485498
set { LastUpdateDate = value; }
486499
}
487500

488-
/// <summary>
489-
/// Data zakończenia działalności
490-
/// </summary>
491-
[ComVisible(false)]
501+
/// <summary>
502+
/// Data orzeczenia o upadłości
503+
/// </summary>
504+
[ComVisible(false)]
505+
public DateTime? BankruptcyDate { get; set; }
506+
507+
/// <summary>
508+
/// Data orzeczenia o upadłości
509+
/// </summary>
510+
DateTime IAllData.BankruptcyDate
511+
{
512+
get { return BankruptcyDate ?? DateTime.MinValue; }
513+
set { BankruptcyDate = value; }
514+
}
515+
516+
/// <summary>
517+
/// Data zakończenia postępowania upadłościowego
518+
/// </summary>
519+
[ComVisible(false)]
520+
public DateTime? EndOfBankruptcyProceedingsDate { get; set; }
521+
522+
/// <summary>
523+
/// Data zakończenia postępowania upadłościowego
524+
/// </summary>
525+
DateTime IAllData.EndOfBankruptcyProceedingsDate
526+
{
527+
get { return EndOfBankruptcyProceedingsDate ?? DateTime.MinValue; }
528+
set { EndOfBankruptcyProceedingsDate = value; }
529+
}
530+
531+
/// <summary>
532+
/// Data zakończenia działalności
533+
/// </summary>
534+
[ComVisible(false)]
492535
public DateTime? EndDate { get; set; }
493536

494537
/// <summary>
@@ -646,6 +689,8 @@ public override string ToString()
646689
+ ", holdDate = " + HoldDate
647690
+ ", renevalDate = " + RenevalDate
648691
+ ", lastUpdateDate = " + LastUpdateDate
692+
+ ", bankruptcyDate = " + BankruptcyDate
693+
+ ", endOfBankruptcyProceedingsDate = " + EndOfBankruptcyProceedingsDate
649694
+ ", endDate = " + EndDate
650695

651696
+ ", registryEntityCode = " + RegistryEntityCode

nip24Library/BusinessPartner.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ namespace NIP24
2828
/// Interfejs elementu listy wspólników s.c.
2929
/// </summary>
3030
[Guid("4C20999B-27DF-44BF-9535-25B11EB9F570")]
31+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
3132
[ComVisible(true)]
3233
public interface IBusinessPartner
3334
{

nip24Library/EUVAT.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ namespace NIP24
3030
/// Interfejs weryfikatora numeru EU VAT ID
3131
/// </summary>
3232
[Guid("155D7B28-4BA8-4F37-93D7-7AF0DAD2280A")]
33-
[ComVisible(true)]
33+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
34+
[ComVisible(true)]
3435
public interface IEUVAT
3536
{
3637
/// <summary>

nip24Library/IBAN.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ namespace NIP24
3232
/// Weryfikator numeru rachunku bankowego IBAN
3333
/// </summary>
3434
[Guid("C76ABFD5-38EC-457D-9723-97F63A76AF4C")]
35-
[ComVisible(true)]
35+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
36+
[ComVisible(true)]
3637
public interface IIBAN
3738
{
3839
/// <summary>

nip24Library/IBANStatus.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace NIP24
2929
/// Status rachunku bankowego IBAN
3030
/// </summary>
3131
[Guid("BEFDF1CE-BE0C-48DA-8A96-150DCA015E1E")]
32-
[ComVisible(true)]
32+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
33+
[ComVisible(true)]
3334
public interface IIBANStatus
3435
{
3536
/// <summary>

nip24Library/InvoiceData.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ namespace NIP24
2828
/// Interfejs danych firmy wymaganych do wystawienia faktury
2929
/// </summary>
3030
[Guid("03DF6A61-201B-47D7-A8D3-F4A192C1E557")]
31-
[ComVisible(true)]
31+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
32+
[ComVisible(true)]
3233
public interface IInvoiceData
3334
{
3435
/// <summary>

nip24Library/KRS.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace NIP24
2929
/// Interfejs weryfikatora numeru KRS
3030
/// </summary>
3131
[Guid("F0B4C852-942A-4973-993F-A36C54382035")]
32-
[ComVisible(true)]
32+
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
33+
[ComVisible(true)]
3334
public interface IKRS
3435
{
3536
/// <summary>

0 commit comments

Comments
 (0)