xero_gateway-float 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/xero_gateway/payment.rb +2 -1
- data/xero_gateway.gemspec +1 -1
- metadata +1 -1
data/lib/xero_gateway/payment.rb
CHANGED
@@ -10,7 +10,7 @@ module XeroGateway
|
|
10
10
|
attr_reader :errors
|
11
11
|
|
12
12
|
# All accessible fields
|
13
|
-
attr_accessor :invoice_id, :invoice, :invoice_number, :account, :code, :payment_id, :date, :amount, :reference, :currency_rate, :account_id, :updated_date_utc
|
13
|
+
attr_accessor :invoice_id, :invoice, :invoice_number, :account, :code, :payment_id, :date, :amount, :reference, :currency_rate, :account_id, :updated_date_utc, :status, :payment_type
|
14
14
|
|
15
15
|
def initialize(params = {})
|
16
16
|
@errors ||= []
|
@@ -32,6 +32,7 @@ module XeroGateway
|
|
32
32
|
when 'Invoice' then payment.invoice = Invoice.from_xml(element)
|
33
33
|
when 'Account' then payment.account = Account.from_xml(element)
|
34
34
|
when "UpdatedDateUTC" then payment.updated_date_utc = parse_utc_date_time(element.text)
|
35
|
+
when "PaymentType" then payment.payment_type = element.text
|
35
36
|
end
|
36
37
|
end
|
37
38
|
payment
|
data/xero_gateway.gemspec
CHANGED