Sha256: 099c6738f5609bfce4ad991ae4e31225bcf782b407b6a52c6a484d441df3aa0b

Contents?: true

Size: 886 Bytes

Versions: 4

Compression:

Stored size: 886 Bytes

Contents

# frozen_string_literal: true

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(:DepositToAccount).hash(Types::Reference)
                required(:Currency).filled(:hash, Types::Reference)
                required(:Department).hash(Types::Reference)
                required(:PrivateNote).filled(:string)
                required(:TxnDate).filled(:date?)
                required(:ExchangeRate).maybe(:float)
                required(:Line).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.6.0 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/deposit/operations/create.rb