Sha256: bcec1bcc6ac798833f129da24e189b4cea9d8438f17fe4e942b96a25ddf9c068

Contents?: true

Size: 1007 Bytes

Versions: 3

Compression:

Stored size: 1007 Bytes

Contents

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Payment
        module Operations
          class Find < Operation::Find
            class Contract < LedgerSync::Ledgers::Contract
              schema do
                required(:external_id).maybe(:string)
                optional(:account).hash(Types::Reference)
                optional(:amount).maybe(:integer)
                required(:currency).maybe(:hash, Types::Reference)
                optional(:customer).hash(Types::Reference)
                optional(:deposit_account).hash(Types::Reference)
                optional(:exchange_rate).maybe(:float)
                required(:ledger_id).filled(:string)
                optional(:line_items).array(Types::Reference)
                optional(:memo).maybe(:string)
                optional(:reference_number).maybe(:string)
                optional(:transaction_date).maybe(:date?)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb