-
Notifications
You must be signed in to change notification settings - Fork 300
/
transfer.rb
21 lines (19 loc) · 894 Bytes
/
transfer.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Quickbooks
module Model
class Transfer < BaseModel
XML_COLLECTION_NODE = "Transfer"
XML_NODE = "Transfer"
REST_RESOURCE = 'transfer'
xml_accessor :id, :from => 'Id'
xml_accessor :sync_token, :from => 'SyncToken', :as => Integer
xml_accessor :meta_data, :from => 'MetaData', :as => MetaData
xml_accessor :txn_date, :from => 'TxnDate', :as => Date
xml_accessor :currency_ref, :from => 'CurrencyRef', :as => BaseReference
xml_accessor :private_note, :from => 'PrivateNote'
xml_accessor :from_account_ref, :from => 'FromAccountRef', :as => BaseReference
xml_accessor :to_account_ref, :from => 'ToAccountRef', :as => BaseReference
xml_accessor :amount, :from => 'Amount', :as => BigDecimal, :to_xml => to_xml_big_decimal
reference_setters :currency_ref, :to_account_ref, :from_account_ref
end
end
end