Sha256: 49cd3d3507cb28d1029f0eacc8f47fab4f241afca0efd0842d6d6505ca42157e

Contents?: true

Size: 581 Bytes

Versions: 9

Compression:

Stored size: 581 Bytes

Contents

module Recurly
  class Charge < RecurlyBase
    self.element_name = "charge"
    self.prefix = "/accounts/:account_code/"

    def self.list(account_code, status = :all)
      params = {:account_code => account_code}

      if status != :all
        params[:show] = status.to_s
      end

      find(:all, :params => params)
    end

    def self.lookup(account_code, id)
      find(id, :params => { :account_code => account_code })
    end

    # def destroy
    #   reload
    #   return false if respond_to?(:invoice_id) and invoice_id.present?
    #   super
    # end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
recurly-0.3.3 lib/recurly/charge.rb
recurly-0.3.2 lib/recurly/charge.rb
recurly-0.3.1 lib/recurly/charge.rb
recurly-0.3.0 lib/recurly/charge.rb
recurly-0.2.9 lib/recurly/charge.rb
recurly-0.2.8 lib/recurly/charge.rb
recurly-0.2.7 lib/recurly/charge.rb
recurly-0.2.6 lib/recurly/charge.rb
recurly-0.2.5 lib/recurly/charge.rb