shippex v0.6.0 Shippex.Carrier behaviour
Defines a behaviour for implementing a new Carrier module. Includes a helper function for fetching the Carrier module.
Link to this section Summary
Functions
Fetches a Carrier module by its atom/string representation
Link to this section Types
Link to this section Functions
Fetches a Carrier module by its atom/string representation.
iex> Carrier.module(:ups)
Carrier.UPS
iex> Carrier.module("UPS")
Carrier.UPS
iex> Carrier.module("ups")
Carrier.UPS
Link to this section Callbacks
Link to this callback
cancel_transaction(arg0)
cancel_transaction(Transaction.t) :: {atom, String.t}
Link to this callback
cancel_transaction(arg0, arg1)
Link to this callback
create_transaction(arg0, arg1)
create_transaction(Shipment.t, Service.t) :: {atom, Transaction.t | map}
Link to this callback
fetch_rate(arg0, arg1)
fetch_rate(Shipment.t, Service.t) :: [{atom, Rate.t}] | {atom, Rate.t}