Apruve v0.1.0 Apruve.Merchant View Source

Module for Apruve merchants.

Link to this section Summary

Link to this section Types

Link to this type merchant_id() View Source
merchant_id() :: String.t()
Link to this type t() View Source
t() :: %Apruve.Merchant{
  email: term(),
  id: term(),
  name: term(),
  phone: term(),
  web_url: term()
}

Link to this section Functions

Link to this function from_json(json_string) View Source
from_json(String.t()) ::
  {:ok, t()} | {:error, :could_not_make_struct_from_json}

Merchant struct from JSON string.

Link to this function get(merchant_id, p_client_config \\ :from_app_config) View Source
get(merchant_id(), Apruve.ClientConfig.t() | :from_app_config) ::
  {:ok, t()} | {:error, any()}