Sha256: 8a66edb51cb24f20a2563cc577bac529cc5afd6a2e92e3efd578b46e1bbdbe16

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

module Myfinance
  module Entities
    class FinancialAccount < Base
      [:id, :entity_id, :status, :category_id, :person_id, :recurrence_id, :number_of_parcels,
       :current_parcel, :classification_center_id, :expected_deposit_account_id, :sale_account_id].each do |k|
        attribute k, Integer
      end

      [:status_name, :description, :document, :observation, :recurrence_period,
        :competency_month].each { |k| attribute k, String }

      [:amount, :interest_amount, :discount_amount, :total_amount, :ticket_amount].each do |k|
        attribute k, Decimal
      end

      [:remind, :income_tax_relevant, :recurrent, :parcelled, :ticket_amount].each do |k|
        attribute k, Boolean
      end

      [:due_date, :occurred_at, :document_emission_date, :reminded_at].each do |k|
        attribute k, Date
      end
      [:created_at, :updated_at].each { |k| attribute k, DateTime }

      attribute :sale_ids, Array[Integer]
      attribute :tax_charges, Array[Hash]
      attribute :financial_account_taxes_attributes, Array[Hash]
      attribute :custom_classifications, Array[Hash]
      attribute :reconciliations, Hash[String => Array]
      attribute :links, Array[Hash[String => String]]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
myfinance-1.7.0 lib/myfinance/entities/financial_account.rb
myfinance-1.6.6 lib/myfinance/entities/financial_account.rb