Sha256: f1bfaeffd2c6fbcb1db59fc38d250138538ad0fe09a86bf0bbcb7b0afdf62df8

Contents?: true

Size: 800 Bytes

Versions: 4

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/deserializer'

module LedgerSync
  module Ledgers
    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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/account/deserializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/account/deserializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/account/deserializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/account/deserializer.rb