Sha256: 1ff1bbcb027ac7fed12678a0d2604e7913c9cc2d23bcf23027809e1390045122

Contents?: true

Size: 527 Bytes

Versions: 7

Compression:

Stored size: 527 Bytes

Contents

module Octobat
  class Payout < APIResource
    extend Octobat::APIOperations::List
    
    def balance_transactions(params = {})
      BalanceTransaction.list(params.merge({ payout: id }), @api_key)
    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

7 entries across 7 versions & 1 rubygems

Version Path
octobat-2.0.18 lib/octobat/payout.rb
octobat-2.0.17 lib/octobat/payout.rb
octobat-2.0.16 lib/octobat/payout.rb
octobat-2.0.15 lib/octobat/payout.rb
octobat-2.0.14 lib/octobat/payout.rb
octobat-2.0.12 lib/octobat/payout.rb
octobat-2.0.11 lib/octobat/payout.rb