View Source Stripe.Converter (stripity_stripe v3.1.1)

Link to this section Summary

Functions

Takes a result map or list of maps from a Stripe response and returns a struct (e.g. %Stripe.Card{}) or list of structs.

Link to this section Functions

@spec convert_result(%{required(String.t()) => any()}) :: struct()

Takes a result map or list of maps from a Stripe response and returns a struct (e.g. %Stripe.Card{}) or list of structs.

If the result is not a supported Stripe object, it just returns a plain map with atomized keys.