Current section

Files

Jump to
chargebeex lib chargebeex client client_behaviour.ex
Raw

lib/chargebeex/client/client_behaviour.ex

defmodule Chargebeex.ClientBehaviour do
@moduledoc """
Define the callbacks for a client to get the data from Chargebee.
"""
@callback get(url :: binary(), body :: binary(), headers :: list()) ::
{:ok, integer(), list(), any()} | {:error, integer(), list(), any()}
@callback post(url :: binary(), body :: binary(), headers :: list()) ::
{:ok, integer(), list(), any()} | {:error, integer(), list(), any()}
end