Sha256: c17c0dd7e6166fb35189dce5a22cbb4d9170c99ccc6c7f3777fa36643622a98b

Contents?: true

Size: 855 Bytes

Versions: 3

Compression:

Stored size: 855 Bytes

Contents

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Deposit
        module Operations
          class Create < QuickBooksOnline::Operation::Create
            class Contract < LedgerSync::Ledgers::Contract
              params do
                required(:external_id).maybe(:string)
                required(:ledger_id).value(:nil)
                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

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb