Sha256: bdd8304284dbcc34cb4eb8f117bc4d9cd45ab37faeae8a7ed3642e4ebd8cd498

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module Account
        class LedgerSerializer < QuickBooksOnline::LedgerSerializer
          attribute ledger_attribute: 'Id', resource_attribute: :ledger_id
          attribute ledger_attribute: 'Name', resource_attribute: :name
          attribute ledger_attribute: 'AccountType', resource_attribute: :account_type, type: LedgerSerializerType::AccountType
          attribute ledger_attribute: 'AccountSubType', resource_attribute: :account_sub_type, type: LedgerSerializerType::AccountSubType
          attribute ledger_attribute: 'AcctNum', resource_attribute: :number
          attribute ledger_attribute: 'CurrencyRef.value', resource_attribute: :currency
          attribute ledger_attribute: 'Classification', resource_attribute: :classification, type: LedgerSerializerType::ClassificationType
          attribute ledger_attribute: 'Description', resource_attribute: :description
          attribute ledger_attribute: 'Active', resource_attribute: :active
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.3.1 lib/ledger_sync/adaptors/quickbooks_online/account/ledger_serializer.rb
ledger_sync-1.1.3 lib/ledger_sync/adaptors/quickbooks_online/account/ledger_serializer.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/quickbooks_online/account/ledger_serializer.rb