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



474
475
476
# File 'lib/shopify_api.rb', line 474

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

Instance Method Details

#activateObject



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

def activate
  load_attributes_from_response(post(:activate))
end

#cancelObject



478
479
480
# File 'lib/shopify_api.rb', line 478

def cancel
  load_attributes_from_response(self.destroy)
end