Sha256: 27455dc9b8b0ab6469ea3065b323ae830d32cbdb16fbf8797eb054cf3143825b

Contents?: true

Size: 737 Bytes

Versions: 9

Compression:

Stored size: 737 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/deserializer'

module LedgerSync
  module QuickBooksOnline
    class Account
      class Deserializer < QuickBooksOnline::Deserializer
        id

        attribute :Name
        attribute :AcctNum
        attribute :Description
        attribute :Active

        mapping :AccountType,
                hash: Account::TYPES.invert
        mapping :AccountSubType,
                hash: Account::SUB_TYPES.invert
        mapping :Classification,
                hash: Account::CLASSIFICATIONS.invert

        references_one :Currency,
                       hash_attribute: :CurrencyRef,
                       deserializer: Reference::Deserializer
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/account/deserializer.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/account/deserializer.rb