Class: StripeModelCallbacks::SubscriptionSchedule::UpdatedService
- Inherits:
-
BaseEventService
- Object
- BaseEventService
- StripeModelCallbacks::SubscriptionSchedule::UpdatedService
- Defined in:
- app/services/stripe_model_callbacks/subscription_schedule/updated_service.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/services/stripe_model_callbacks/subscription_schedule/updated_service.rb', line 7 def perform subscription_schedule.assign_from_stripe(object) set_cancellation_date if canceled? return success_actions if subscription_schedule.save fail!(subscription_schedule.errors.) end |