Sha256: 2146866f50c14dcb1346b62ad61e1daf7ea2117524460c8ff7007254111d4404

Contents?: true

Size: 961 Bytes

Versions: 11

Compression:

Stored size: 961 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module QuickBooksOnline
    class Expense
      module Operations
        class Create < QuickBooksOnline::Operation::Create
          class Contract < LedgerSync::Ledgers::Contract
            params do
              required(:external_id).maybe(:string)
              required(:Account).hash(Types::Reference)
              optional(:Currency).hash(Types::Reference)
              required(:Department).hash(Types::Reference)
              optional(:ExchangeRate).maybe(:float)
              optional(:ledger_id).value(:nil)
              required(:Line).array(Types::Reference)
              optional(:PrivateNote).filled(:string)
              required(:PaymentType).filled(:string)
              optional(:DocNumber).maybe(:string)
              optional(:TxnDate).filled(:date?)
              optional(:Entity).hash(Types::Reference)
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/expense/operations/create.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/expense/operations/create.rb