stripity_stripe v2.0.0-alpha.6 Stripe.Converter

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

convert_result(result)
convert_result(%{optional(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.