Sha256: 360bde525054c8af85c6bf56b44e221f93e7e2d3c3a152a217d74e47aee01668

Contents?: true

Size: 662 Bytes

Versions: 4

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

require_relative '../account_based_expense_line_detail/serializer'

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

          amount :Amount
          attribute :Description

          attribute :DetailType do
            'AccountBasedExpenseLineDetail'
          end

          references_one :AccountBasedExpenseLineDetail,
                         resource_attribute: :AccountBasedExpenseLineDetail,
                         serializer: AccountBasedExpenseLineDetail::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/expense_line/serializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/expense_line/serializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/expense_line/serializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/expense_line/serializer.rb