Response structs for the C2B Register URL and Simulate APIs.
Summary
Functions
Parses a raw response map into a Success or Error struct.
Functions
@spec from_map(map()) :: Daraja.C2B.Response.Success.t() | Daraja.C2B.Response.Error.t()
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.