AirtelMoney.Api.RequestBuilder (airtel_money v0.1.0)

Copy Markdown View Source

Helper module for building API request bodies.

Summary

Functions

Builds a standard request body for collections and disbursements.

Functions

build_body(params, config)

@spec build_body(map(), map()) :: map()

Builds a standard request body for collections and disbursements.

Parameters

  • params - Request parameters map
  • config - Configuration map

Returns

A map with the request body in the correct nested structure