class Quickbooks::Service::BaseService
def request_body_messages(body)
def request_body_messages(body) messages = [] messages << "REQUEST BODY:" if is_json? messages << body.inspect elsif is_pdf? messages << "BODY is a PDF : not dumping" else #multipart request for uploads arrive here in a Hash with UploadIO vals if body.is_a?(Hash) body.each do |k,v| messages << 'BODY PART:' val_content = v.inspect if v.is_a?(Faraday::UploadIO) if v.content_type == 'application/xml' if v.io.is_a?(StringIO) val_content = log_xml(v.io.string) end end end messages << "#{k}: #{val_content}" end else messages << log_xml(body) end end messages end