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

Link to this section Summary

Functions

Create or update pricing plans

Link to this section Types

@type push_params() :: %{model: ExTier.Model.t()}

Link to this section Functions

@spec push(push_params()) :: {:ok, ExTier.Push.t()} | {:error, ExTier.Error.t()}

Create or update pricing plans

{:ok, %ExTier.Api.Push{}} = File.read!("pricing.json") |> ExTier.push()