Sha256: ff399231b691db9fe973861b3057344df5b4e29e79f3a0c1e6aeedb21f95e43a

Contents?: true

Size: 1019 Bytes

Versions: 3

Compression:

Stored size: 1019 Bytes

Contents

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Payment
        module Operations
          class Update < Operation::FullUpdate
            class Contract < LedgerSync::Ledgers::Contract
              schema do
                required(:external_id).maybe(:string)
                optional(:account).hash(Types::Reference)
                required(:amount).filled(:integer)
                required(:currency).filled(:hash, Types::Reference)
                required(:customer).hash(Types::Reference)
                optional(:deposit_account).hash(Types::Reference)
                optional(:exchange_rate).maybe(:float)
                required(:ledger_id).filled(:string)
                required(:line_items).array(Types::Reference)
                optional(:memo).filled(:string)
                optional(:reference_number).maybe(:string)
                optional(:transaction_date).filled(: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/update.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/update.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/payment/operations/update.rb