Sha256: 71d0f647764ba868b1c40580180e15c5438e02be6b30134c63ee51cdbb979ebe

Contents?: true

Size: 601 Bytes

Versions: 4

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

require_relative '../deposit_line_detail/serializer'

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

          amount :Amount
          attribute :Description

          attribute :DetailType do
            'DepositLineDetail'
          end

          references_one 'DepositLineDetail',
                         resource_attribute: :DepositLineDetail,
                         serializer: DepositLineDetail::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_line/serializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/deposit_line/serializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/deposit_line/serializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/deposit_line/serializer.rb