Sha256: cbd358ff7b324a53615d18274761960fe936142aaa02a76d34a9548fdf144754

Contents?: true

Size: 561 Bytes

Versions: 9

Compression:

Stored size: 561 Bytes

Contents

module Octobat
  class Payout < APIResource
    extend Octobat::APIOperations::List
    
    def balance_transactions(params = {}, opts = {})
      BalanceTransaction.list(params.merge({ payout: id }), {api_key: @api_key}.merge(opts))
    end
    
    def self.csv_export(params = {}, opts={})
      api_key, headers = Util.parse_opts(opts)
      api_key ||= @api_key
      opts[:api_key] = api_key

      instance = self.new(nil, opts)

      response, api_key = Octobat.request(:post, url + '/csv_export', api_key, params)
      return true
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
octobat-2.0.27 lib/octobat/payout.rb
octobat-2.0.26 lib/octobat/payout.rb
octobat-2.0.25 lib/octobat/payout.rb
octobat-2.0.24 lib/octobat/payout.rb
octobat-2.0.23 lib/octobat/payout.rb
octobat-2.0.22 lib/octobat/payout.rb
octobat-2.0.21 lib/octobat/payout.rb
octobat-2.0.20 lib/octobat/payout.rb
octobat-2.0.19 lib/octobat/payout.rb