code_corps v0.0.1 CodeCorps.StripeService.WebhookProcessing.IgnoredEventHandler View Source
Link to this section Summary
Functions
Takes in a CodeCorps.StripeEvent to be processed as “ignored”.
Determines the reason for ignoring the event, then updates the record to
status: "ignored" and ignored_reason: inferred_message
Returns a list of event types which are being explicitly ignored by the application
Determines if an event type should be handled by MODULE
Link to this section Functions
Link to this function
handle(local_event, handler)
View Source
handle(CodeCorps.StripeEvent.t(), module()) :: {:ok, CodeCorps.StripeEvent.t()}
Takes in a CodeCorps.StripeEvent to be processed as “ignored”.
Determines the reason for ignoring the event, then updates the record to
status: "ignored" and ignored_reason: inferred_message
Returns {:ok, %CodeCorps.StripeEvent{}}
Returns a list of event types which are being explicitly ignored by the application.
Link to this function
should_handle?(type, handler)
View Source
should_handle?(String.t(), module()) :: boolean()
Determines if an event type should be handled by MODULE
Returns true or false depending on specified type