Skip to Content Skip to Search
Methods
C
E
N
Included Modules

Attributes

[R] event

Class Public methods

events()

# File app/lib/stripe/event_handlers/invoice_upcoming.rb, line 9
def events
  ["invoice.upcoming"]
end

new(event)

# File app/lib/stripe/event_handlers/invoice_upcoming.rb, line 14
def initialize(event)
  @event = event
end

Instance Public methods

call()

# File app/lib/stripe/event_handlers/invoice_upcoming.rb, line 18
def call
  return unless self.class.events.include?(event.type)

  ::Api::SubscriptionRenewalCommunicator.new(invoice).notify!
end