Sha256: e67a3b6e6ac0516d095e4c2f1a21171c321c280a6d8b16c47d1c3f28101be92d

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

# frozen_string_literal: true

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

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

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

          amount :amount,
                 hash_attribute: 'Amount'

          attribute :description,
                    hash_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/deserializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/deserializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/deserializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/expense_line_item/deserializer.rb