Sha256: c5ca29eea5feb6d6a006526b4d671f67349f7c089d90b6ebe69920d85dec5534

Contents?: true

Size: 764 Bytes

Versions: 3

Compression:

Stored size: 764 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(:string)
                required(:memo).filled(:string)
                required(: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.3.1 lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb
ledger_sync-1.1.3 lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/quickbooks_online/transfer/operations/create.rb