Releases: mbramson/catalog_api
Releases · mbramson/catalog_api
v.0.0.16
v0.0.15
v0.0.14
v0.0.13
v0.0.12
v0.0.11
- Properly format item categories (#12)
- Rather than returning item categories in the format that catalog_api returns (e.g. %{"integer" => [1, 2, 3]}, we simply return the much more ergonomic value of [1, 2, 3]
- Run mix format on everything (#13)
- Update
CatalogApi.list_available_catalogs/0to parse the response json.
- Update
v0.0.10
- Flesh out the
CatalogApi.category_breakdown/2function which hits thecategory_breakdownCatalogAPI endpoint. (#9)- Adds the
CatalogApi.Categorymodule which defines the%Category{}struct representing categories returned by various endpoints includingCatalogApi.category_breakdown/2.
- Adds the
- Adds the
descriptionkey to items returned by theCatalogApi.search_catalog/2andCatalogApi.view_item/2functions. (#10) - Adds the address to the
CatalogApi.cart_view/3function return so that consumers can determine which address applies to the given cart before checkout. (#11)- Adds functions to help parse Addresses from other responses.
v0.0.9
- Fix
CatalogApi.cart_viewresponse type when viewing empty carts (#5).- In the event that an empty cart is viewed, we now return
{:ok, %{items: [], status: :unavailable_cart_status}}instead of{:error, :unparseable_catalog_api_items}. This is much easier to handle and actually identifies what has happened.
- In the event that an empty cart is viewed, we now return
- Adds a RuntimeError when the catalog_api secret key is not set in configuration (#6).
- This is a much better user experience than attempting to make a call and failing deep in erlang's
:cryptomodule.
- This is a much better user experience than attempting to make a call and failing deep in erlang's
- Make the
CatalogApi.cart_set_addressfunction properly when given a%CatalogApi.Address{}struct as the documentation states is possible (#7). - Adds a new error return type to the
CatalogApi.cart_order_placefunction when supplying thecart_versionparameter in the event that the suppliedcart_versionparameter does not match the cart version in CatalogApi (#8)- Returns an error tuple of the format
{:error, :stale_cart_version}rather than than error tuple containing a %CatalogApi.Fault{} struct. This brings the responsibility of identifying this common functionality intocatalog_api.
- Returns an error tuple of the format
v0.0.7
- Improves the format of error tuples generated via address validation so that they more closely match the format of changeset errors generated by
Ecto.Changeset.traverse_errors/2. This means that consuming applications have to do less data manipulation to get address validation errors to match the format of errors from changesets.