DodoPayments.Response (dodo_payments v0.1.0)

Copy Markdown View Source

The optional response envelope returned with return: :response.

Normal SDK calls return the decoded response body directly. The envelope is useful when request IDs, status codes, or headers are needed for diagnostics.

Summary

Types

t()

@type t() :: t(term())

t(data)

@type t(data) :: %DodoPayments.Response{
  data: data,
  headers: [{String.t(), String.t()}],
  request_id: String.t() | nil,
  status: non_neg_integer()
}