Sha256: d8fb4beae6a3f6b687f78f8599d2006a7985b63992604fa716492efcf74426ac

Contents?: true

Size: 816 Bytes

Versions: 4

Compression:

Stored size: 816 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Transfer
        module Operations
          class Update < Operation::FullUpdate
            class Contract < LedgerSync::Ledgers::Contract
              schema do
                required(:external_id).maybe(:string)
                required(:ledger_id).filled(:string)
                required(:from_account).hash(Types::Reference)
                required(:to_account).hash(Types::Reference)
                required(:amount).filled(:integer)
                required(:currency).filled(:hash, Types::Reference)
                required(:memo).filled(:string)
                required(:transaction_date).filled(:date?)
              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/transfer/operations/update.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/transfer/operations/update.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/transfer/operations/update.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/transfer/operations/update.rb