Packages
ex_porter_sdk
0.1.0
An Elixir SDK for Porter's delivery API, providing a simple and reliable way to integrate Porter's logistics services into your Elixir applications. Features include getting delivery quotes, creating and managing delivery orders, and real-time order tracking.
Current section
Files
Jump to
Current section
Files
lib/behaviours/order.ex
defmodule ExPorterSDK.Behaviours.Order do
@callback create(params :: map()) :: {:ok, map()} | {:error, map()}
@callback track(order_id :: String.t()) :: {:ok, map()} | {:error, map()}
@callback cancel(order_id :: String.t()) :: {:ok, map()} | {:error, map()}
end