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.7 to 1.1.0

32

FaxTest.js

@@ -51,2 +51,6 @@ var popbill = require('./');

},
{
receiveName : '수신자성명',
receiveNum : '111222333',
},
]

@@ -68,2 +72,30 @@

var Receivers = [
{
receiveName : '수신자성명',
receiveNum : '111222333',
},
{
receiveName : '수신자성명',
receiveNum : '111222333',
},
]
receiptNum = "017021715004200001"
faxService.resendFax('1234567890', receiptNum, '07075103710', '발신자명', '', '', '',
function(receiptNum){
console.log('receiptNum is : ' + receiptNum);
}, function(error){
console.log(error);
});
faxService.resendFax('1234567890', receiptNum, '07075103710', '발신자명', Receivers, '',
function(receiptNum){
console.log('receiptNum is : ' + receiptNum);
}, function(error){
console.log(error);
});
faxService.getFaxResult('1234567890', '015081013080700001',

@@ -70,0 +102,0 @@ function(response){

@@ -122,2 +122,68 @@ var Util = require('util');

BaseService.addMethod(FaxService.prototype, "resendFax", function(CorpNum, ReceiptNum, Sender, SenderName, Receiver, ReceiverName, ReserveDT, success, error){
var options = {
ReceiptNum : ReceiptNum,
SenderNum : Sender,
SenderName : SenderName,
Receiver : Receiver,
ReceiverName : ReceiverName,
ReserveDT : ReserveDT,
}
this.resendFax(CorpNum, options, success, error);
});
BaseService.addMethod(FaxService.prototype, "resendFax", function(CorpNum, ReceiptNum, Sender, SenderName, Receivers, ReserveDT, success, error){
var options = {
ReceiptNum : ReceiptNum,
SenderNum : Sender,
SenderName : SenderName,
Receiver : Receivers,
ReserveDT : ReserveDT
}
this.resendFax(CorpNum, options, success, error);
});
BaseService.addMethod(FaxService.prototype, "resendFax", function(CorpNum, options, success,error) {
if(!options.ReceiptNum) {
this._throwError(-99999999,"팩스접수번호(ReceiptNum)가 입력되지 않았습니다.",error);
return;
}
var req = {
rcvs : []
};
if(options.SenderNum != "") req['snd'] = options.SenderNum;
if(options.SenderName != "") req['sndnm'] = options.SenderName;
if(options.sndDT != "") req['sndDT'] = options.ReserveDT;
if ( options.Receiver != null ) {
if ( typeof options.Receiver === 'string' ) {
if (options.Receiver != "" && options.ReceiverName != ""){
req.rcvs.push({rcv : options.Receiver,rcvnm : options.ReceiverName,});
}
} 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});
}
}
var postData = this._stringify(req);
this._executeAction({
uri : '/FAX/'+options.ReceiptNum,
Method : 'POST',
CorpNum : CorpNum,
UserID : options.UserID,
Data : postData,
success : function(response){
if(success) success(response.receiptNum);
},
error : error
});
});
FaxService.prototype.getFaxResult = function(CorpNum, ReceiptNum, success, error){

@@ -124,0 +190,0 @@ if(!ReceiptNum || 0 === ReceiptNum.length) {

2

package.json
{
"name": "popbill",
"version": "1.0.7",
"version": "1.1.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.0.7
팝빌 node.js SDK v1.1.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