Module: Revolut::Clients::Counterparties

Included in:
Revolut::Client
Defined in:
lib/revolut/clients/counterparties.rb

Overview

Revolut Accounts

Instance Method Summary collapse

Instance Method Details

#add_counterparty(params = {}) ⇒ Hash

Add Revolut Counterparty



32
33
34
# File 'lib/revolut/clients/counterparties.rb', line 32

def add_counterparty(params = {})
  connection.post('counterparty', params)
end

#counterpartiesHash

List counterparties



12
13
14
# File 'lib/revolut/clients/counterparties.rb', line 12

def counterparties
  connection.get('counterparties')
end

#counterparty(id) ⇒ Hash

Get Counterparty

Parameters:

  • id (UUID)

    Id of counterparty.

Returns:

  • (Hash)

    Response from API.

See Also:



23
24
25
# File 'lib/revolut/clients/counterparties.rb', line 23

def counterparty(id)
  connection.get("counterparty/#{id}")
end

#delete_counterparty(id) ⇒ Hash

Delete Counterparty

Parameters:

  • id (UUID)

    Id of counterparty.

Returns:

  • (Hash)

    Response from API.

See Also:



43
44
45
# File 'lib/revolut/clients/counterparties.rb', line 43

def delete_counterparty(id)
  connection.delete("counterparty/#{id}")
end