Sha256: e8dee9e5b9166f6a087216904ec004875946189d68c72f8408acca85655f1957

Contents?: true

Size: 588 Bytes

Versions: 8

Compression:

Stored size: 588 Bytes

Contents

module Paychex
  class Client
    module DirectDeposit
      # Get the worker's all direct deposit details
      def direct_deposits(worker_id)
        get("workers/#{worker_id}/directdeposits")
      end

      # Get a worker's specific direct deposit details
      def direct_deposit(worker_id, direct_deposit_id)
        get("workers/#{worker_id}/directdeposits/#{direct_deposit_id}")
      end

      # Add a worker's direct deposit details
      def add_direct_deposit(worker_id, options = {})
        post("workers/#{worker_id}/directdeposits", options)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
paychex-0.3.3 lib/paychex/client/direct_deposit.rb
paychex-0.3.2 lib/paychex/client/direct_deposit.rb
paychex-0.3.1 lib/paychex/client/direct_deposit.rb
paychex-0.3.0 lib/paychex/client/direct_deposit.rb
paychex-0.2.2 lib/paychex/client/direct_deposit.rb
paychex-0.2.1 lib/paychex/client/direct_deposit.rb
paychex-0.2.0 lib/paychex/client/direct_deposit.rb
paychex-0.1.1 lib/paychex/client/direct_deposit.rb