Class: StripeModelCallbacks::ConfigureService
- Inherits:
-
BaseEventService
- Object
- ServicePattern::Service
- BaseService
- BaseEventService
- StripeModelCallbacks::ConfigureService
- Defined in:
- app/services/stripe_model_callbacks/configure_service.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Attributes inherited from BaseEventService
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(events:) ⇒ ConfigureService
constructor
A new instance of ConfigureService.
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
#events ⇒ Object (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
#execute ⇒ Object
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 customer_bank_account_events account_external_account_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 |