Sha256: ef2a93842680d1e47745623fac79d235af5d996b18472559bde9fcac4e6b278b

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      class Preferences
        class LedgerSerializer < QuickBooksOnline::LedgerSerializer
          attribute ledger_attribute: 'AccountingInfoPrefs',
                    resource_attribute: :accounting_info

          attribute ledger_attribute: 'ProductAndServicesPrefs',
                    resource_attribute: :product_and_services

          attribute ledger_attribute: 'SalesFormsPrefs',
                    resource_attribute: :sales_forms

          attribute ledger_attribute: 'EmailMessagesPrefs',
                    resource_attribute: :email_messages

          attribute ledger_attribute: 'VendorAndPurchasesPrefs',
                    resource_attribute: :vendor_and_purchases

          attribute ledger_attribute: 'TimeTrackingPrefs',
                    resource_attribute: :time_tracking

          attribute ledger_attribute: 'TaxPrefs',
                    resource_attribute: :tax

          attribute ledger_attribute: 'CurrencyPrefs',
                    resource_attribute: :currency

          attribute ledger_attribute: 'ReportPrefs',
                    resource_attribute: :report

          attribute ledger_attribute: 'OtherPrefs',
                    resource_attribute: :other

          def self.inferred_resource_class
            LedgerSync::Adaptors::QuickBooksOnline::Preferences
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/quickbooks_online/preferences/ledger_serializer.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/quickbooks_online/preferences/ledger_serializer.rb