ECPayInvoice.Request behaviour (ecpay_invoice v0.0.1-alpha9)

Link to this section Summary

Link to this section Functions

Link to this function

generic_request(endpoint, payload, profile \\ :staging)

Link to this function

handle_response(response, profile \\ :staging)

Link to this function

perform(request, profile \\ :staging)

Specs

perform(request :: struct(), profile :: atom()) ::
  {:ok, map()} | {:error, term()}
Link to this function

post(endpoint, body)

Link to this section Callbacks

Specs

endpoint() :: String.t()
Link to this callback

to_api_payload(struct, profile)

Specs

to_api_payload(struct :: term(), profile :: atom() | String.t()) ::
  map() | list()