View Source ExCheckout.Carrier (ex_checkout v1.5.2)

Link to this section Summary

Functions

Fetches a Carrier module by its atom/string representation.

Checks if Module Exists.

Link to this section Functions

@spec module(atom() | String.t()) :: module()

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 function

module_exists(atom, module_list \\ [])

View Source

Checks if Module Exists.

iex> Transaction.module_exists(:ups)
true
iex> Transaction.module_exists("UPS")
true
iex> Transaction.module_exists("ups")
true