bluepay v0.4.1 Bluepay.Parser

Link to this section Summary

Functions

Decodes the given body

Decodes the given tuple and stores it in the accumulator. It parses the key and stores the value into the current accumulator. Parameter lists are added to the accumulator in reverse order, so be sure to pass the parameters in reverse order

Encodes the given map or list of tuples

Link to this section Functions

Link to this function decode(body, default \\ %{})

Decodes the given body.

Link to this function decode_pair(arg, acc)

Decodes the given tuple and stores it in the accumulator. It parses the key and stores the value into the current accumulator. Parameter lists are added to the accumulator in reverse order, so be sure to pass the parameters in reverse order.

Link to this function encode(kv, encoder \\ &to_string/1)

Encodes the given map or list of tuples.