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

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

Summary

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()}