lib/xero_gateway/payment.rb in xero_gateway-2.6.0 vs lib/xero_gateway/payment.rb in xero_gateway-2.7.0

- old
+ new

@@ -24,12 +24,12 @@ case element.name when 'PaymentID' then payment.payment_id = element.text when 'PaymentType' then payment.payment_type = element.text when 'Date' then payment.date = parse_date_time(element.text) when 'UpdatedDateUTC' then payment.updated_at = parse_date_time(element.text) - when 'Amount' then payment.amount = BigDecimal.new(element.text) + when 'Amount' then payment.amount = BigDecimal(element.text) when 'Reference' then payment.reference = element.text - when 'CurrencyRate' then payment.currency_rate = BigDecimal.new(element.text) + when 'CurrencyRate' then payment.currency_rate = BigDecimal(element.text) when 'Invoice' payment.invoice_id = element.elements["//InvoiceID"].text payment.invoice_number = element.elements["//InvoiceNumber"].text when 'IsReconciled' then payment.reconciled = (element.text == "true") when 'Account' then payment.account_id = element.elements["//AccountID"].text