View Source Chargebeex.ClientBehaviour behaviour (chargebeex v0.1.0)

Define the callbacks for a client to get the data from Chargebee.

Link to this section Summary

Link to this section Callbacks

@callback get(url :: binary(), body :: binary(), headers :: list()) ::
  {:ok, integer(), list(), any()} | {:error, integer(), list(), any()}
Link to this callback

post(url, body, headers)

View Source
@callback post(url :: binary(), body :: binary(), headers :: list()) ::
  {:ok, integer(), list(), any()} | {:error, integer(), list(), any()}