Sha256: 3993f05e0fc611801a66f5956039a0484273bb45be389f5254a911c7d7696639

Contents?: true

Size: 724 Bytes

Versions: 4

Compression:

Stored size: 724 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/serializer'
require_relative '../journal_entry_line/serializer'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class JournalEntry
        class Serializer < QuickBooksOnline::Serializer
          id

          date :TxnDate
          attribute :PrivateNote
          attribute :DocNumber

          references_one 'CurrencyRef',
                         resource_attribute: :Currency,
                         serializer: Reference::Serializer

          references_many 'Line',
                          resource_attribute: :Line,
                          serializer: JournalEntryLine::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/serializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/journal_entry/serializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/journal_entry/serializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/journal_entry/serializer.rb