Bazaar.Phoenix.Controller (Bazaar v0.3.0)

Copy Markdown View Source

Phoenix controller that dispatches to your UCP/ACP handler.

This controller is used internally by Bazaar.Phoenix.Router. You don't need to use it directly.

Protocol Transformation

Bazaar uses UCP as its internal format. Your handler always works with UCP field names and status values. The controller handles transformation:

  • ACP protocol: transforms requests from ACP to UCP before calling your handler, and transforms responses from UCP back to ACP
  • UCP protocol: passes requests and responses through unchanged

Summary

Functions

cancel_checkout(conn, map)

cancel_order(conn, map)

complete_checkout(conn, map)

create_checkout(conn, params)

discovery(conn, params)

get_checkout(conn, map)

get_order(conn, map)

get_product(conn, map)

list_products(conn, params)

search_products(conn, params)

update_checkout(conn, params)

update_order(conn, params)

webhook(conn, params)