Sha256: 0d610923cde51a99470b337c2da0a4db5720b65316b023bc15fb23ad716f6862

Contents?: true

Size: 949 Bytes

Versions: 11

Compression:

Stored size: 949 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module QuickBooksOnline
    class Expense
      module Operations
        class Find < Operation::Find
          class Contract < LedgerSync::Ledgers::Contract
            schema do
              required(:external_id).maybe(:string)
              optional(:Account).hash(Types::Reference)
              optional(:Currency).maybe(:hash, Types::Reference)
              optional(:Department).hash(Types::Reference)
              optional(:ExchangeRate).maybe(:float)
              required(:ledger_id).filled(:string)
              optional(:Line).array(Types::Reference)
              optional(:PrivateNote).maybe(:string)
              optional(:PaymentType).maybe(:string)
              optional(:DocNumber).maybe(:string)
              optional(:TxnDate).filled(:date?)
              optional(:Entity).hash(Types::Reference)
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/expense/operations/find.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/expense/operations/find.rb