Class: Increase::Resources::Simulations::InboundACHTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::InboundACHTransfers
- Defined in:
- lib/increase/resources/simulations/inbound_ach_transfers.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Simulates an inbound ACH transfer to your account.
-
#initialize(client:) ⇒ InboundACHTransfers
constructor
A new instance of InboundACHTransfers.
Constructor Details
#initialize(client:) ⇒ InboundACHTransfers
Returns a new instance of InboundACHTransfers.
7 8 9 |
# File 'lib/increase/resources/simulations/inbound_ach_transfers.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Simulates an inbound ACH transfer to your account. This imitates initiating a
transfer to an Increase account from a different financial institution. The
transfer may be either a credit or a debit depending on if the amount
is
positive or negative. The result of calling this API will contain the created
transfer. You can pass a resolve_at
parameter to allow for a window to
action on the Inbound ACH Transfer.
Alternatively, if you don't pass the resolve_at
parameter the result will
contain either a Transaction or a
Declined Transaction depending on whether or not the
transfer is allowed.
41 42 43 44 45 46 47 48 |
# File 'lib/increase/resources/simulations/inbound_ach_transfers.rb', line 41 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/inbound_ach_transfers" req[:body] = params req[:model] = Increase::Models::InboundACHTransfer @client.request(req, opts) end |