lib/xero_gateway/gateway.rb in xero_gateway-float-2.1.3 vs lib/xero_gateway/gateway.rb in xero_gateway-float-2.1.4
- old
+ new
@@ -707,9 +707,10 @@
when "BankTransaction"
response.response_item = BankTransaction.from_xml(element, self, {:line_items_downloaded => options[:request_signature] != "GET/BankTransactions"})
when "ManualJournal"
response.response_item = ManualJournal.from_xml(element, self, {:journal_lines_downloaded => options[:request_signature] != "GET/ManualJournals"})
when "Contacts" then element.children.each {|child| response.response_item << Contact.from_xml(child, self) }
+ when "Payments" then element.children.each {|child| response.response_item << Payment.from_xml(child, self) }
when "Invoices" then element.children.each {|child| response.response_item << Invoice.from_xml(child, self, {:line_items_downloaded => options[:request_signature] != "GET/Invoices"}) }
when "BankTransactions"
element.children.each do |child|
response.response_item << BankTransaction.from_xml(child, self, {:line_items_downloaded => options[:request_signature] != "GET/BankTransactions"})
end