Sha256: 8aebe3c8d7dfd902f6e58a71138d7f49624a0321be7602453bed86579319d545

Contents?: true

Size: 768 Bytes

Versions: 4

Compression:

Stored size: 768 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module BillLineItem
        class LedgerSerializer < QuickBooksOnline::LedgerSerializer
          id

          attribute ledger_attribute: 'DetailType' do
            'AccountBasedExpenseLineDetail'
          end

          attribute ledger_attribute: 'AccountBasedExpenseLineDetail.AccountRef.value',
                    resource_attribute: 'account.ledger_id'

          attribute ledger_attribute: 'Amount',
                    resource_attribute: :amount,
                    type: LedgerSerializerType::AmountType

          attribute ledger_attribute: 'Description',
                    resource_attribute: :description
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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