Sha256: 21479f1718ebeed73a87eba2e7b195feed6eff6c8664ef19e30821a1c75f28a3

Contents?: true

Size: 710 Bytes

Versions: 9

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/serializer'

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

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

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

        references_one :CurrencyRef,
                       resource_attribute: :Currency,
                       serializer: Reference::Serializer
      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/serializer.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/account/serializer.rb