Sha256: 331d859867362c7c38f968779da3d74e200c306ed376824217b82c96e7f0ace6

Contents?: true

Size: 976 Bytes

Versions: 13

Compression:

Stored size: 976 Bytes

Contents

# frozen_string_literal: true

require_relative '../deposit_line/serializer'
require_relative '../reference/serializer'

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

        date :TxnDate
        attribute :PrivateNote
        attribute :ExchangeRate

        references_one 'CurrencyRef',
                       resource_attribute: :Currency,
                       serializer: Reference::Serializer

        references_one 'DepositToAccountRef',
                       resource_attribute: :DepositToAccount,
                       serializer: Reference::Serializer

        references_one 'DepartmentRef',
                       resource_attribute: :Department,
                       serializer: Reference::Serializer

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