Sha256: ff4185062f83198f7ea227cbf75d752dce85ebcfaee5382d83e57a4c0815310c

Contents?: true

Size: 698 Bytes

Versions: 8

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

require_relative '../currency/deserializer'
require_relative '../subsidiary/deserializer'
require_relative '../journal_entry_line_item/deserializer'

module LedgerSync
  module Ledgers
    module NetSuite
      class JournalEntry
        class Deserializer < NetSuite::Deserializer
          id

          attribute :memo

          attribute :trandate

          attribute :tranId

          references_one :currency

          references_one :subsidiary

          references_many :line_items,
                          hash_attribute: 'line.items',
                          deserializer: JournalEntryLineItem::Deserializer
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/journal_entry/deserializer.rb