Sha256: 3730ffcfef0c7787ce4bd135af420c19ce9426cc195f8135c53a7b48afe64d1c

Contents?: true

Size: 693 Bytes

Versions: 10

Compression:

Stored size: 693 Bytes

Contents

# frozen_string_literal: true

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

module LedgerSync
  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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ledger_sync-netsuite-0.7.1 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.6.2 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.6.1 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.6.0 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.5.0 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.4.2 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.3.6 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.3.5 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.3.4 lib/ledger_sync/netsuite/journal_entry/deserializer.rb
ledger_sync-netsuite-0.3.3 lib/ledger_sync/netsuite/journal_entry/deserializer.rb