module JeraPayment::Concerns::SubscriptionMethods

Public Instance Methods

activate() click to toggle source
# File lib/jera_payment/models/concerns/subscription_methods.rb, line 7
def activate
  JeraPayment::Services::Iugu::Subscriptions::UpdateSituation.new(self, :activate).call
end
add_credits(credits) click to toggle source
# File lib/jera_payment/models/concerns/subscription_methods.rb, line 23
def add_credits(credits)
  JeraPayment::Services::Iugu::Subscriptions::UpdateCredits.new(self, credits, :add).call
end
change_plan(plan_identifier) click to toggle source
# File lib/jera_payment/models/concerns/subscription_methods.rb, line 19
def change_plan(plan_identifier)
  JeraPayment::Services::Iugu::Subscriptions::ChangePlan.new(self, plan_identifier).call
end
change_plan_simulation(plan_identifier) click to toggle source
# File lib/jera_payment/models/concerns/subscription_methods.rb, line 15
def change_plan_simulation(plan_identifier)
  JeraPayment::Services::Iugu::Subscriptions::ChangePlan.new(self, plan_identifier, :_simulation).call
end
remove_credits(credits) click to toggle source
# File lib/jera_payment/models/concerns/subscription_methods.rb, line 27
def remove_credits(credits)
  JeraPayment::Services::Iugu::Subscriptions::UpdateCredits.new(self, credits, :remove).call
end
suspend() click to toggle source
# File lib/jera_payment/models/concerns/subscription_methods.rb, line 11
def suspend
  JeraPayment::Services::Iugu::Subscriptions::UpdateSituation.new(self, :suspend).call
end