Skip to content

Commit e5af2c3

Browse files
committed
Support for command line client app.
1 parent 82f0bab commit e5af2c3

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nip24example",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"description": "NIP24 Client for Javascript - Example",
55
"author": "",
66
"license": "Apache-2.0",

lib/accountstatus.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ function AccountStatus()
4848
this.overPlanAllowed = undefined;
4949
this.terytCodes = undefined;
5050
this.excelAddIn = undefined;
51-
this.JPKVAT = undefined;
51+
this.jpkVat = undefined;
52+
this.cli = undefined;
5253
this.stats = undefined;
5354
this.nipMonitor = undefined;
5455

@@ -103,6 +104,7 @@ AccountStatus.prototype.toString = function() {
103104
+ ', terytCodes = ' + this.terytCodes
104105
+ ', excelAddIn = ' + this.excelAddIn
105106
+ ', jpkVat = ' + this.jpkVat
107+
+ ', cli = ' + this.cli
106108
+ ', stats = ' + this.stats
107109
+ ', NIPMonitor = ' + this.nipMonitor
108110

lib/nip24client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var VATStatus = require('./vatstatus');
4747
var WLStatus = require('./wlstatus');
4848

4949

50-
NIP24Client.prototype.VERSION = '1.2.5';
50+
NIP24Client.prototype.VERSION = '1.2.6';
5151

5252
NIP24Client.prototype.PRODUCTION_URL = 'https://www.nip24.pl/api';
5353
NIP24Client.prototype.TEST_URL = 'https://www.nip24.pl/api-test';
@@ -1068,7 +1068,8 @@ NIP24Client.prototype.getAccountStatus = function() {
10681068
as.overPlanAllowed = (xpathString(doc, '/result/account/billingPlan/overplanAllowed/text()') === 'true');
10691069
as.terytCodes = (xpathString(doc, '/result/account/billingPlan/terytCodes/text()') === 'true');
10701070
as.excelAddIn = (xpathString(doc, '/result/account/billingPlan/excelAddin/text()') === 'true');
1071-
as.JPKVAT = (xpathString(doc, '/result/account/billingPlan/jpkVat/text()') === 'true');
1071+
as.jpkVat = (xpathString(doc, '/result/account/billingPlan/jpkVat/text()') === 'true');
1072+
as.cli = (xpathString(doc, '/result/account/billingPlan/cli/text()') === 'true');
10721073
as.stats = (xpathString(doc, '/result/account/billingPlan/stats/text()') === 'true');
10731074
as.nipMonitor = (xpathString(doc, '/result/account/billingPlan/nipMonitor/text()') === 'true');
10741075

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nip24client",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"description": "NIP24 Client for Javascript",
55
"keywords": [
66
"nip24",

0 commit comments

Comments
 (0)