lib/braintree/subscription.rb in braintree-2.40.0 vs lib/braintree/subscription.rb in braintree-2.41.0
- old
+ new
@@ -1,7 +1,6 @@
module Braintree
- # See http://www.braintreepayments.com/docs/ruby/subscriptions/overview
class Subscription
include BaseModule
module Source
Api = "api"
@@ -37,38 +36,33 @@
attr_reader :descriptor
attr_reader :current_billing_cycle
attr_reader :updated_at, :created_at
attr_reader :status_history
- # See http://www.braintreepayments.com/docs/ruby/subscriptions/cancel
def self.cancel(subscription_id)
Configuration.gateway.subscription.cancel(subscription_id)
end
- # See http://www.braintreepayments.com/docs/ruby/subscriptions/create
def self.create(attributes)
Configuration.gateway.subscription.create(attributes)
end
def self.create!(attributes)
return_object_or_raise(:subscription) { create(attributes) }
end
- # See http://www.braintreepayments.com/docs/ruby/subscriptions/search
def self.find(id)
Configuration.gateway.subscription.find(id)
end
def self.retry_charge(subscription_id, amount=nil)
Configuration.gateway.transaction.retry_subscription_charge(subscription_id, amount)
end
- # See http://www.braintreepayments.com/docs/ruby/subscriptions/search
def self.search(&block)
Configuration.gateway.subscription.search(&block)
end
- # See http://www.braintreepayments.com/docs/ruby/subscriptions/update
def self.update(subscription_id, attributes)
Configuration.gateway.subscription.update(subscription_id, attributes)
end
def self.update!(subscription_id, attributes)