Sha256: 72e232387c9979b66fd6515a6f86402f732b0f727c74b81e14c6609892ee8da2

Contents?: true

Size: 827 Bytes

Versions: 4

Compression:

Stored size: 827 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/serializer'

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

          amount :Amount
          attribute :PrivateNote
          date :TxnDate

          references_one 'FromAccountRef',
                         resource_attribute: :FromAccount,
                         serializer: Reference::Serializer

          references_one 'ToAccountRef',
                         resource_attribute: :ToAccount,
                         serializer: Reference::Serializer

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