Sha256: 2b7f8dcc22ed1bb2c0bd7519e656c083d17d2dec2d586f95c2f1722da2cade1a

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class BillLineItem
        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/bill_line_item/deserializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/deserializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/deserializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/bill_line_item/deserializer.rb