Sha256: a0fd4e822e7683cc9421f84bb3a21ba36cacce9c99b4cd51c010480476a2bdb6

Contents?: true

Size: 567 Bytes

Versions: 13

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

require_relative '../journal_entry_line_detail/serializer'

module LedgerSync
  module QuickBooksOnline
    class JournalEntryLine
      class Serializer < QuickBooksOnline::Serializer
        amount :Amount
        attribute :Description

        attribute 'DetailType' do
          'JournalEntryLineDetail'
        end

        references_one :JournalEntryLineDetail,
                       resource_attribute: :JournalEntryLineDetail,
                       serializer: JournalEntryLineDetail::Serializer
      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/serializer.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb