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.53.0 to 1.54.0

144

lib/FaxService.js

@@ -10,11 +10,16 @@ var Util = require('util');

this._scopes.push('160');
this._scopes.push('161');
};
BaseService.addMethod(FaxService.prototype, "getChargeInfo", function(CorpNum, success, error){
this.getChargeInfo(CorpNum,'',success,error);
this.getChargeInfo(CorpNum, '', '',success,error);
});
BaseService.addMethod(FaxService.prototype, "getChargeInfo", function(CorpNum, UserID, success, error) {
this.getChargeInfo(CorpNum, '', UserID, success, error);
});
BaseService.addMethod(FaxService.prototype, "getChargeInfo", function(CorpNum, ReceiveNumType, UserID, success, error) {
this._executeAction({
uri : '/FAX/ChargeInfo',
uri : '/FAX/ChargeInfo?receiveNumType=' + encodeURIComponent(ReceiveNumType),
CorpNum : CorpNum,

@@ -29,14 +34,37 @@ UserID : UserID,

BaseService.addMethod(FaxService.prototype, 'getUnitCost', function (CorpNum, success, error) {
this.getUnitCost(CorpNum, '', success, error);
});
FaxService.prototype.getUnitCost = function(CorpNum,success,error) {
this._executeAction({
uri : '/FAX/UnitCost',
CorpNum : CorpNum,
success : function(response){
if(success) success(response.unitCost);
},
error : error
});
};
BaseService.addMethod(FaxService.prototype, 'getUnitCost', function (CorpNum, ReceiveNumType, success, error) {
this._executeAction({
uri : '/FAX/UnitCost?receiveNumType=' + encodeURIComponent(ReceiveNumType),
CorpNum : CorpNum,
success : function(response){
if(success) success(response.unitCost);
},
error : error
});
});
BaseService.addMethod(FaxService.prototype, 'checkSenderNumber', function (CorpNum, SenderNumber, success, error) {
this.checkSenderNumber(CorpNum, SenderNumber, '', success, error);
});
BaseService.addMethod(FaxService.prototype, 'checkSenderNumber', function (CorpNum, SenderNumber, UserID, success, error) {
if(SenderNumber == "") {
this._throwError(-99999999, '확인할 발신번호가 입력되지 않았습니다.', error);
return;
}
this._executeAction({
uri: '/FAX/CheckSenderNumber/' + SenderNumber,
CorpNum: CorpNum,
UserID: UserID,
success: function (response) {
if (success) success(response);
},
error: error
});
});
BaseService.addMethod(FaxService.prototype, "sendFax", function(CorpNum, Sender, Receiver, ReceiverName, FilePaths, ReserveDT, SenderName, AdsYN, Title, RequestNum, UserID, success, error){

@@ -249,9 +277,21 @@ var options = {

if(typeof options.Receiver === 'string') {
req.rcvs.push({rcv : options.Receiver,rcvnm : options.ReceiverName,});
req.rcvs.push({
rcv : options.Receiver ,
rcvnm : options.ReceiverName ,
interOPRefKey: options.interOPRefKey
});
} else if(Array.isArray(options.Receiver)) {
for(var i in options.Receiver) {
req.rcvs.push({rcv : options.Receiver[i].receiveNum , rcvnm : options.Receiver[i].receiveName});
req.rcvs.push({
rcv : options.Receiver[i].receiveNum ,
rcvnm : options.Receiver[i].receiveName ,
interOPRefKey: options.Receiver[i].interOPRefKey
});
}
} else {
req.rcvs.push({rcv : options.Receiver.receiveName , rcvnm : options.Receiver.receiveNum});
req.rcvs.push({
rcv : options.Receiver.receiveName ,
rcvnm : options.Receiver.receiveNum ,
interOPRefKey: options.Receiver.interOPRefKey
});
}

@@ -307,9 +347,21 @@

if(typeof options.Receiver === 'string') {
req.rcvs.push({rcv : options.Receiver,rcvnm : options.ReceiverName,});
req.rcvs.push({
rcv : options.Receiver ,
rcvnm : options.ReceiverName ,
interOPRefKey: options.interOPRefKey
});
} else if(Array.isArray(options.Receiver)) {
for(var i in options.Receiver) {
req.rcvs.push({rcv : options.Receiver[i].receiveNum , rcvnm : options.Receiver[i].receiveName});
req.rcvs.push({
rcv : options.Receiver[i].receiveNum ,
rcvnm : options.Receiver[i].receiveName ,
interOPRefKey: options.Receiver[i].interOPRefKey
});
}
} else {
req.rcvs.push({rcv : options.Receiver.receiveName , rcvnm : options.Receiver.receiveNum});
req.rcvs.push({
rcv : options.Receiver.receiveName ,
rcvnm : options.Receiver.receiveNum ,
interOPRefKey: options.Receiver.interOPRefKey
});
}

@@ -423,13 +475,23 @@

if ( options.Receiver != null ) {
if ( typeof options.Receiver === 'string' ) {
if (options.Receiver != "" && options.ReceiverName != ""){
req.rcvs.push({rcv : options.Receiver,rcvnm : options.ReceiverName,});
if(typeof options.Receiver === 'string') {
req.rcvs.push({
rcv : options.Receiver ,
rcvnm : options.ReceiverName ,
interOPRefKey: options.interOPRefKey
});
} else if(Array.isArray(options.Receiver)) {
for(var i in options.Receiver) {
req.rcvs.push({
rcv : options.Receiver[i].receiveNum ,
rcvnm : options.Receiver[i].receiveName ,
interOPRefKey: options.Receiver[i].interOPRefKey
});
}
} else {
req.rcvs.push({
rcv : options.Receiver.receiveName ,
rcvnm : options.Receiver.receiveNum ,
interOPRefKey: options.Receiver.interOPRefKey
});
}
} else if(Array.isArray(options.Receiver)) {
for(var i in options.Receiver) {
req.rcvs.push({rcv : options.Receiver[i].receiveNum , rcvnm : options.Receiver[i].receiveName});
}
} else {
req.rcvs.push({rcv : options.Receiver.receiveName , rcvnm : options.Receiver.receiveNum});
}
}

@@ -546,12 +608,22 @@

if ( options.Receiver != null ) {
if ( typeof options.Receiver === 'string' ) {
if (options.Receiver != "" && options.ReceiverName != ""){
req.rcvs.push({rcv : options.Receiver,rcvnm : options.ReceiverName,});
}
if(typeof options.Receiver === 'string') {
req.rcvs.push({
rcv : options.Receiver ,
rcvnm : options.ReceiverName ,
interOPRefKey: options.interOPRefKey
});
} else if(Array.isArray(options.Receiver)) {
for(var i in options.Receiver) {
req.rcvs.push({rcv : options.Receiver[i].receiveNum , rcvnm : options.Receiver[i].receiveName});
}
for(var i in options.Receiver) {
req.rcvs.push({
rcv : options.Receiver[i].receiveNum ,
rcvnm : options.Receiver[i].receiveName ,
interOPRefKey: options.Receiver[i].interOPRefKey
});
}
} else {
req.rcvs.push({rcv : options.Receiver.receiveName , rcvnm : options.Receiver.receiveNum});
req.rcvs.push({
rcv : options.Receiver.receiveName ,
rcvnm : options.Receiver.receiveNum ,
interOPRefKey: options.Receiver.interOPRefKey
});
}

@@ -558,0 +630,0 @@ }

@@ -151,2 +151,22 @@ var Util = require('util');

});
//CheckSenderNumber
BaseService.addMethod(KakaoService.prototype, 'checkSenderNumber', function (CorpNum, SenderNumber, success, error) {
this.checkSenderNumber(CorpNum, SenderNumber, '', success, error);
});
//CheckSenderNumber (UserID)
BaseService.addMethod(KakaoService.prototype, 'checkSenderNumber', function (CorpNum, SenderNumber, UserID, success, error) {
if(SenderNumber == "") {
this._throwError(-99999999, '확인할 발신번호가 입력되지 않았습니다.', error);
return;
}
this._executeAction({
uri: '/KakaoTalk/CheckSenderNumber/' + SenderNumber,
CorpNum: CorpNum,
UserID: UserID,
success: function (response) {
if (success) success(response);
},
error: error
});
});

@@ -166,3 +186,3 @@ //SendATS one

this.sendATS_same(CorpNum, templateCode, snd, content, altContnet, altSendType, sndDT, msg, UserID, "", null, success, error);
this.sendATS_same(CorpNum, templateCode, snd, content, null, altContnet, altSendType, sndDT, msg, UserID, "", null, success, error);
});

@@ -179,5 +199,5 @@

this.sendATS_same(CorpNum, templateCode, snd, content, altContnet, altSendType, sndDT, msg, UserID, requestNum, null, success, error);
this.sendATS_same(CorpNum, templateCode, snd, content, null, altContnet, altSendType, sndDT, msg, UserID, requestNum, null, success, error);
});
//SendATS one (btns)
BaseService.addMethod(KakaoService.prototype, 'sendATS_one', function (CorpNum, templateCode, snd, content, altContnet, altSendType, sndDT, receiver, receiverName, UserID, requestNum, btns, success, error) {

@@ -191,5 +211,17 @@ var msg = {

this.sendATS_same(CorpNum, templateCode, snd, content, altContnet, altSendType, sndDT, msg, UserID, requestNum, btns, success, error);
this.sendATS_same(CorpNum, templateCode, snd, content, null, altContnet, altSendType, sndDT, msg, UserID, requestNum, btns, success, error);
});
//SendATS one (altSubject)
BaseService.addMethod(KakaoService.prototype, 'sendATS_one', function (CorpNum, templateCode, snd, content, altSubject, altContnet, altSendType, sndDT, receiver, receiverName, UserID, requestNum, btns, success, error) {
var msg = {
rcv: receiver,
rcvnm: receiverName,
msg: content,
altsjt: altSubject,
altmsg: altContnet
};
this.sendATS_same(CorpNum, templateCode, snd, content, altSubject, altContnet, altSendType, sndDT, msg, UserID, requestNum, btns, success, error);
});
//SendATS multi

@@ -207,8 +239,8 @@ BaseService.addMethod(KakaoService.prototype, 'sendATS_multi', function (CorpNum, templateCode, snd, altSendType, sndDT, msgs, success, error) {

BaseService.addMethod(KakaoService.prototype, 'sendATS_multi', function (CorpNum, templateCode, snd, altSendType, sndDT, msgs, UserID, requestNum, success, error) {
this.sendATS_same(CorpNum, templateCode, snd, '', '', altSendType, sndDT, msgs, UserID, requestNum, null, success, error);
this.sendATS_same(CorpNum, templateCode, snd, '', '', '', altSendType, sndDT, msgs, UserID, requestNum, null, success, error);
});
//SendATS multi (requestNum)
//SendATS multi (btns)
BaseService.addMethod(KakaoService.prototype, 'sendATS_multi', function (CorpNum, templateCode, snd, altSendType, sndDT, msgs, UserID, requestNum, btns, success, error) {
this.sendATS_same(CorpNum, templateCode, snd, '', '', altSendType, sndDT, msgs, UserID, requestNum, btns, success, error);
this.sendATS_same(CorpNum, templateCode, snd, '', '', '', altSendType, sndDT, msgs, UserID, requestNum, btns, success, error);
});

@@ -221,3 +253,3 @@

//SendATS smae (UserID)
//SendATS same (UserID)
BaseService.addMethod(KakaoService.prototype, 'sendATS_same', function (CorpNum, templateCode, snd, content, altContent, altSendType, sndDT, msgs, UserID, success, error) {

@@ -227,3 +259,3 @@ this.sendATS_same(CorpNum, templateCode, snd, content, altContent, altSendType, sndDT, msgs, UserID, "", null, success, error)

//SendATS smae (requestNum)
//SendATS same (requestNum)
BaseService.addMethod(KakaoService.prototype, 'sendATS_same', function (CorpNum, templateCode, snd, content, altContent, altSendType, sndDT, msgs, UserID, requestNum, success, error) {

@@ -233,3 +265,8 @@ this.sendATS_same(CorpNum, templateCode, snd, content, altContent, altSendType, sndDT, msgs, UserID, requestNum, null, success, error)

BaseService.addMethod(KakaoService.prototype, 'sendATS_same', function (CorpNum, templateCode, snd, content, altContent, altSendType, sndDT, msgs, UserID, requestNum, btns, success, error) {
//SendATS same (altSubject)
BaseService.addMethod(KakaoService.prototype, 'sendATS_same', function (CorpNum, templateCode, snd, content, altSubject, altContent, altSendType, sndDT, msgs, UserID, requestNum, success, error) {
this.sendATS_same(CorpNum, templateCode, snd, content, altSubject, altContent, altSendType, sndDT, msgs, UserID, requestNum, null, success, error)
});
BaseService.addMethod(KakaoService.prototype, 'sendATS_same', function (CorpNum, templateCode, snd, content, altSubject, altContent, altSendType, sndDT, msgs, UserID, requestNum, btns, success, error) {
if (!CorpNum || 0 === CorpNum.length) {

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

content: content,
altSubject: altSubject,
altContent: altContent,

@@ -258,2 +296,3 @@ altSendType: altSendType,

msg: msgs[i].msg,
altsjt: msgs[i].altsjt,
altmsg: msgs[i].altmsg,

@@ -269,2 +308,3 @@ interOPRefKey: msgs[i].interOPRefKey,

msg: msgs.msg,
altsjt: msgs.altsjt,
altmsg: msgs.altmsg,

@@ -311,6 +351,5 @@ interOPRefKey: msgs.interOPRefKey,

//SendFTS one
BaseService.addMethod(KakaoService.prototype, 'sendFTS_one', function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, success, error) {
this.sendFTS_one(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, "", "", success, error);
this.sendFTS_one(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, "", "", success, error);
});

@@ -320,3 +359,3 @@

BaseService.addMethod(KakaoService.prototype, 'sendFTS_one', function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, UserID, success, error) {
this.sendFTS_one(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, UserID, "", success, error);
this.sendFTS_one(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, UserID, "", success, error);
});

@@ -326,2 +365,7 @@

BaseService.addMethod(KakaoService.prototype, 'sendFTS_one', function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, UserID, requestNum, success, error) {
this.sendFTS_one(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, UserID, requestNum, success, error);
});
//SendFTS one (altSubject)
BaseService.addMethod(KakaoService.prototype, 'sendFTS_one', function (CorpNum, plusFriendID, snd, content, altSubject, altContent, altSendType, sndDT, receiver, receiverName, adsYN, btns, UserID, requestNum, success, error) {
var msg = {

@@ -331,10 +375,9 @@ rcv: receiver,

msg: content,
altsjt: altSubject,
altmsg: altContent
};
this.sendFTS_same(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, msg, btns, UserID, requestNum, success, error);
this.sendFTS_same(CorpNum, plusFriendID, snd, content, altSubject, altContent, altSendType, sndDT, adsYN, msg, btns, UserID, requestNum, success, error);
});
//SendFTS multi

@@ -352,3 +395,3 @@ BaseService.addMethod(KakaoService.prototype, 'sendFTS_multi', function (CropNum, plusFriendID, snd, altSendType, sndDT, adsYN, msgs, btns, success, error) {

BaseService.addMethod(KakaoService.prototype, 'sendFTS_multi', function (CorpNum, plusFriendID, snd, altSendType, sndDT, adsYN, msgs, btns, UserID, requestNum, success, error) {
this.sendFTS_same(CorpNum, plusFriendID, snd, '', '', altSendType, sndDT, adsYN, msgs, btns, UserID, requestNum, success, error);
this.sendFTS_same(CorpNum, plusFriendID, snd, '', '', '', altSendType, sndDT, adsYN, msgs, btns, UserID, requestNum, success, error);
});

@@ -358,3 +401,3 @@

BaseService.addMethod(KakaoService.prototype, 'sendFTS_same', function (CropNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, msgs, btns, success, error) {
this.sendFTS_same(CropNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, msgs, btns, "", "", success, error);
this.sendFTS_same(CropNum, plusFriendID, snd, content, '', altContent, altSendType, sndDT, adsYN, msgs, btns, "", "", success, error);
});

@@ -364,3 +407,3 @@

BaseService.addMethod(KakaoService.prototype, 'sendFTS_same', function (CropNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, msgs, btns, UserID, success, error) {
this.sendFTS_same(CropNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, msgs, btns, UserID, "", success, error);
this.sendFTS_same(CropNum, plusFriendID, snd, content, '', altContent, altSendType, sndDT, adsYN, msgs, btns, UserID, "", success, error);
});

@@ -370,2 +413,7 @@

BaseService.addMethod(KakaoService.prototype, 'sendFTS_same', function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, msgs, btns, UserID, requestNum, success, error) {
this.sendFTS_same(CropNum, plusFriendID, snd, content, '', altContent, altSendType, sndDT, adsYN, msgs, btns, UserID, requestNum, success, error);
});
//SendFTS same (altSubject)
BaseService.addMethod(KakaoService.prototype, 'sendFTS_same', function (CorpNum, plusFriendID, snd, content, altSubject, altContent, altSendType, sndDT, adsYN, msgs, btns, UserID, requestNum, success, error) {
if (!CorpNum || 0 === CorpNum.length) {

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

altContent: altContent,
altSubject: altSubject,
altSendType: altSendType,

@@ -396,2 +445,3 @@ sndDT: sndDT,

msg: msgs[i].msg,
altsjt: msgs[i].altsjt,
altmsg: msgs[i].altmsg,

@@ -407,2 +457,3 @@ interOPRefKey: msgs[i].interOPRefKey,

msg: msgs.msg,
altsjt: msgs.altsjt,
altmsg: msgs.altmsg,

@@ -449,3 +500,3 @@ interOPRefKey: msgs.interOPRefKey,

BaseService.addMethod(KakaoService.prototype, "sendFMS_one", function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, success, error) {
this.sendFMS_one(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, "", "", success, error);
this.sendFMS_one(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, "", "", success, error);
});

@@ -455,3 +506,3 @@

BaseService.addMethod(KakaoService.prototype, "sendFMS_one", function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, UserID, success, error) {
this.sendFMS_one(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, UserID, "", success, error);
this.sendFMS_one(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, UserID, "", success, error);
});

@@ -461,2 +512,7 @@

BaseService.addMethod(KakaoService.prototype, "sendFMS_one", function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, UserID, requestNum, success, error) {
this.sendFMS_one(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, UserID, requestNum, success, error);
});
//SenddFMS one (altSubject)
BaseService.addMethod(KakaoService.prototype, "sendFMS_one", function (CorpNum, plusFriendID, snd, content, altSubject, altContent, altSendType, sndDT, receiver, receiverName, adsYN, imageURL, FilePath, btns, UserID, requestNum, success, error) {
var msg = {

@@ -466,6 +522,7 @@ rcv: receiver,

msg: content,
altsjt: altSubject,
altmsg: altContent
};
this.sendFMS_same(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msg, btns, UserID, requestNum, success, error);
this.sendFMS_same(CorpNum, plusFriendID, snd, content, altSubject, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msg, btns, UserID, requestNum, success, error);
});

@@ -485,3 +542,3 @@

BaseService.addMethod(KakaoService.prototype, "sendFMS_multi", function (CorpNum, plusFriendID, snd, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, requestNum, success, error) {
this.sendFMS_same(CorpNum, plusFriendID, snd, '', '', altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, requestNum, success, error);
this.sendFMS_same(CorpNum, plusFriendID, snd, '', '', '', altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, requestNum, success, error);
});

@@ -491,3 +548,3 @@

BaseService.addMethod(KakaoService.prototype, "sendFMS_same", function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, success, error) {
this.sendFMS_same(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, "", "", success, error);
this.sendFMS_same(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, "", "", success, error);
});

@@ -497,3 +554,3 @@

BaseService.addMethod(KakaoService.prototype, "sendFMS_same", function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, success, error) {
this.sendFMS_same(CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, "", success, error);
this.sendFMS_same(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, "", success, error);
});

@@ -503,2 +560,7 @@

BaseService.addMethod(KakaoService.prototype, "sendFMS_same", function (CorpNum, plusFriendID, snd, content, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, requestNum, success, error) {
this.sendFMS_same(CorpNum, plusFriendID, snd, content, "", altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, "", success, error);
});
//SenddFMS same (altSubject)
BaseService.addMethod(KakaoService.prototype, "sendFMS_same", function (CorpNum, plusFriendID, snd, content, altSubject, altContent, altSendType, sndDT, adsYN, imageURL, FilePath, msgs, btns, UserID, requestNum, success, error) {
if (!CorpNum || 0 === CorpNum.length) {

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

content: content,
altSubject: altSubject,
altContent: altContent,

@@ -530,2 +593,3 @@ altSendType: altSendType,

msg: msgs[i].msg,
altsjt: msgs[i].altsjt,
altmsg: msgs[i].altmsg,

@@ -541,2 +605,3 @@ interOPRefKey: msgs[i].interOPRefKey,

msg: msgs.msg,
altsjt: msgs.altsjt,
altmsg: msgs.altmsg,

@@ -543,0 +608,0 @@ interOPRefKey: msgs.interOPRefKey,

@@ -92,2 +92,22 @@ var Util = require('util');

BaseService.addMethod(MessageService.prototype, 'checkSenderNumber', function (CorpNum, SenderNumber, success, error) {
this.checkSenderNumber(CorpNum, SenderNumber, '', success, error);
});
BaseService.addMethod(MessageService.prototype, 'checkSenderNumber', function (CorpNum, SenderNumber, UserID, success, error) {
if(SenderNumber == "") {
this._throwError(-99999999, '확인할 발신번호가 입력되지 않았습니다.', error);
return;
}
this._executeAction({
uri: '/Message/CheckSenderNumber/' + SenderNumber,
CorpNum: CorpNum,
UserID: UserID,
success: function (response) {
if (success) success(response);
},
error: error
});
});
BaseService.addMethod(MessageService.prototype, 'sendSMS', function (CorpNum, Sender, Receiver, ReceiverName, Contents, reserveDT, success, error) {

@@ -313,2 +333,3 @@ var Messages = {

sjt: Messages[i].Subject,
interOPRefKey: Messages[i].interOPRefKey
});

@@ -324,2 +345,3 @@ }

sjt: Messages.Subject,
interOPRefKey: Messages.interOPRefKey
});

@@ -424,2 +446,3 @@ }

sjt: Messages[i].Subject,
interOPRefKey: Messages[i].interOPRefKey
});

@@ -435,2 +458,3 @@ }

sjt: Messages.Subject,
interOPRefKey: Messages.interOPRefKey
});

@@ -437,0 +461,0 @@ }

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

BaseService.addMethod(TaxinvoiceService.prototype, 'getTaxCertInfo', function (CorpNum, UserID, success, error) {
this._executeAction({
uri: '/Taxinvoice/Certificate',
CorpNum: CorpNum,
UserID: UserID,
success: function (response) {
if (success) success(response);
},
error: error
});
});
BaseService.addMethod(TaxinvoiceService.prototype, 'getTaxCertInfo', function (CorpNum, success, error) {
this.getTaxCertInfo(CorpNum, '', success, error);
});
TaxinvoiceService.prototype.checkMgtKeyInUse = function(CorpNum, KeyType, MgtKey, success, error){

@@ -272,2 +288,28 @@ if(!KeyType || 0 === KeyType.length) {

BaseService.addMethod(TaxinvoiceService.prototype, 'getXML', function(CorpNum, KeyType, MgtKey, success, error){
this.getXML(CorpNum,KeyType,MgtKey,'',success,error);
});
BaseService.addMethod(TaxinvoiceService.prototype, 'getXML', function(CorpNum, KeyType, MgtKey, UserID, success, error){
if(!KeyType || 0 === KeyType.length) {
this._throwError(-99999999,'문서번호유형이 입력되지 않았습니다.',error);
return;
}
if(!MgtKey || 0 === MgtKey.length) {
this._throwError(-99999999,'문서번호가 입력되지 않았습니다.',error);
return;
}
this._executeAction({
uri : '/Taxinvoice/'+KeyType+'/'+MgtKey+'?XML',
CorpNum : CorpNum,
UserID : UserID,
Method : 'GET',
success : function(response){
if(success) success(response);
},
error : error
});
});
BaseService.addMethod(TaxinvoiceService.prototype, 'getLogs', function(CorpNum, KeyType, MgtKey, success, error){

@@ -274,0 +316,0 @@ this.getLogs(CorpNum,KeyType,MgtKey,'',success,error);

{
"name": "popbill",
"version": "1.53.0",
"version": "1.54.0",
"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.53.0
팝빌 node.js SDK v1.54.0

@@ -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