Method: TaxinvoiceService#attachFile
- Defined in:
- lib/popbill/taxinvoice.rb
#attachFile(corpNum, mgtKeyType, mgtKey, filePath, userID = '') ⇒ Object
460 461 462 463 464 465 466 467 468 469 |
# File 'lib/popbill/taxinvoice.rb', line 460 def attachFile(corpNum, mgtKeyType, mgtKey, filePath, userID ='') if corpNum.length != 10 raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.') end if mgtKey.to_s == '' raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.') end httppostfiles("/Taxinvoice/#{mgtKeyType}/#{mgtKey}/Files", corpNum, '', [filePath], userID) end |