Class: Increase::Resources::InboundWireDrawdownRequests

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ InboundWireDrawdownRequests

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

Parameters:



57
58
59
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 57

def initialize(client:)
  @client = client
end

Instance Method Details

#list(cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundWireDrawdownRequest>

Some parameter documentations has been truncated, see Models::InboundWireDrawdownRequestListParams for more details.

List Inbound Wire Drawdown Requests

Parameters:

  • cursor (String)

    Return the page of entries after this one.

  • limit (Integer)

    Limit the size of the list that is returned. The default (and maximum) is 100 ob

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

Returns:

See Also:



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 42

def list(params = {})
  parsed, options = Increase::InboundWireDrawdownRequestListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "inbound_wire_drawdown_requests",
    query: parsed,
    page: Increase::Internal::Page,
    model: Increase::InboundWireDrawdownRequest,
    options: options
  )
end

#retrieve(inbound_wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::InboundWireDrawdownRequest

Retrieve an Inbound Wire Drawdown Request

Parameters:

  • inbound_wire_drawdown_request_id (String)

    The identifier of the Inbound Wire Drawdown Request to retrieve.

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

Returns:

See Also:



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

def retrieve(inbound_wire_drawdown_request_id, params = {})
  @client.request(
    method: :get,
    path: ["inbound_wire_drawdown_requests/%1$s", inbound_wire_drawdown_request_id],
    model: Increase::InboundWireDrawdownRequest,
    options: params[:request_options]
  )
end