Class: StripeModelCallbacks::ConfigureService

Inherits:
BaseEventService show all
Defined in:
app/services/stripe_model_callbacks/configure_service.rb

Instance Attribute Summary collapse

Attributes inherited from BaseEventService

#event, #object

Instance Method Summary collapse

Methods inherited from BaseService

reported_execute!, with_exception_notifications

Constructor Details

#initialize(events:) ⇒ ConfigureService

Returns a new instance of ConfigureService.



4
5
6
# File 'app/services/stripe_model_callbacks/configure_service.rb', line 4

def initialize(events:)
  @events = events
end

Instance Attribute Details

#eventsObject (readonly)

Returns the value of attribute events.



2
3
4
# File 'app/services/stripe_model_callbacks/configure_service.rb', line 2

def events
  @events
end

Instance Method Details

#executeObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/services/stripe_model_callbacks/configure_service.rb', line 8

def execute
  all_events
  charge_refund_events
  
  
  charge_events
  charge_dispute_events
  coupon_events
  customer_discount_events
  customer_events
  customer_source_events
  invoice_item_events
  invoice_events
  order_events
  recipient_events
  payout_events
  plan_events
  product_events
  review_events
  sku_events
  source_events
  subscription_events
  transfer_events

  succeed!
end