View Source ExTier.Api.Lookup (ex_tier v0.11.1)

Link to this section Summary

Functions

Get Stripe's customer id from an organization

Link to this section Types

@type lookup_params() :: %{org: String.t()}

Link to this section Functions

@spec lookup(lookup_params()) :: {:ok, ExTier.Lookup.t()} | {:error, ExTier.Error.t()}

Get Stripe's customer id from an organization

{:ok, %ExTier.Lookup{}} = ExTier.lookup(%{org: "org:org_id"})