SMPPEX.Pdu.mandatory_fields

You're seeing just the function mandatory_fields, go back to SMPPEX.Pdu module for more information.

Specs

mandatory_fields(t()) :: map()

Get the whole set of mandatory fields as a map.

Examples

iex(1)> pdu = SMPPEX.Pdu.new(4, %{short_message: "hi"}, %{0x0424 => "hello"})
iex(2)> SMPPEX.Pdu.mandatory_fields(pdu)
%{short_message: "hi"}