Mercury.CaseConverter (mercury_client v1.0.0)

Copy Markdown View Source

Converts the (snake_case, idiomatic-Elixir) keys of maps and keyword lists you pass to create/update functions into the camelCase keys the Mercury API expects, recursively.

Values are left untouched — enum-like values (e.g. payment methods, wire types) should be given as atoms or strings that already match Mercury's wire format exactly, e.g. :domesticWire, "businessChecking".

Summary

Functions

Recursively camelizes the keys of a map, keyword list, or list of either.

Functions

camelize_keys(value)

@spec camelize_keys(value :: term()) :: term()

Recursively camelizes the keys of a map, keyword list, or list of either.