Inttegro.UploadRequests.Review (inttegro v0.2.0)

Copy Markdown View Source

Represents Review data in the UploadRequests API.

Inttegro decodes API responses into this struct. Required fields are always present; optional fields are nil when they do not apply or were not returned. Follow the linked types in t/0 for nested domain values.

Creates secure upload requests that let another party supply a file.

The application defines constraints and display information, then gives the uploader the request ID and token. Fulfilment does not use the application's secret key. Review and status operations let the application accept, reject, or cancel the resulting attempt.

Summary

Types

t()

The decoded review value.

Functions

Builds a Inttegro.UploadRequests.Review and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.UploadRequests.Review{
  created_at: String.t(),
  decision: Inttegro.UploadRequests.UploadReviewDecision.t(),
  file_id: String.t() | nil,
  public_message: String.t() | nil,
  reasons: [Inttegro.UploadRequests.ReviewReason.t()] | nil,
  reviewed_at: String.t(),
  type: Inttegro.UploadRequests.UploadReviewType.t()
}

The decoded review value.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.UploadRequests.Review and raises KeyError when a required field is missing.