Sha256: 97654f504cb3bc61b2d79b85937c7852dd356b751c17ee395db4ccba2804c88a

Contents?: true

Size: 750 Bytes

Versions: 4

Compression:

Stored size: 750 Bytes

Contents

# frozen_string_literal: true

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

          attribute 'DetailType' do
            'AccountBasedExpenseLineDetail'
          end

          attribute 'AccountBasedExpenseLineDetail.AccountRef.value',
                    resource_attribute: 'account.ledger_id'

          attribute 'AccountBasedExpenseLineDetail.ClassRef.value',
                    resource_attribute: 'ledger_class.ledger_id'

          amount 'Amount',
                 resource_attribute: :amount

          attribute 'Description',
                    resource_attribute: :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/bill_line_item/serializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/serializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/serializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/serializer.rb