348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
# File 'lib/popbill/taxinvoice.rb', line 348
def request(corpNum, mgtKeyType, mgtKey, memo = '', 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
postData = postData.to_json
httppost("/Taxinvoice/#{mgtKeyType}/#{mgtKey}", corpNum, postData, "REQUEST", userID)
end
|