Synctera.Persons (Synctera v1.0.0)

Copy Markdown View Source

Synctera 'Persons' endpoints.

Code generated by scripts/generate.py from the Synctera OpenAPI spec. Do not edit by hand — re-run mix generate (or python3 scripts/generate.py) to regenerate.

Summary

Functions

Create a person — Create a person who may act as a personal customer or a director/officer/owner of a business. You can then verify the identity of this customer and associate them with other people and accounts.

Like create_person/2 but returns the value directly and raises on error.

Get person — Get person by ID.

Like get_person/3 but returns the value directly and raises on error.

List persons — Retrieves paginated list of persons associated with the authorized requester.

Like list_persons/2 but returns the value directly and raises on error.

Prefill person — Prefill takes a subset of a person's information and automatically fills personally identifiable information (PII) required for know your customer (KYC) verification.

Like prefill_person/3 but returns the value directly and raises on error.

Update person — Update person by ID.

Like update_person/3 but returns the value directly and raises on error.

Functions

create_person(client, opts \\ [])

@spec create_person(
  Synctera.Client.t(),
  keyword()
) :: {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Create a person — Create a person who may act as a personal customer or a director/officer/owner of a business. You can then verify the identity of this customer and associate them with other people and accounts.

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

create_person!(client, opts)

@spec create_person!(
  Synctera.Client.t(),
  keyword()
) :: Synctera.JSON.json()

Like create_person/2 but returns the value directly and raises on error.

get_person(client, person_id, opts \\ [])

@spec get_person(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Get person — Get person by ID.

Options

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

get_person!(client, person_id, opts)

@spec get_person!(Synctera.Client.t(), String.t(), keyword()) :: Synctera.JSON.json()

Like get_person/3 but returns the value directly and raises on error.

list_persons(client, opts \\ [])

@spec list_persons(
  Synctera.Client.t(),
  keyword()
) :: {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

List persons — Retrieves paginated list of persons associated with the authorized requester.

Options

Query options: :id, :first_name, :last_name, :phone_number, :email, :ban_status, :status, :is_customer, :limit, :page_token, :sort_by

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

list_persons!(client, opts)

@spec list_persons!(
  Synctera.Client.t(),
  keyword()
) :: Synctera.JSON.json()

Like list_persons/2 but returns the value directly and raises on error.

prefill_person(client, person_id, opts \\ [])

@spec prefill_person(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Prefill person — Prefill takes a subset of a person's information and automatically fills personally identifiable information (PII) required for know your customer (KYC) verification.

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

prefill_person!(client, person_id, opts)

@spec prefill_person!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like prefill_person/3 but returns the value directly and raises on error.

update_person(client, person_id, opts \\ [])

@spec update_person(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Update person — Update person by ID.

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

update_person!(client, person_id, opts)

@spec update_person!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like update_person/3 but returns the value directly and raises on error.