418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
|
# File 'lib/popbill/taxinvoice.rb', line 418
def sendEmail(corpNum, mgtKeyType, mgtKey, receiverMail, userID = '')
if corpNum.length != 10
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
end
if mgtKey.to_s == ''
raise PopbillException.new('-99999999', '문서번호가 올바르지 않습니다.')
end
postData = {}
if receiverMail.to_s != ''
postData["receiver"] = receiverMail
end
postData = postData.to_json
httppost("/Taxinvoice/#{mgtKeyType}/#{mgtKey}", corpNum, postData, "EMAIL", userID)
end
|