lib/xero_gateway/invoice.rb in xero_gateway-2.5.0 vs lib/xero_gateway/invoice.rb in xero_gateway-2.6.0
- old
+ new
@@ -183,10 +183,11 @@
b.CurrencyCode currency_code if currency_code
b.CurrencyRate currency_rate if currency_rate
contact.to_xml(b)
b.Date Invoice.format_date(self.date || Date.today)
b.DueDate Invoice.format_date(self.due_date) if self.due_date
+ b.FullyPaidOnDate Invoice.format_date(self.fully_paid_on) if self.fully_paid_on
b.Status self.invoice_status if self.invoice_status
b.Reference self.reference if self.reference
b.BrandingThemeID self.branding_theme_id if self.branding_theme_id
b.LineAmountTypes self.line_amount_types
b.LineItems {
@@ -210,9 +211,10 @@
when "CurrencyCode" then invoice.currency_code = element.text
when "CurrencyRate" then invoice.currency_rate = BigDecimal.new(element.text)
when "Contact" then invoice.contact = Contact.from_xml(element)
when "Date" then invoice.date = parse_date(element.text)
when "DueDate" then invoice.due_date = parse_date(element.text)
+ when "FullyPaidOnDate" then invoice.fully_paid_on = parse_date(element.text)
when "UpdatedDateUTC" then invoice.updated_date_utc = parse_date(element.text)
when "Status" then invoice.invoice_status = element.text
when "Reference" then invoice.reference = element.text
when "BrandingThemeID" then invoice.branding_theme_id = element.text
when "LineAmountTypes" then invoice.line_amount_types = element.text