Sha256: c7bc2b57ff48400b871e94edced97e3d6741a9ae343e1cb17ec0273abb2e9999

Contents?: true

Size: 984 Bytes

Versions: 13

Compression:

Stored size: 984 Bytes

Contents

# frozen_string_literal: true

require_relative '../deposit_line/deserializer'
require_relative '../reference/deserializer'

module LedgerSync
  module QuickBooksOnline
    class Deposit
      class Deserializer < QuickBooksOnline::Deserializer
        id

        date :TxnDate
        attribute :PrivateNote
        attribute :ExchangeRate

        references_one :Currency,
                       hash_attribute: 'CurrencyRef',
                       deserializer: Reference::Deserializer

        references_one :DepositToAccount,
                       hash_attribute: 'DepositToAccountRef',
                       deserializer: Reference::Deserializer

        references_one :Department,
                       hash_attribute: 'DepartmentRef',
                       deserializer: Reference::Deserializer

        references_many :Line,
                        hash_attribute: 'Line',
                        deserializer: DepositLine::Deserializer
      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/deposit/deserializer.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/deposit/deserializer.rb