Class: StripeModelCallbacks::Plan::SyncAll

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/stripe_model_callbacks/plan/sync_all.rb

Instance Method Summary collapse

Instance Method Details

#performObject



2
3
4
5
6
7
8
# File 'app/services/stripe_model_callbacks/plan/sync_all.rb', line 2

def perform
  Stripe::Plan.list.each do |plan|
    StripeModelCallbacks::SyncFromStripe.execute!(stripe_object: plan)
  end

  succeed!
end