Class: Increase::Resources::Simulations::WireDrawdownRequests
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::WireDrawdownRequests
- Defined in:
- lib/increase/resources/simulations/wire_drawdown_requests.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ WireDrawdownRequests
constructor
private
A new instance of WireDrawdownRequests.
-
#refuse(wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest
Simulates a Wire Drawdown Request being refused by the debtor.
-
#submit(wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::WireDrawdownRequest
Simulates a Wire Drawdown Request being submitted to Fedwire.
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.
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.
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.
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 |