Module: Paychex::Client::DirectDeposit

Included in:
Paychex::Client
Defined in:
lib/paychex/client/direct_deposit.rb

Instance Method Summary collapse

Instance Method Details

#add_direct_deposit(worker_id, options = {}) ⇒ Object

Add a worker’s direct deposit details



15
16
17
# File 'lib/paychex/client/direct_deposit.rb', line 15

def add_direct_deposit(worker_id, options = {})
  post("workers/#{worker_id}/directdeposits", options)
end

#direct_deposit(worker_id, direct_deposit_id) ⇒ Object

Get a worker’s specific direct deposit details



10
11
12
# File 'lib/paychex/client/direct_deposit.rb', line 10

def direct_deposit(worker_id, direct_deposit_id)
  get("workers/#{worker_id}/directdeposits/#{direct_deposit_id}")
end

#direct_deposits(worker_id) ⇒ Object

Get the worker’s all direct deposit details



5
6
7
# File 'lib/paychex/client/direct_deposit.rb', line 5

def direct_deposits(worker_id)
  get("workers/#{worker_id}/directdeposits")
end