Response structs for the B2B Payment Request API.
Summary
Functions
Parses a raw response map into a Success or Error struct.
Functions
@spec from_map(map()) :: Daraja.B2B.Response.Success.t() | Daraja.B2B.Response.Error.t()
Parses a raw response map into a Success or Error struct.
Note: Safaricom may return the misspelled key OriginatorCoversationID
(missing the second 'n'). Both spellings are handled for resilience.