<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -159,9 +159,13 @@ module FreshBooks
       Fixnum     =&gt; lambda { |xml_val| xml_val.text.to_i },
       Float      =&gt; lambda { |xml_val| xml_val.text.to_f },
       BaseObject =&gt; lambda { |xml_val| BaseObject.class::new_from_xml },
-      Array      =&gt; lambda do |xml_val|
-        xml_val.elements.map do |elem|
-          FreshBooks::const_get(elem.name.capitalize)::new_from_xml(elem)
+      Array =&gt; lambda do |xml_val|
+        if xml_val.elements[1].name == 'client_view'
+          FreshBooks::Links::new_from_xml(xml_val)
+        else
+          xml_val.elements.map do |elem|
+             FreshBooks::const_get(elem.name.capitalize)::new_from_xml(elem)
+          end
         end
       end
     }
@@ -274,9 +278,9 @@ module FreshBooks
   # Invoices
   #==========================================================================
 
-  Invoice = BaseObject.new(:invoice_id, :client_id, :number, :date, :po_number,
+  Invoice = BaseObject.new(:invoice_id, :client_id, :number, :amount_outstanding, :links, :recurring_id, :date, :po_number, 
   :terms, :first_name, :last_name, :organization, :p_street1, :p_street2, :p_city,
-  :p_state, :p_country, :p_code, :amount, :lines, :discount, :status, :notes, :url)
+  :p_state, :p_country, :p_code, :amount, :lines, :discount, :status, :notes)
 
 
   class Invoice
@@ -288,6 +292,7 @@ module FreshBooks
     def initialize
       super
       self.lines ||= []
+      self.links ||= []
     end
 
     def create
@@ -351,6 +356,12 @@ module FreshBooks
     TYPE_MAPPINGS = { 'unit_cost' =&gt; Float, 'quantity' =&gt; Fixnum,
       'tax1_percent' =&gt; Float, 'tax2_percent' =&gt; Float, 'amount' =&gt; Float }
   end
+  
+  Links = BaseObject.new(:client_view, :view, :edit)
+  
+  class Links
+    TYPE_MAPPINGS = { 'client_view' =&gt; String, 'view' =&gt; String, 'edit' =&gt; String }
+  end
 
   #--------------------------------------------------------------------------
   # Items</diff>
      <filename>freshbooks.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>073adeec928c0809a9633f786756c6922babff8c</id>
    </parent>
  </parents>
  <author>
    <name>Bradley Joyce</name>
    <email>bradley@squeejee.com</email>
  </author>
  <url>http://github.com/polomasta/freshbooks.rb/commit/cb0629ecc8a87d400b896fba11c8e66ff111367b</url>
  <id>cb0629ecc8a87d400b896fba11c8e66ff111367b</id>
  <committed-date>2008-12-27T02:51:30-08:00</committed-date>
  <authored-date>2008-12-27T02:51:30-08:00</authored-date>
  <message>adds support for invoice links</message>
  <tree>60a40dd24bda6ee352038613db93708661347651</tree>
  <committer>
    <name>Bradley Joyce</name>
    <email>bradley@squeejee.com</email>
  </committer>
</commit>
