Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

popbill

Package Overview
Dependencies
Maintainers
1
Versions
75
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.4 to 1.0.5

6

FaxTest.js

@@ -53,3 +53,3 @@ var popbill = require('./');

faxService.sendFax('1234567890','07075103710','111222333', '수신자명', FilePaths, '2015810200000',
faxService.sendFax('1234567890','07075103710','발신자명','111222333', '수신자명', FilePaths, '2015810200000',
function(receiptNum){

@@ -61,3 +61,3 @@ console.log('receiptNum is : ' + receiptNum);

faxService.sendFax('1234567890','07075103710',Receivers, FilePaths, '',
faxService.sendFax('1234567890','07075103710','발신자명',Receivers, FilePaths, '',
function(receiptNum){

@@ -69,3 +69,3 @@ console.log('receiptNum is : ' + receiptNum);

faxService.getFaxResult('1234567890', '015081013080700001',
faxService.getFaxResult('1234567890', '016080913460600001',
function(response){

@@ -72,0 +72,0 @@ console.log(response);

@@ -30,3 +30,3 @@ var popbill = require('./');

jobID = "016072114000000002";
jobID = "016072114000000007";

@@ -51,3 +51,3 @@ htCashbillService.getJobState('1234567890', jobID,

htCashbillService.search('1234567890', '016072114000000002', TradeType, TradeUsage, 1, 10, 'D', 'testkorea',
htCashbillService.search('1234567890', '016072114000000007', TradeType, TradeUsage, 1, 10, 'D', 'testkorea',
function(response){

@@ -59,3 +59,3 @@ console.log(response);

htCashbillService.summary('1234567890', '016072114000000002', TradeType, TradeUsage, 'testkorea',
htCashbillService.summary('1234567890', '016072114000000007', TradeType, TradeUsage, 'testkorea',
function(response){

@@ -62,0 +62,0 @@ console.log(response);

@@ -30,3 +30,3 @@ var popbill = require('./');

jobID = "016072111000000004";
jobID = "016072114000000004";

@@ -46,3 +46,2 @@ htTaxinvoiceService.getJobState('1234567890', jobID,

});
BaseService.addMethod(HTTaxinvoiceService.prototype, "search", function(CorpNum, JobID, Type, TaxType, PurposeType, TaxRegIDType, TaxRegIDYN, TaxRegID, Page, PerPage, Order, UserID, success, error){

@@ -53,6 +52,6 @@ Type = ['N', 'M'];

TaxRegIDType = 'S';
TaxRegIDYN = '0';
TaxRegIDYN = '';
TaxRegID = '';
htTaxinvoiceService.search('1234567890', '016072111000000004', Type, TaxType, PurposeType, TaxRegIDType, TaxRegIDYN, TaxRegID, 1, 10, 'D', 'testkorea',
htTaxinvoiceService.search('1234567890', '016072114000000005', Type, TaxType, PurposeType, TaxRegIDType, TaxRegIDYN, TaxRegID, 1, 10, 'D', 'testkorea',
function(response){

@@ -64,3 +63,3 @@ console.log(response);

htTaxinvoiceService.summary('1234567890', '016072111000000004', Type, TaxType, PurposeType, TaxRegIDType, TaxRegIDYN, TaxRegID, 'testkorea',
htTaxinvoiceService.summary('1234567890', '016072114000000005', Type, TaxType, PurposeType, TaxRegIDType, TaxRegIDYN, TaxRegID, 'testkorea',
function(response){

@@ -72,3 +71,3 @@ console.log(response);

ntsconfirmNum = '20160720410000290000009b';
ntsconfirmNum = '201607204100002900001205';

@@ -75,0 +74,0 @@ htTaxinvoiceService.getTaxinvoice('1234567890', ntsconfirmNum, 'testkorea',

@@ -36,5 +36,6 @@ var Util = require('util');

BaseService.addMethod(FaxService.prototype, "sendFax", function(CorpNum, Sender, Receiver, ReceiverName, FilePaths, ReserveDT, success, error){
BaseService.addMethod(FaxService.prototype, "sendFax", function(CorpNum, Sender, SenderName, Receiver, ReceiverName, FilePaths, ReserveDT, success, error){
var options = {
SenderNum : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -48,5 +49,6 @@ ReceiverName : ReceiverName,

BaseService.addMethod(FaxService.prototype, "sendFax", function(CorpNum, Sender, Receivers, FilePaths, ReserveDT, success, error){
BaseService.addMethod(FaxService.prototype, "sendFax", function(CorpNum, Sender, SenderName, Receivers, FilePaths, ReserveDT, success, error){
var options = {
SenderNum : Sender,
SenderName : SenderName,
FilePaths : FilePaths,

@@ -72,2 +74,3 @@ Receiver : Receivers,

snd : options.SenderNum,
sndnm : options.SenderName,
fCnt : typeof options.FilePaths === 'string' ? 1 : options.FilePaths.length,

@@ -74,0 +77,0 @@ sndDT : options.ReserveDT,

@@ -59,5 +59,6 @@ var Util = require('util');

BaseService.addMethod(MessageService.prototype, 'sendSMS', function(CorpNum, Sender, Receiver, ReceiverName, Contents, reserveDT, success, error){
BaseService.addMethod(MessageService.prototype, 'sendSMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Contents, reserveDT, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -68,8 +69,9 @@ ReceiverName : ReceiverName,

this.sendMessage('SMS', CorpNum, '', '', '', Messages, reserveDT, false, success, error);
this.sendMessage('SMS', CorpNum, '', '', '','', Messages, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendSMS', function(CorpNum, Sender, Receiver, ReceiverName, Contents, reserveDT, adsYN, success, error){
BaseService.addMethod(MessageService.prototype, 'sendSMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Contents, reserveDT, adsYN, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -80,16 +82,17 @@ ReceiverName : ReceiverName,

this.sendMessage('SMS', CorpNum, '', '', '', Messages, reserveDT, adsYN, success, error);
this.sendMessage('SMS', CorpNum, '', '', '', '', Messages, reserveDT, adsYN, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendSMS_multi', function(CorpNum, Sender, Contents, Messages, reserveDT, success, error){
this.sendMessage('SMS', CorpNum, Sender, '', Contents, Messages, reserveDT, false, success, error);
BaseService.addMethod(MessageService.prototype, 'sendSMS_multi', function(CorpNum, Sender, SenderName, Contents, Messages, reserveDT, success, error){
this.sendMessage('SMS', CorpNum, Sender, SenderName, '', Contents, Messages, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendSMS_multi', function(CorpNum, Sender, Contents, Messages, reserveDT, adsYN, success, error){
this.sendMessage('SMS', CorpNum, Sender, '', Contents, Messages, reserveDT, adsYN, success, error);
BaseService.addMethod(MessageService.prototype, 'sendSMS_multi', function(CorpNum, Sender, SenderName, Contents, Messages, reserveDT, adsYN, success, error){
this.sendMessage('SMS', CorpNum, Sender, SenderName, '', Contents, Messages, reserveDT, adsYN, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendLMS', function(CorpNum, Sender, Receiver, ReceiverName, Subject, Contents, reserveDT, success, error){
BaseService.addMethod(MessageService.prototype, 'sendLMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Subject, Contents, reserveDT, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -101,8 +104,9 @@ ReceiverName : ReceiverName,

this.sendMessage('LMS', CorpNum, '', '', '', Messages, reserveDT, false, success, error);
this.sendMessage('LMS', CorpNum, '', '', '', '', Messages, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendLMS', function(CorpNum, Sender, Receiver, ReceiverName, Subject, Contents, reserveDT, adsYN, success, error){
BaseService.addMethod(MessageService.prototype, 'sendLMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Subject, Contents, reserveDT, adsYN, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -114,16 +118,17 @@ ReceiverName : ReceiverName,

this.sendMessage('LMS', CorpNum, '', '', '', Messages, reserveDT, adsYN, success, error);
this.sendMessage('LMS', CorpNum, '', '', '', '', Messages, reserveDT, adsYN, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendLMS_multi', function(CorpNum, Sender, Subject, Contents, Messages, reserveDT, success, error){
this.sendMessage('LMS', CorpNum, Sender, Subject, Contents, Messages, reserveDT, false, success, error);
BaseService.addMethod(MessageService.prototype, 'sendLMS_multi', function(CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, success, error){
this.sendMessage('LMS', CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendLMS_multi', function(CorpNum, Sender, Subject, Contents, Messages, reserveDT, adsYN, success, error){
this.sendMessage('LMS', CorpNum, Sender, Subject, Contents, Messages, reserveDT, adsYN, success, error);
BaseService.addMethod(MessageService.prototype, 'sendLMS_multi', function(CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, adsYN, success, error){
this.sendMessage('LMS', CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, adsYN, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendXMS', function(CorpNum, Sender, Receiver, ReceiverName, Subject, Contents, reserveDT, success, error){
BaseService.addMethod(MessageService.prototype, 'sendXMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Subject, Contents, reserveDT, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -135,8 +140,9 @@ ReceiverName : ReceiverName,

this.sendMessage('XMS', CorpNum, '', '', '', Messages, reserveDT, false, success, error);
this.sendMessage('XMS', CorpNum, '', '', '', '', Messages, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendXMS', function(CorpNum, Sender, Receiver, ReceiverName, Subject, Contents, reserveDT, adsYN, success, error){
BaseService.addMethod(MessageService.prototype, 'sendXMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Subject, Contents, reserveDT, adsYN, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -148,15 +154,15 @@ ReceiverName : ReceiverName,

this.sendMessage('XMS', CorpNum, '', '', '', Messages, reserveDT, adsYN, success, error);
this.sendMessage('XMS', CorpNum, '', '', '', '', Messages, reserveDT, adsYN, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendXMS_multi', function(CorpNum, Sender, Subject, Contents, Messages, reserveDT, success, error){
this.sendMessage('XMS', CorpNum, Sender, Subject, Contents, Messages, reserveDT, false, success, error);
BaseService.addMethod(MessageService.prototype, 'sendXMS_multi', function(CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, success, error){
this.sendMessage('XMS', CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendXMS_multi', function(CorpNum, Sender, Subject, Contents, Messages, reserveDT, adsYN, success, error){
this.sendMessage('XMS', CorpNum, Sender, Subject, Contents, Messages, reserveDT, adsYN, success, error);
BaseService.addMethod(MessageService.prototype, 'sendXMS_multi', function(CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, adsYN, success, error){
this.sendMessage('XMS', CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, adsYN, success, error);
});
MessageService.prototype.sendMessage = function(MsgType, CorpNum, Sender, Subject, Contents, Messages, reserveDT, adsYN, success, error){
MessageService.prototype.sendMessage = function(MsgType, CorpNum, Sender, SenderName, Subject, Contents, Messages, reserveDT, adsYN, success, error){
if(!MsgType || 0 === MsgType.length) {

@@ -177,2 +183,3 @@ this._throwError(-99999999,'메시지 유형이 입력되지 않았습니다.',error);

snd : Sender,
sndnm : SenderName,
adsYN : adsYN,

@@ -189,2 +196,3 @@ content : Contents,

snd : Messages[i].Sender,
sndnm : Messages[i].SenderName,
rcv : Messages[i].Receiver,

@@ -199,2 +207,3 @@ rcvnm : Messages[i].ReceiverName,

snd : Messages.Sender,
sndnm : Messages.SenderName,
rcv : Messages.Receiver,

@@ -220,5 +229,6 @@ rcvnm : Messages.ReceiverName,

BaseService.addMethod(MessageService.prototype, 'sendMMS', function(CorpNum, Sender, Receiver, ReceiverName, Subject, Contents, FilePaths, reserveDT, success, error){
BaseService.addMethod(MessageService.prototype, 'sendMMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Subject, Contents, FilePaths, reserveDT, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -230,8 +240,9 @@ ReceiverName : ReceiverName,

this.sendMessage_MMS(CorpNum, '', '', '', Messages, FilePaths, reserveDT, false, success, error);
this.sendMessage_MMS(CorpNum, '', '', '','', Messages, FilePaths, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendMMS', function(CorpNum, Sender, Receiver, ReceiverName, Subject, Contents, FilePaths, reserveDT, adsYN, success, error){
BaseService.addMethod(MessageService.prototype, 'sendMMS', function(CorpNum, Sender, SenderName, Receiver, ReceiverName, Subject, Contents, FilePaths, reserveDT, adsYN, success, error){
var Messages = {
Sender : Sender,
SenderName : SenderName,
Receiver : Receiver,

@@ -243,14 +254,14 @@ ReceiverName : ReceiverName,

this.sendMessage_MMS(CorpNum, '', '', '', Messages, FilePaths, reserveDT, adsYN, success, error);
this.sendMessage_MMS(CorpNum, '', '', '','', Messages, FilePaths, reserveDT, adsYN, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendMMS_multi', function(CorpNum, Sender, Subject, Contents, Messages, FilePaths, reserveDT, success, error){
this.sendMessage_MMS(CorpNum, Sender, Subject, Contents, Messages, FilePaths, reserveDT, false, success, error);
BaseService.addMethod(MessageService.prototype, 'sendMMS_multi', function(CorpNum, Sender, SenderName, Subject, Contents, Messages, FilePaths, reserveDT, success, error){
this.sendMessage_MMS(CorpNum, Sender, SenderName, Subject, Contents, Messages, FilePaths, reserveDT, false, success, error);
});
BaseService.addMethod(MessageService.prototype, 'sendMMS_multi', function(CorpNum, Sender, Subject, Contents, Messages, FilePaths, reserveDT, adsYN, success, error){
this.sendMessage_MMS(CorpNum, Sender, Subject, Contents, Messages, FilePaths, reserveDT, adsYN, success, error);
BaseService.addMethod(MessageService.prototype, 'sendMMS_multi', function(CorpNum, Sender, SenderName, Subject, Contents, Messages, FilePaths, reserveDT, adsYN, success, error){
this.sendMessage_MMS(CorpNum, Sender, SenderName, Subject, Contents, Messages, FilePaths, reserveDT, adsYN, success, error);
});
MessageService.prototype.sendMessage_MMS = function(CorpNum, Sender, Subject, Contents, Messages, FilePaths, reserveDT, adsYN, success, error){
MessageService.prototype.sendMessage_MMS = function(CorpNum, Sender, SenderName, Subject, Contents, Messages, FilePaths, reserveDT, adsYN, success, error){
if(!CorpNum || 0 === CorpNum.length) {

@@ -268,2 +279,3 @@ this._throwError(-99999999,'팝빌회원 사업자번호가 입력되지 않았습니다.',error);

snd : Sender,
sndnm : SenderName,
content : Contents,

@@ -280,2 +292,3 @@ subject : Subject,

snd : Messages[i].Sender,
sndnm : Messages[i].SenderName,
rcv : Messages[i].Receiver,

@@ -290,2 +303,3 @@ rcvnm : Messages[i].ReceiverName,

snd : Messages.Sender,
sndnm : Messages.SenderName,
rcv : Messages.Receiver,

@@ -292,0 +306,0 @@ rcvnm : Messages.ReceiverName,

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

messageService.sendMessage('/SMS','1234567890','07075103710','제목','동보전송 할껍니다',Messages,'',
messageService.sendMessage('/SMS','1234567890','발신자명','07075103710','제목','동보전송 할껍니다',Messages,'',
function(response){
console.log(response);
},function(error){
console.log(error);
});
console.log(error)
})
messageService.sendSMS('1234567890', '07075103710', '010111222', '수신자명', 'SMS 단건전송', '', true,
messageService.sendSMS('1234567890', '07075103710', '발신자명', '010111222', '수신자명', 'SMS 단건전송', '', true,
function(response){

@@ -89,3 +89,3 @@ console.log(response);

messageService.sendSMS_multi('1234567890', '07075103710', '동보전송을 하고싶소.', Messages,'', false,
messageService.sendSMS_multi('1234567890', '07075103710','발신자명', '동보전송을 하고싶소.', Messages,'', false,
function(response){

@@ -99,3 +99,3 @@ console.log(response);

messageService.sendLMS('1234567890', '07075103710', '010111222', '수신자명', '메시지 제목입니닷', 'LMS 단건전송', '',
messageService.sendLMS('1234567890', '07075103710', '발신자명','010111222', '수신자명', '메시지 제목입니닷', 'LMS 단건전송', '',
function(response){

@@ -109,2 +109,3 @@ console.log(response);

Sender : '07075103710',
SenderName : '발신자명LMS1',
Receiver : '010111222',

@@ -117,2 +118,3 @@ ReceiverName : '수신자명',

Sender : '07075103710',
SenderName : '발신자명LMS2',
Receiver : '010111222',

@@ -125,3 +127,3 @@ ReceiverName : '수신자명',

messageService.sendLMS_multi('1234567890', '07075103710', '메시지 제목', 'LMS 대량전송', Messages, '', true,
messageService.sendLMS_multi('1234567890', '07075103710', '발신자명', '메시지 제목', 'LMS 대량전송', Messages, '', true,
function(response){

@@ -134,3 +136,3 @@ console.log(response);

messageService.sendXMS('1234567890', '07075103710', '010111222', '수신자명', '문자제목', 'XMS 자동인식 단건전송 동해물과 백두산이 마르고 닳도록 하느님이 보호하사 우리나라만사 무궁화 삼천리 화려강산 대한사람 대한으로', '', false,
messageService.sendXMS('1234567890', '07075103710', '발신자명', '010111222', '수신자명', '문자제목', 'XMS 자동인식 단건전송 동해물과 백두산이 마르고 닳도록 하느님이 보호하사 우리나라만사 무궁화 삼천리 화려강산 대한사람 대한으로', '', false,
function(response){

@@ -142,3 +144,3 @@ console.log(response);

messageService.sendXMS_multi('1234567890', '07075103710', '메시지 제목','자동인식전송 동보내용',Messages, '', false,
messageService.sendXMS_multi('1234567890', '07075103710','발신자명', '메시지 제목','자동인식전송 동보내용',Messages, '', false,
function(response){

@@ -155,3 +157,3 @@ console.log(response);

messageService.sendMMS('1234567890', '07075103710', '010000112','수신자명', '단건메시지제목', '단건 메시지 내용', FilePaths, '', true,
messageService.sendMMS('1234567890', '07075103710', '발신자명', '010000112','수신자명', '단건메시지제목', '단건 메시지 내용', FilePaths, '', false,
function(response){

@@ -164,3 +166,3 @@ console.log(response);

messageService.sendMMS_multi('1234567890', '07075103710', '동보제목', '동보내용', Messages, FilePaths, '', false,
messageService.sendMMS_multi('1234567890', '07075103710', '발신자명', '동보제목', '동보내용', Messages, FilePaths, '', false,
function(response){

@@ -172,3 +174,3 @@ console.log(response);

messageService.getMessages('1234567890', '015081013000000005',
messageService.getMessages('1234567890', '016080914000000018',
function(response){

@@ -175,0 +177,0 @@ console.log(response);

{
"name": "popbill",
"version": "1.0.4",
"version": "1.0.5",
"description": "Popbill API SDK for node. see www.popbill.com",

@@ -5,0 +5,0 @@ "author": "Kim Seongjun <pallet027@gmail.com>",

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

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

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