Class: Susply::CloseSubscription
- Inherits:
-
Object
- Object
- Susply::CloseSubscription
- Defined in:
- app/services/susply/close_subscription.rb
Class Method Summary collapse
Class Method Details
.call(owner) ⇒ Object
3 4 5 6 7 8 |
# File 'app/services/susply/close_subscription.rb', line 3 def self.call(owner) if owner.has_active_subscription? Susply::CreatePayment.call(owner.active_subscription, "plan_close") Susply::CancelSubscription.call(owner.active_subscription) end end |