View Source ExTier.Api.Subscribe (ex_tier v0.0.1)

Link to this section Summary

Functions

Subscribe an organization to a plan or a set of features

Link to this section Types

@type subscribe_params() :: %{
  org: String.t(),
  features: ExTier.Phase.features() | [ExTier.Phase.features()],
  effective: DateTime.t()
}

Link to this section Functions

@spec subscribe(subscribe_params()) :: :ok | {:error, String.t()}

Subscribe an organization to a plan or a set of features

:ok = ExTier.schedule(%{org: "org:org_id", features: ["plan:my_plan@0"]})
:ok = ExTier.schedule(%{org: "org:org_id", features: ["feature:feature@plan:my_plan@0"]})