# 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(: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