View Source Stripe.Converter (stripity_stripe v3.2.0)

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.

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.