New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

popbill

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popbill - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

HTCashbillTest.js

18

CashbillTest.js

@@ -14,2 +14,9 @@ var popbill = require('./');

cashbillService.getChargeInfo('1234567890', 'testkorea',
function(response){
console.log(response)
}, function(error){
console.log(error)
});
State = ['100', '200', '3**'];

@@ -305,12 +312,1 @@ TradeType = ['N', 'C'];

})

@@ -14,4 +14,11 @@ var popbill = require('./');

closedownService.getUnitCost('1234567890',
closedownService.getChargeInfo('1234567890', 'testkorea',
function(response){
console.log(response);
}, function(error){
console.log(error);
})
closedownService.getUnitCost('1234567890',
function(response){
console.log('Unitcost : ' + response);

@@ -44,2 +51,1 @@ }, function(error){

})

@@ -14,2 +14,10 @@ var popbill = require('./');

faxService.getChargeInfo('1234567890', 'testkorea',
function(response){
console.log(response);
}, function (error){
console.log(error);
}
);
State = [ 1, 2, 3, 4 ];

@@ -16,0 +24,0 @@ ReserveYN = false;

@@ -6,2 +6,4 @@ var TaxinvoiceService = require('./lib/TaxinvoiceService');

var FaxService = require('./lib/FaxService');
var HTTaxinvoiceService = require('./lib/HTTaxinvoiceService');
var HTCashbillService = require('./lib/HTCashbillService');
var ClosedownService = require('./lib/ClosedownService');

@@ -55,2 +57,16 @@ var linkhub = require('linkhub');

exports.HTTaxinvoiceService = function() {
if(!this._HTTaxinvoiceService) {
this._HTTaxinvoiceService = new HTTaxinvoiceService(configuration);
}
return this._HTTaxinvoiceService;
}
exports.HTCashbillService = function() {
if(!this._HTCashbillService) {
this._HTCashbillService = new HTCashbillService(configuration);
}
return this._HTCashbillService;
}
exports.ClosedownService = function() {

@@ -61,2 +77,2 @@ if(!this._ClosedownService) {

return this._ClosedownService;
}
}

@@ -345,3 +345,1 @@ var Util = require('util');

}

@@ -12,2 +12,14 @@ var Util = require('util');

CashbillService.prototype.getChargeInfo = function(CorpNum, UserID, success, error) {
this._executeAction({
uri : '/Cashbill/ChargeInfo',
CorpNum : CorpNum,
UserID : UserID,
success : function(response){
if(success) success(response);
},
error : error
});
};
CashbillService.prototype.getURL = function(CorpNum, TOGO, UserID, success, error){

@@ -550,15 +562,1 @@ this._executeAction({

}

@@ -12,2 +12,18 @@ var Util = require('util');

ClosedownService.prototype.getChargeInfo = function(CorpNum, UserID, success, error) {
if(!CorpNum || 0 === CorpNum.length) {
this._throwError(-99999999,'팝빌회원 사업자번호가 입력되지 않았습니다.',error);
return;
}
this._executeAction({
uri : '/CloseDown/ChargeInfo',
CorpNum : CorpNum,
UserID : UserID,
success : function(response){
if(success) success(response);
},
error : error
});
};
ClosedownService.prototype.getUnitCost = function(CorpNum,success,error) {

@@ -40,7 +56,7 @@ if(!CorpNum || 0 === CorpNum.length) {

uri : '/CloseDown?CN=' + CheckCorpNum,
CorpNum : UserCorpNum,
CorpNum : UserCorpNum,
Method : 'GET',
success : function(response){
if(success) success(response);
},
},
error : error

@@ -61,6 +77,6 @@ });

var postData = this._stringify(CorpNumList)
this._executeAction({
uri : '/CloseDown',
CorpNum : UserCorpNum,
CorpNum : UserCorpNum,
Data : postData,

@@ -70,5 +86,5 @@ Method : 'POST',

if(success) success(response);
},
},
error : error
});
};

@@ -12,2 +12,15 @@ var Util = require('util');

FaxService.prototype.getChargeInfo = function(CorpNum, UserID, success, error) {
this._executeAction({
uri : '/FAX/ChargeInfo',
CorpNum : CorpNum,
UserID : UserID,
success : function(response){
if(success) success(response);
},
error : error
});
};
FaxService.prototype.getUnitCost = function(CorpNum,success,error) {

@@ -178,2 +191,1 @@ this._executeAction({

}

@@ -14,2 +14,19 @@ var Util = require('util');

MessageService.prototype.getChargeInfo = function(CorpNum, MessageType, UserID, success, error) {
if(!MessageType || 0 === MessageType.length) {
this._throwError(-99999999,'메시지 유형이 입력되지 않았습니다.',error);
return;
}
this._executeAction({
uri : '/Message/ChargeInfo?Type=' + MessageType,
CorpNum : CorpNum,
UserID : UserID,
success : function(response){
if(success) success(response);
},
error : error
});
};
MessageService.prototype.getUnitCost = function(CorpNum,MessageType,success,error) {

@@ -375,10 +392,1 @@ if(!MessageType || 0 === MessageType.length) {

}

@@ -17,2 +17,14 @@ var Util = require('util');

StatementService.prototype.getChargeInfo = function(CorpNum,ItemCode,UserID,success,error) {
this._executeAction({
uri : '/Statement/ChargeInfo/'+ItemCode,
CorpNum : CorpNum,
UserID : UserID,
success : function(response){
if(success) success(response);
},
error : error
});
};
StatementService.prototype.getUnitCost = function(CorpNum,ItemCode,success,error) {

@@ -739,40 +751,1 @@ this._executeAction({

};

@@ -12,2 +12,18 @@ var Util = require('util');

TaxinvoiceService.prototype.getChargeInfo = function (CorpNum, UserID, success, error){
if(!CorpNum || 0 === CorpNum.length) {
this._throwError(-99999999,'팝빌회원 사업자번호가 입력되지 않았습니다.',error);
return;
}
this._executeAction({
uri : '/Taxinvoice/ChargeInfo',
CorpNum : CorpNum,
UserID : UserID,
success : function(response){
if(success) success(response);
},
error : error
});
};
TaxinvoiceService.prototype.getUnitCost = function(CorpNum,success,error) {

@@ -924,3 +940,16 @@ if(!CorpNum || 0 === CorpNum.length) {

TaxinvoiceService.prototype.search = function(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, success, error){
BaseService.addMethod(TaxinvoiceService.prototype, "search", function(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, success, error){
this.search(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, "", "", "", "", success, error);
});
BaseService.addMethod(TaxinvoiceService.prototype, "search", function(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, UserID, success, error){
this.search(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, "", "", "", UserID, success, error);
});
BaseService.addMethod(TaxinvoiceService.prototype, "search", function(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, TaxRegIDType, TaxRegIDYN, TaxRegID, success, error){
this.search(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, TaxRegIDType, TaxRegIDYN, TaxRegID, "", success, error);
});
BaseService.addMethod(TaxinvoiceService.prototype, "search", function(CorpNum, KeyType, DType, SDate, EDate, State, Type, TaxType, LateOnly, Order, Page, PerPage, TaxRegIDType, TaxRegIDYN, TaxRegID, UserID, success, error){
if(!DType || 0 === DType.length) {

@@ -956,6 +985,15 @@ this._throwError(-99999999,'검색일자 유형이 입력되지 않았습니다.',error);

targetURI += '&PerPage=' + PerPage;
targetURI += '&TaxRegIDType=' + TaxRegIDType;
if ( TaxRegIDYN !== "" )
targetURI += '&TaxRegIDYN=' + TaxRegIDYN;
targetURI += '&TaxRegID=' + TaxRegID;
console.log(targetURI);
this._executeAction({
uri : targetURI,
CorpNum : CorpNum,
UserID : UserID,
Method : 'GET',

@@ -967,3 +1005,3 @@ success : function(response){

});
};
});

@@ -1090,7 +1128,1 @@

};

@@ -14,2 +14,8 @@ var popbill = require('./');

messageService.getChargeInfo('1234567890', popbill.MessageType.MMS, '',
function(response){
console.log(response);
});
messageService.getAutoDenyList('1234567890',

@@ -170,3 +176,1 @@ function(response){

});
{
"name": "popbill",
"version": "1.0.3",
"version": "1.0.4",
"description": "Popbill API SDK for node. see www.popbill.com",

@@ -33,2 +33,3 @@ "author": "Kim Seongjun <pallet027@gmail.com>",

"closedown",
"hometax",
"SMS",

@@ -35,0 +36,0 @@ "FAX",

# node-popbill
팝빌 node.js SDK v1.0.3
팝빌 node.js SDK v1.0.4

@@ -4,0 +4,0 @@ ## Install

@@ -14,2 +14,9 @@ var popbill = require('./');

statementService.getChargeInfo('1234567890', 121, 'testkorea',
function(response){
console.log(response);
}, function(error){
console.log(error);
});
statementService.attachStatement('1234567890', 121, '20160314-01', 121, '20160314-02',

@@ -507,16 +514,1 @@ function(response){

});

@@ -14,8 +14,11 @@ var popbill = require('./');

State = ['100','200','3**'];
State = ['3**','6**'];
Type = ['N', 'M'];
TaxType = ['T','Z'];
TaxType = ['T','N','Z'];
LateOnly = null;
TaxRegIDType = 'S'
TaxRegIDYN = '';
TaxRegID = '';
taxinvoiceService.search('1234567890',popbill.MgtKeyType.SELL, 'R', '20160305', '20160308', State, Type, TaxType, LateOnly, 'D', 1, 10,
taxinvoiceService.search('1234567890',popbill.MgtKeyType.SELL, 'W', '20160601', '20160731', State, Type, TaxType, LateOnly, 'D', 1, 10, TaxRegIDType, TaxRegIDYN, TaxRegID, 'testkorea',
function(response){

@@ -27,2 +30,9 @@ console.log(response);

taxinvoiceService.getChargeInfo('1234567890', 'testkorea',
function(response){
console.log(response);
}, function(result){
console.log(result);
})
Taxinvoice = {

@@ -635,18 +645,1 @@ writeDate : '20160314',

})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc