Sha256: ee3626416e75aacdd33b3f0b96a431aa02de2ffb89ac8d968977663e22bac491

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

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(:ARAccount).hash(Types::Reference)
                optional(:Currency).maybe(:hash, Types::Reference)
                optional(:Customer).hash(Types::Reference)
                optional(:DepositToAccount).hash(Types::Reference)
                optional(:ExchangeRate).maybe(:float)
                required(:ledger_id).filled(:string)
                optional(:Line).array(Types::Reference)
                optional(:PrivateNote).maybe(:string)
                optional(:PaymentRefNum).maybe(:string)
                optional(:TotalAmt).maybe(:integer)
                optional(:TxnDate).maybe(:date?)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/find.rb