class Gocoin::Merchant
Attributes
currencies[R]
currency_conversions[R]
payouts[R]
Public Class Methods
new(api)
click to toggle source
# File lib/gocoin/api/merchant.rb, line 6 def initialize(api) @api = api @currencies = Gocoin::Merchants::Currencies.new(api) @currency_conversions = Gocoin::Merchants::CurrencyConversions.new(api) @payouts = Gocoin::Merchants::Payouts.new(api) end
Public Instance Methods
accounts(id)
click to toggle source
# File lib/gocoin/api/merchant.rb, line 30 def accounts(id) @api.client.logger.debug 'Gocoin::Merchant#accounts called.' route = "/merchants/#{id}/accounts" options = {} @api.request route, options end
get(id)
click to toggle source
# File lib/gocoin/api/merchant.rb, line 13 def get(id) @api.client.logger.debug 'Gocoin::Merchant#get called.' route = "/merchants/#{id}" options = {} @api.request route, options end
update(id, params)
click to toggle source
# File lib/gocoin/api/merchant.rb, line 20 def update(id, params) @api.client.logger.debug 'Gocoin::Merchant#update called.' route = "/merchants/#{id}" options = { method: 'PATCH', payload: params } @api.request route, options end