Sha256: 9988ec26e4e40aafd10c82e57bf053e8e48bb94f4ff76a9ac0b64c2381ddae9e

Contents?: true

Size: 670 Bytes

Versions: 4

Compression:

Stored size: 670 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 :AccountSubType
        attribute :Description
        attribute :Active

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

        references_one :CurrencyRef,
                       resource_attribute: :Currency,
                       serializer: Reference::Serializer
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-2.0.0 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/account/serializer.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/account/serializer.rb