View Source ExCheckout.Transaction (ex_checkout v1.0.0)

Link to this section Summary

Functions

Return the module id

Fetches a Transaction module by its atom/string representation.

Checks if Module Exists.

Return the module id

Run the module process.

Link to this section Functions

Return the module id

Link to this function

module(transaction, module_list \\ [])

View Source
@spec module(atom() | String.t(), List.t()) :: module()

Fetches a Transaction module by its atom/string representation.

iex> Transaction.module(:ups)
Transaction.UPS
iex> Transaction.module("UPS")
Transaction.UPS
iex> Transaction.module("ups")
Transaction.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

Return the module id

Run the module process.