Module: Paychex::Client::DirectDeposit
- Included in:
- Paychex::Client
- Defined in:
- lib/paychex/client/direct_deposit.rb
Instance Method Summary collapse
-
#add_direct_deposit(worker_id, options = {}) ⇒ Object
Add a worker’s direct deposit details.
-
#direct_deposit(worker_id, direct_deposit_id) ⇒ Object
Get a worker’s specific direct deposit details.
-
#direct_deposits(worker_id) ⇒ Object
Get the worker’s all direct deposit details.
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, = {}) post("workers/#{worker_id}/directdeposits", ) 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 |