module Revolut::Clients::Counterparties
Public Instance Methods
add_counterparty(params = {})
click to toggle source
Add Revolut
Counterparty
@see revolutdev.github.io/business-api/?shell–production#add-revolut-counterparty
@return [Hash] Response from API.
# File lib/revolut/clients/counterparties.rb, line 32 def add_counterparty(params = {}) connection.post('counterparty', params) end
counterparties()
click to toggle source
List counterparties
@see revolutdev.github.io/business-api/?shell–production#get-counterparties
@return [Hash] Response from API.
# File lib/revolut/clients/counterparties.rb, line 12 def counterparties connection.get('counterparties') end
counterparty(id)
click to toggle source
Get Counterparty
@see revolutdev.github.io/business-api/?shell–production#get-counterparty
@param id [UUID] Id of counterparty.
@return [Hash] Response from API.
# File lib/revolut/clients/counterparties.rb, line 23 def counterparty(id) connection.get("counterparty/#{id}") end
delete_counterparty(id)
click to toggle source
Delete Counterparty
@see revolutdev.github.io/business-api/?shell–production#delete-counterparty
@param id [UUID] Id of counterparty.
@return [Hash] Response from API.
# File lib/revolut/clients/counterparties.rb, line 43 def delete_counterparty(id) connection.delete("counterparty/#{id}") end