761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
|
# File 'lib/popbill/taxinvoice.rb', line 761
def updateEmailConfig(corpNum, emailType, sendYN, userID = '')
if corpNum.length != 10
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
end
if emailType.to_s == ''
raise PopbillException.new('-99999999', '메일전송 타입이 입력되지 않았습니다.')
end
if sendYN.to_s == ''
raise PopbillException.new('-99999999', '메일전송 여부 항목이 입력되지 않았습니다.')
end
httppost("/Taxinvoice/EmailSendConfig?EmailType=#{emailType}&SendYN=#{sendYN}", corpNum, userID)
end
|