Sha256: 7920c8dd2808e02f04de8590965020fcf18c7f0f763660ba390f1beeeb649cd8

Contents?: true

Size: 894 Bytes

Versions: 4

Compression:

Stored size: 894 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Deposit
        module Operations
          class Update < QuickBooksOnline::Operation::FullUpdate
            class Contract < LedgerSync::Ledgers::Contract
              schema do
                required(:external_id).maybe(:string)
                required(:ledger_id).filled(:string)
                required(:account).hash(Types::Reference)
                required(:currency).filled(:hash, Types::Reference)
                required(:department).hash(Types::Reference)
                required(:memo).filled(:string)
                required(:transaction_date).filled(:date?)
                required(:exchange_rate).maybe(:float)
                required(:line_items).array(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/deposit/operations/update.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/update.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/update.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/update.rb