Sha256: bc315e624f9432abbbb9ef9f0600562088242b2bb3c55d8aa79cd7a9de58ec39
Contents?: true
Size: 879 Bytes
Versions: 3
Compression:
Stored size: 879 Bytes
Contents
module Gocoin class Merchant attr_reader :currencies, :currency_conversions, :payouts 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 def get(id) @api.client.logger.debug 'Gocoin::Merchant#get called.' route = "/merchants/#{id}" options = {} @api.request route, options end 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 def accounts(id) @api.client.logger.debug 'Gocoin::Merchant#accounts called.' route = "/merchants/#{id}/accounts" options = {} @api.request route, options end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gocoin-0.1.4 | lib/gocoin/api/merchant.rb |
gocoin-0.1.3 | lib/gocoin/api/merchant.rb |
gocoin-0.1.2 | lib/gocoin/api/merchant.rb |