Skip to content

Commit 2774100

Browse files
committed
Adding business partner data
1 parent 667ce68 commit 2774100

28 files changed

+422
-105
lines changed

example-web/main.js

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

example-web/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nip24client-example-web",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "NIP24 Client for Javascript - web browser example",
55
"author": "",
66
"license": "Apache-2.0",

example/example.js

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

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nip24client-example",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "NIP24 Client for Javascript - node.js example",
55
"author": "",
66
"license": "Apache-2.0",

index.js

Lines changed: 3 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

@@ -24,6 +24,7 @@
2424
module.exports = {
2525
AccountStatus: require('./lib/accountstatus'),
2626
AllData: require('./lib/alldata'),
27+
BusinessPartner: require('./lib/businesspartner'),
2728
Err: require('./lib/error'),
2829
EUVAT: require('./lib/euvat'),
2930
IBAN: require('./lib/iban'),

lib/accountstatus.js

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

lib/alldata.js

Lines changed: 4 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

@@ -83,6 +83,7 @@ function AllData()
8383
this.ownershipFormCode = undefined;
8484
this.ownershipFormName = undefined;
8585

86+
this.businessPartner = [];
8687
this.pkd = [];
8788
}
8889

@@ -147,6 +148,7 @@ AllData.prototype.toString = function() {
147148
+ ', ownershipFormCode = ' + this.ownershipFormCode
148149
+ ', ownershipFormName = ' + this.ownershipFormName
149150

151+
+ ', businessPartner = [' + this.businessPartner + ']'
150152
+ ', pkd = [' + this.pkd + ']'
151153
+ ']';
152154
};

lib/businesspartner.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
'use strict';
22+
23+
24+
/**
25+
* Business partner
26+
*/
27+
function BusinessPartner()
28+
{
29+
this.regon = undefined;
30+
this.firmName = undefined;
31+
this.firstName = undefined;
32+
this.secondName = undefined;
33+
this.lastName = undefined;
34+
}
35+
36+
/**
37+
* String representation
38+
* @return {string} object info
39+
*/
40+
BusinessPartner.prototype.toString = function() {
41+
return 'BusinessPartner: [regon = ' + this.regon
42+
+ ', firmName = ' + this.firmName
43+
+ ', firstName = ' + this.firstName
44+
+ ', secondName = ' + this.secondName
45+
+ ', lastName = ' + this.lastName
46+
+ ']';
47+
};
48+
49+
module.exports = BusinessPartner;

lib/error.js

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)