code_corps v0.0.1 CodeCorps.StripeService.Adapters.StripeEventAdapter View Source
Handles data transformations between the API Stripe.Event struct and maps of
attributes suitable for work with our own StripeEvent database objects.
Link to this section Summary
Functions
Transforms a %Stripe.Event{} and a set of local attributes into a
map of parameters used to create or update a StripeEvent record
Link to this section Functions
Link to this function
to_params(stripe_event, attributes)
View Source
to_params(Stripe.Event.t(), map()) :: {:ok, map()}
Transforms a %Stripe.Event{} and a set of local attributes into a
map of parameters used to create or update a StripeEvent record.