Sha256: 6701ac98a96712c3af185bd9fe69af0c10382d9cae3fa55830432324a7c4c57f
Contents?: true
Size: 870 Bytes
Versions: 3
Compression:
Stored size: 870 Bytes
Contents
module Xeroizer module Record class PaymentModel < BaseModel set_xml_root_name 'Payments' set_permissions :read, :write end class Payment < Base set_primary_key :payment_id guid :payment_id date :date decimal :amount decimal :currency_rate string :payment_type string :status string :reference datetime_utc :updated_date_utc, :api_name => 'UpdatedDateUTC' belongs_to :account belongs_to :invoice belongs_to :credit_note def invoice_id invoice.id if invoice end def credit_note_id credit_note.id if credit_note end def account_id account.id if account end def account_code account.code if account end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-2.15.8 | lib/xeroizer/models/payment.rb |
xeroizer-2.15.7 | lib/xeroizer/models/payment.rb |
xeroizer-2.15.6 | lib/xeroizer/models/payment.rb |