Class: Increase::Resources::Simulations::InboundFundsHolds

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/simulations/inbound_funds_holds.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ InboundFundsHolds

Returns a new instance of InboundFundsHolds.



7
8
9
# File 'lib/increase/resources/simulations/inbound_funds_holds.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#release(inbound_funds_hold_id, opts = {}) ⇒ Increase::Models::InboundFundsHoldReleaseResponse

This endpoint simulates immediately releasing an inbound funds hold, which might be created as a result of e.g., an ACH debit.

Parameters:

  • inbound_funds_hold_id (String)

    The inbound funds hold to release.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



18
19
20
21
22
23
24
# File 'lib/increase/resources/simulations/inbound_funds_holds.rb', line 18

def release(inbound_funds_hold_id, opts = {})
  req = {}
  req[:method] = :post
  req[:path] = "/simulations/inbound_funds_holds/#{inbound_funds_hold_id}/release"
  req[:model] = Increase::Models::InboundFundsHoldReleaseResponse
  @client.request(req, opts)
end