Payzum.Response (Payzum v0.1.0)

Copy Markdown View Source

A raw HTTP response. The body stays text so signatures and decimals survive.

Summary

Functions

Set only when the API replayed an earlier idempotent request.

Seconds the server asked us to wait, when it said so.

Types

t()

@type t() :: %Payzum.Response{
  body: binary(),
  headers: map(),
  status: non_neg_integer()
}

Functions

idempotent_replay?(response)

Set only when the API replayed an earlier idempotent request.

retry_after_seconds(response)

Seconds the server asked us to wait, when it said so.