Class: ShopifyAPI::RecurringApplicationCharge

Inherits:
Base
  • Object
show all
Defined in:
lib/shopify_api.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Countable

#count

Class Method Details

.currentObject



481
482
483
# File 'lib/shopify_api.rb', line 481

def self.current
  find(:all).find{|charge| charge.status == 'active'}
end

Instance Method Details

#activateObject



489
490
491
# File 'lib/shopify_api.rb', line 489

def activate
  load_attributes_from_response(post(:activate))
end

#cancelObject



485
486
487
# File 'lib/shopify_api.rb', line 485

def cancel
  load_attributes_from_response(self.destroy)
end