Method: TaxinvoiceService#delete

Defined in:
lib/popbill/taxinvoice.rb

#delete(corpNum, mgtKeyType, mgtKey, userID = '') ⇒ Object



195
196
197
198
199
200
201
202
203
204
# File 'lib/popbill/taxinvoice.rb', line 195

def delete(corpNum, mgtKeyType, mgtKey, userID = '')
  if corpNum.length != 10
    raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
  end
  if mgtKey.to_s == ''
    raise PopbillException.new('-99999999', '문서번호 입력되지 않았습니다.')
  end

  httppost("/Taxinvoice/#{mgtKeyType}/#{mgtKey}", corpNum, '', 'DELETE', userID)
end