Sha256: a5632462b76b298b7aa8696f67619a9a4700a714297f33ea8c362b92b997083e

Contents?: true

Size: 1021 Bytes

Versions: 4

Compression:

Stored size: 1021 Bytes

Contents

# frozen_string_literal: true

# https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account
# Requires full update
module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module Account
        module Operations
          class Update < Operation::FullUpdate
            class Contract < LedgerSync::Adaptors::Contract
              params do
                required(:external_id).maybe(:string)
                required(:ledger_id).filled(:string)
                required(:name).filled(:string)
                required(:classification).filled(:string)
                required(:account_type).filled(:string)
                required(:account_sub_type).filled(:string)
                required(:number).maybe(:integer)
                required(:currency).maybe(:hash, Types::Reference)
                required(:description).maybe(:string)
                required(:active).maybe(:bool)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/quickbooks_online/account/operations/update.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/quickbooks_online/account/operations/update.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/quickbooks_online/account/operations/update.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/quickbooks_online/account/operations/update.rb