Sha256: 0ea2651d8a8a6de91d7e6560f989b58e1d323e5d50a47663fc659aa35cd77494

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

module Gocoin
	module Merchants
	  class Payouts

			def initialize(api)
			  @api = api
			end

			def get(merchant_id, payout_id)
				@api.client.logger.debug 'Gocoin::Merchants::Payouts#get called.'
				route = "/merchants/#{merchant_id}/payouts/#{payout_id}"
				options = {}
				@api.request route, options
			end

			def list(merchant_id)
				@api.client.logger.debug 'Gocoin::Merchants::Payouts#list called.'
				route = "/merchants/#{merchant_id}/payouts"
				options = {}
				@api.request route, options
			end

		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gocoin-0.1.4 lib/gocoin/api/merchants/payouts.rb
gocoin-0.1.3 lib/gocoin/api/merchants/payouts.rb