Sha256: 8bb0ccad73cf8858131652d9bd0e5f7588a72c199dd0f090c6a3f203b8ac3246

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'
require_relative 'customer'
require_relative 'ledger_class'
require_relative 'vendor'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class DepositLineItem < QuickBooksOnline::Resource
        references_one :account, to: Account
        references_one :ledger_class, to: LedgerClass
        attribute :amount, type: Type::Integer
        attribute :description, type: Type::String

        references_one :entity, to: [Customer, Vendor]

        def name
          description
        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/resources/deposit_line_item.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/resources/deposit_line_item.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/resources/deposit_line_item.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/resources/deposit_line_item.rb