Class: Increase::Resources::Simulations::WireDrawdownRequests

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ WireDrawdownRequests

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 WireDrawdownRequests.

Parameters:



50
51
52
# File 'lib/increase/resources/simulations/wire_drawdown_requests.rb', line 50

def initialize(client:)
  @client = client
end

Instance Method Details

#refuse(wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest

Simulates a Wire Drawdown Request being refused by the debtor.

Parameters:

  • wire_drawdown_request_id (String)

    The identifier of the Wire Drawdown Request you wish to refuse.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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

def refuse(wire_drawdown_request_id, params = {})
  @client.request(
    method: :post,
    path: ["simulations/wire_drawdown_requests/%1$s/refuse", wire_drawdown_request_id],
    model: Increase::WireDrawdownRequest,
    options: params[:request_options]
  )
end

#submit(wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest

Simulates a Wire Drawdown Request being submitted to Fedwire.

Parameters:

  • wire_drawdown_request_id (String)

    The identifier of the Wire Drawdown Request you wish to submit.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



38
39
40
41
42
43
44
45
# File 'lib/increase/resources/simulations/wire_drawdown_requests.rb', line 38

def submit(wire_drawdown_request_id, params = {})
  @client.request(
    method: :post,
    path: ["simulations/wire_drawdown_requests/%1$s/submit", wire_drawdown_request_id],
    model: Increase::WireDrawdownRequest,
    options: params[:request_options]
  )
end