Sha256: 47d0a6c0a96e3663cea9295e984832f4c8e52a2b63fc197e4380dde840b03333

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class BillPayment
        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)
                optional(:bank_account).maybe(Types::Reference)
                optional(:credit_card_account).maybe(Types::Reference)
                required(:currency).maybe(:hash, Types::Reference)
                optional(:department).hash(Types::Reference)
                optional(:exchange_rate).maybe(:float)
                required(:ledger_id).filled(:string)
                optional(:line_items).array(Types::Reference)
                optional(:memo).maybe(:string)
                optional(:payment_type).maybe(:string)
                optional(:reference_number).maybe(:string)
                optional(:transaction_date).maybe(:date?)
                optional(:vendor).hash(Types::Reference)
              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/bill_payment/operations/find.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/bill_payment/operations/find.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/bill_payment/operations/find.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/bill_payment/operations/find.rb