Sha256: 65c63253b20f231fa1ca48a705adda0de3771d250f635725b7c2c1d73472b837

Contents?: true

Size: 872 Bytes

Versions: 4

Compression:

Stored size: 872 Bytes

Contents

# frozen_string_literal: true

require_relative '../currency/serializer'

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

          amount 'Amount',
                 resource_attribute: :amount

          attribute 'PrivateNote',
                    resource_attribute: :memo

          attribute 'FromAccountRef.value',
                    resource_attribute: 'from_account.ledger_id'

          attribute 'ToAccountRef.value',
                    resource_attribute: 'to_account.ledger_id'

          date 'TxnDate',
               resource_attribute: :transaction_date

          references_one :CurrencyRef,
                         resource_attribute: :currency,
                         serializer: Currency::Serializer
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.4.4 lib/ledger_sync/ledgers/quickbooks_online/transfer/serializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/transfer/serializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/transfer/serializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/transfer/serializer.rb