Sha256: c81632f4dddcbbeee8fb2b5cfe2aa70d5c5e833dfea195046fbfe64fd6c43ab5

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

class StripeModelCallbacks::Coupon::SyncAll < StripeModelCallbacks::BaseService
  def perform
    Stripe::Coupon.list.each do |coupon|
      StripeModelCallbacks::SyncFromStripe.execute!(stripe_object: coupon)
    end

    succeed!
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stripe_model_callbacks-0.1.7 app/services/stripe_model_callbacks/coupon/sync_all.rb
stripe_model_callbacks-0.1.6 app/services/stripe_model_callbacks/coupon/sync_all.rb
stripe_model_callbacks-0.1.5 app/services/stripe_model_callbacks/coupon/sync_all.rb
stripe_model_callbacks-0.1.4 app/services/stripe_model_callbacks/coupon/sync_all.rb
stripe_model_callbacks-0.1.3 app/services/stripe_model_callbacks/coupon/sync_all.rb