Class: Increase::Resources::InboundWireTransfers

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ InboundWireTransfers

Returns a new instance of InboundWireTransfers.



6
7
8
# File 'lib/increase/resources/inbound_wire_transfers.rb', line 6

def initialize(client:)
  @client = client
end

Instance Method Details

#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundWireTransfer>

List Inbound Wire Transfers

Parameters:

  • params (Hash) (defaults to: {})

    Attributes to send in this request.

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

    Options to specify HTTP behaviour for this request.

Options Hash (params):

  • :account_id (String)

    Filter Inbound Wire Tranfers to ones belonging to the specified Account.

  • :account_number_id (String)

    Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.

  • :created_at (CreatedAt)
  • :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 objects.

  • :status (Symbol)

    Filter Inbound Wire Transfers to those with the specified status.

Returns:



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

def list(params = {}, opts = {})
  req = {}
  req[:method] = :get
  req[:path] = "/inbound_wire_transfers"
  req[:query] = params
  req[:page] = Increase::Page
  req[:model] = Increase::Models::InboundWireTransfer
  @client.request(req, opts)
end

#retrieve(inbound_wire_transfer_id, opts = {}) ⇒ Increase::Models::InboundWireTransfer

Retrieve an Inbound Wire Transfer

Parameters:

  • inbound_wire_transfer_id (String)

    The identifier of the Inbound Wire Transfer to get details for.

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

    Options to specify HTTP behaviour for this request.

Returns:



16
17
18
19
20
21
22
# File 'lib/increase/resources/inbound_wire_transfers.rb', line 16

def retrieve(inbound_wire_transfer_id, opts = {})
  req = {}
  req[:method] = :get
  req[:path] = "/inbound_wire_transfers/#{inbound_wire_transfer_id}"
  req[:model] = Increase::Models::InboundWireTransfer
  @client.request(req, opts)
end