Class: Increase::Resources::Simulations::CheckDeposits
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::CheckDeposits
- Defined in:
- lib/increase/resources/simulations/check_deposits.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ CheckDeposits
constructor
A new instance of CheckDeposits.
-
#reject(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Simulates the rejection of a Check Deposit by Increase due to factors like poor image quality.
-
#return_(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Simulates the return of a Check Deposit.
-
#submit(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Simulates the submission of a Check Deposit to the Federal Reserve.
Constructor Details
#initialize(client:) ⇒ CheckDeposits
Returns a new instance of CheckDeposits.
7 8 9 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#reject(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Simulates the rejection of a Check Deposit by Increase due to
factors like poor image quality. This Check Deposit must first have a status
of pending
.
19 20 21 22 23 24 25 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 19 def reject(check_deposit_id, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/check_deposits/#{check_deposit_id}/reject" req[:model] = Increase::Models::CheckDeposit @client.request(req, opts) end |
#return_(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Simulates the return of a Check Deposit. This Check Deposit
must first have a status
of submitted
.
34 35 36 37 38 39 40 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 34 def return_(check_deposit_id, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/check_deposits/#{check_deposit_id}/return" req[:model] = Increase::Models::CheckDeposit @client.request(req, opts) end |
#submit(check_deposit_id, opts = {}) ⇒ Increase::Models::CheckDeposit
Simulates the submission of a Check Deposit to the Federal
Reserve. This Check Deposit must first have a status
of pending
.
49 50 51 52 53 54 55 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 49 def submit(check_deposit_id, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/check_deposits/#{check_deposit_id}/submit" req[:model] = Increase::Models::CheckDeposit @client.request(req, opts) end |