ruby-freshbooks icon indicating copy to clipboard operation
ruby-freshbooks copied to clipboard

`invoice.list` and `invoice.get` only contains the first line of the invoice

Open pcreux opened this issue 10 years ago • 0 comments

FreshBooks API returns invoices with the following format:

<invoice>
  <lines>
    <line>
      <line_id>123</line_id>
    </line>
    <line>
      <line_id>234</line_id>
    </line>
  </lines>
</invoice>

HTTParty turns this into the hash:

{ invoice: { lines: { line_id: 123 } } }

pcreux avatar Jul 10 '14 23:07 pcreux