Daraja.C2B.Response (daraja v0.1.0)

Copy Markdown View Source

Response structs for the C2B Register URL and Simulate APIs.

Summary

Functions

Parses a raw response map into a Success or Error struct.

Functions

from_map(map)

Parses a raw response map into a Success or Error struct.

Note: Safaricom's API uses the misspelled key OriginatorCoversationID (missing the second 'n'). Both spellings are handled here for resilience.