Stripe.Converter (stripity_stripe v3.3.2)

View Source

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)

@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 string keys.