PayWay v0.1.0 PayWay.Utils

A collection of useful utility functions.

Link to this section Summary

Functions

Generate a UUID used as the idempotency key for some POST requests to ensure no duplicated records are created in PayWay

Link to this section Functions

Link to this function uuid(url, body)
uuid(binary, binary) :: binary

Generate a UUID used as the idempotency key for some POST requests to ensure no duplicated records are created in PayWay.

Examples

iex> Utils.uuid("example.com", "hello=world")
"5cd912e1-0012-5257-8484-5169f71f193b"

iex> Utils.uuid("example.com", "hello=42")
"be4488ab-b3d7-5907-b1c4-8d9f58b64593"