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
private
A new instance of CheckDeposits.
-
#reject(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit
Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to factors like poor image quality.
-
#return_(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit
Simulates the return of a [Check Deposit](#check-deposits).
-
#submit(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit
Simulates the submission of a [Check Deposit](#check-deposits) to the Federal Reserve.
Constructor Details
#initialize(client:) ⇒ CheckDeposits
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CheckDeposits.
74 75 76 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 74 def initialize(client:) @client = client end |
Instance Method Details
#reject(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit
Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to factors like poor image quality. This Check Deposit must first have a ‘status` of `pending`.
20 21 22 23 24 25 26 27 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 20 def reject(check_deposit_id, params = {}) @client.request( method: :post, path: ["simulations/check_deposits/%1$s/reject", check_deposit_id], model: Increase::CheckDeposit, options: params[:request_options] ) end |
#return_(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit
Simulates the return of a [Check Deposit](#check-deposits). This Check Deposit must first have a ‘status` of `submitted`.
41 42 43 44 45 46 47 48 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 41 def return_(check_deposit_id, params = {}) @client.request( method: :post, path: ["simulations/check_deposits/%1$s/return", check_deposit_id], model: Increase::CheckDeposit, options: params[:request_options] ) end |
#submit(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit
Simulates the submission of a [Check Deposit](#check-deposits) to the Federal Reserve. This Check Deposit must first have a ‘status` of `pending`.
62 63 64 65 66 67 68 69 |
# File 'lib/increase/resources/simulations/check_deposits.rb', line 62 def submit(check_deposit_id, params = {}) @client.request( method: :post, path: ["simulations/check_deposits/%1$s/submit", check_deposit_id], model: Increase::CheckDeposit, options: params[:request_options] ) end |