Stripe.Identity.VerificationReport (stripity_stripe v2.17.3) View Source

Work with Stripe Identity VerificationReport objects.

You can:

  • Retrieve a Verification Report with a specified id.
  • List all Verification Reports.

Stripe API reference: https://stripe.com/docs/api/identity/verification_reports

Link to this section Summary

Functions

List all Verification Reports.

Retrieves an existing VerificationReport.

Link to this section Types

Specs

document() :: %{
  address: %{
    city: String.t(),
    country: String.t(),
    line1: String.t(),
    line2: String.t(),
    postal_code: String.t(),
    state: String.t()
  },
  dob: %{day: integer(), month: integer(), year: integer()},
  error: %{code: String.t(), reason: String.t()},
  expiration_date: %{day: integer(), month: integer(), year: integer()},
  files: [Stripe.id()],
  first_name: String.t(),
  issued_date: String.t(),
  issuing_country: String.t(),
  last_name: String.t(),
  number: String.t(),
  status: String.t(),
  type: String.t()
}

Specs

id_number() :: %{
  dob: %{day: integer(), month: integer(), year: integer()},
  error: %{code: String.t(), reason: String.t()},
  first_name: String.t(),
  id_number: String.t(),
  id_number_type: String.t(),
  last_name: String.t(),
  status: String.t()
}

Specs

options() :: %{
  document: %{
    allowed_types: [String.t()],
    require_id_number: boolean(),
    require_live_capture: boolean(),
    require_matching_selfie: boolean()
  },
  id_number: map()
}

Specs

selfie() :: %{
  document: String.t(),
  error: %{code: String.t(), reason: String.t()},
  selfie: String.t(),
  status: String.t()
}

Specs

t() :: %Stripe.Identity.VerificationReport{
  created: Stripe.timestamp(),
  document: document(),
  id: Stripe.id(),
  id_number: id_number(),
  livemode: boolean(),
  object: String.t(),
  options: options(),
  selfie: selfie(),
  type: String.t(),
  verification_session: Stripe.id()
}

Link to this section Functions

Link to this function

list(params \\ %{}, opts \\ [])

View Source

Specs

list(params, Stripe.options()) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.Error.t()}
when params: %{
       optional(:created) => Stripe.date_query(),
       optional(:type) => String.t(),
       optional(:verification_session) =>
         Stripe.Identity.VerificationSession.t() | Stripe.id(),
       optional(:ending_before) => t() | Stripe.id(),
       optional(:limit) => 1..100,
       optional(:starting_after) => t() | Stripe.id()
     }

List all Verification Reports.

Link to this function

retrieve(id, opts \\ [])

View Source

Specs

retrieve(Stripe.id() | t(), Stripe.options()) ::
  {:ok, t()} | {:error, Stripe.Error.t()}

Retrieves an existing VerificationReport.