Sha256: 09b7960cb7f005cc60a36f45e4e5d161f4e71b3b16974bd8808c86ffb1c310f4

Contents?: true

Size: 825 Bytes

Versions: 19

Compression:

Stored size: 825 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
      
      def invoice_id
        invoice.id if invoice
      end
      
      def account_id
        account.id if account
      end
      
      def account_code
        account.code if account
      end
      
    end
    
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
xeroizer-float-2.15.5.2 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.5.1 lib/xeroizer/models/payment.rb
xeroizer-2.15.5 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.16 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.15 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.14 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.13 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.12 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.11 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.10 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.9 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.8 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.7 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.6 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.5 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.4 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.3 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.2 lib/xeroizer/models/payment.rb
xeroizer-float-2.15.3.1 lib/xeroizer/models/payment.rb