MpesaElixir.API.Behaviour behaviour (MpesaElixir v0.2.1)

Defines the behavior for the MpesaElixir.API module.

This module defines the callback functions that must be implemented by modules that handle HTTP requests to the M-Pesa API.

The primary purpose is to provide an interface for mocking during tests.

Summary

Callbacks

request(t, t)

@callback request(String.t(), Keyword.t()) :: {:ok, Req.Response.t()} | {:error, term()}