Method: StatementService#attachFile
- Defined in:
- lib/popbill/statement.rb
#attachFile(corpNum, itemCode, mgtKey, filePath, userID = '') ⇒ Object
312 313 314 315 316 317 318 319 320 321 |
# File 'lib/popbill/statement.rb', line 312 def attachFile(corpNum, itemCode, mgtKey, filePath, userID ='') if corpNum.length != 10 raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.') end if mgtKey.to_s == '' raise PopbillException.new('-99999999', '문서번호가 올바르지 않습니다.') end httppostfiles("/Statement/#{itemCode}/#{mgtKey}/Files", corpNum, '', [filePath], userID) end |