Sha256: ce3f33cb670344da3c01866dda1c54c8b78bf2f00a5efd91a7bdfb0ad7f13ee5

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

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

module LedgerSync
  module Ledgers
    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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/deposit/serializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/deposit/serializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/deposit/serializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/deposit/serializer.rb