class Reji::SubscriptionUpdateFailureError
Public Class Methods
cannot_delete_last_plan(subscription)
click to toggle source
# File lib/reji/errors.rb, line 59 def self.cannot_delete_last_plan(subscription) new("The plan on subscription \"#{subscription.stripe_id}\" cannot be removed because it is the last one.") end
duplicate_plan(subscription, plan)
click to toggle source
# File lib/reji/errors.rb, line 55 def self.duplicate_plan(subscription, plan) new("The plan \"#{plan}\" is already attached to subscription \"#{subscription.stripe_id}\".") end
incomplete_subscription(subscription)
click to toggle source
# File lib/reji/errors.rb, line 51 def self.incomplete_subscription(subscription) new("The subscription \"#{subscription.stripe_id}\" cannot be updated because its payment is incomplete.") end