Sha256: 7113ef4d72e3e5abe120633f863c3da14ada47781ccb90cc2fe2032a6b33e15b

Contents?: true

Size: 872 Bytes

Versions: 4

Compression:

Stored size: 872 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/serializer'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class JournalEntryLineDetail
        class Serializer < QuickBooksOnline::Serializer
          mapping 'PostingType',
                  resource_attribute: :PostingType,
                  hash: JournalEntryLineDetail::TYPES

          references_one 'AccountRef',
                         resource_attribute: :Account,
                         serializer: Reference::Serializer

          references_one 'ClassRef',
                         resource_attribute: :Class,
                         serializer: Reference::Serializer

          references_one 'DepartmentRef',
                         resource_attribute: :Department,
                         serializer: Reference::Serializer
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/journal_entry_line_detail/serializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/journal_entry_line_detail/serializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/journal_entry_line_detail/serializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/journal_entry_line_detail/serializer.rb