Sha256: d770369bfa9e1cb6c0455dd2a6089a707d9dc2dccc80ddb4d2c27a1eb00f5339

Contents?: true

Size: 822 Bytes

Versions: 13

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/deserializer'

module LedgerSync
  module QuickBooksOnline
    class JournalEntryLineDetail
      class Deserializer < QuickBooksOnline::Deserializer
        mapping :PostingType,
                hash_attribute: 'PostingType',
                hash: JournalEntryLineDetail::TYPES.invert

        references_one :Account,
                       hash_attribute: 'AccountRef',
                       deserializer: Reference::Deserializer

        references_one :Class,
                       hash_attribute: 'ClassRef',
                       deserializer: Reference::Deserializer

        references_one :Department,
                       hash_attribute: 'DepartmentRef',
                       deserializer: Reference::Deserializer
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-2.0.0 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb