Sha256: a381b51529ae4a2b4436342a972a159ff847c967d968980e28ff94cf61a2633e

Contents?: true

Size: 1017 Bytes

Versions: 4

Compression:

Stored size: 1017 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 Ledgers
    module QuickBooksOnline
      class Account
        module Operations
          class Update < Operation::FullUpdate
            class Contract < LedgerSync::Ledgers::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(:string)
                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.4.4 lib/ledger_sync/ledgers/quickbooks_online/account/operations/update.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/account/operations/update.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/account/operations/update.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/account/operations/update.rb