207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
# File 'lib/popbill/taxinvoice.rb', line 207
def send(corpNum, mgtKeyType, mgtKey, memo = '', emailSubject = '', userID = '')
if corpNum.length != 10
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
end
if mgtKey.to_s == ''
raise PopbillException.new('-99999999', '문서번호가 올바르지 않습니다.')
end
postData = {}
if memo.to_s != ''
postData["memo"] = memo
end
if emailSubject.to_s != ''
postData["emailSubject"] = emailSubject
end
postData = postData.to_json
httppost("/Taxinvoice/#{mgtKeyType}/#{mgtKey}", corpNum, postData, "SEND", userID)
end
|