Paypal.EctoHelpers (Paypal v0.1.0)

View Source

Ecto Helpers is a module that is ensuring we have the common functions in use for most of the schemas or modules that uses Ecto.

Summary

Functions

Perform a cleaning of a struct converted into a map for all of the entries that has no content.

Traverse errors is a way to retrieve in a plain format the full list of errors for all of the schemas and embedded schemas under the main one.

Functions

clean_data(map)

Perform a cleaning of a struct converted into a map for all of the entries that has no content.

traverse_errors(changeset)

Traverse errors is a way to retrieve in a plain format the full list of errors for all of the schemas and embedded schemas under the main one.