Sha256: f50b6053a638a346cc23e4fa2a628faaf59f30106f641400fd936cfc04772b28

Contents?: true

Size: 833 Bytes

Versions: 4

Compression:

Stored size: 833 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/deserializer'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Transfer
        class Deserializer < QuickBooksOnline::Deserializer
          id

          amount :Amount
          attribute :PrivateNote
          date :TxnDate

          references_one :FromAccount,
                         hash_attribute: 'FromAccountRef',
                         deserializer: Reference::Deserializer

          references_one :ToAccount,
                         hash_attribute: 'ToAccountRef',
                         deserializer: Reference::Deserializer

          references_one :Currency,
                         hash_attribute: 'CurrencyRef',
                         deserializer: Reference::Deserializer
        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/transfer/deserializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/transfer/deserializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/transfer/deserializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/transfer/deserializer.rb