Sha256: 58b2d3a4dec8918256540bcd14c846f7c92b253a899bd94177232a80a7ad8146

Contents?: true

Size: 780 Bytes

Versions: 4

Compression:

Stored size: 780 Bytes

Contents

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module Transfer
        module Operations
          class Create < Operation::Create
            class Contract < LedgerSync::Adaptors::Contract
              params do
                required(:external_id).maybe(:string)
                required(:ledger_id).value(:nil)
                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.3.5 lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb