Class: Increase::Resources::Simulations::InboundCheckDeposits
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::InboundCheckDeposits
- Defined in:
- lib/increase/resources/simulations/inbound_check_deposits.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Simulates an Inbound Check Deposit against your account.
-
#initialize(client:) ⇒ InboundCheckDeposits
constructor
A new instance of InboundCheckDeposits.
Constructor Details
#initialize(client:) ⇒ InboundCheckDeposits
Returns a new instance of InboundCheckDeposits.
7 8 9 |
# File 'lib/increase/resources/simulations/inbound_check_deposits.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::InboundCheckDeposit
Simulates an Inbound Check Deposit against your account. This imitates someone depositing a check at their bank that was issued from your account. It may or may not be associated with a Check Transfer. Increase will evaluate the Check Deposit as we would in production and either create a Transaction or a Declined Transaction as a result. You can inspect the resulting Inbound Check Deposit object to see the result.
26 27 28 29 30 31 32 33 |
# File 'lib/increase/resources/simulations/inbound_check_deposits.rb', line 26 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/inbound_check_deposits" req[:body] = params req[:model] = Increase::Models::InboundCheckDeposit @client.request(req, opts) end |