Sha256: feaf6dca19e42d8c443fbaff26fc84258863d1df22a47588729ab6c5feff1ba0

Contents?: true

Size: 729 Bytes

Versions: 4

Compression:

Stored size: 729 Bytes

Contents

# frozen_string_literal: true

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

          attribute('DetailType') { 'AccountBasedExpenseLineDetail' }

          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/expense_line_item/serializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/serializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/serializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/serializer.rb