Synctera.Monitoring (Synctera v1.0.0)

Copy Markdown View Source

Synctera 'Monitoring' 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

Subscribe a customer or business to monitoring — This endpoint is rarely needed. Since August 2022, watchlist monitoring is automatically enabled for all businesses and customers who are verified (KYC/KYB) through Synctera's platform.

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

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

Retrieve a monitoring alert

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

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

List monitoring alerts

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

List monitoring subscriptions

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

Update a monitoring alert

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

Functions

create_subscription(client, opts \\ [])

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

Subscribe a customer or business to monitoring — This endpoint is rarely needed. Since August 2022, watchlist monitoring is automatically enabled for all businesses and customers who are verified (KYC/KYB) through Synctera's platform.

Options

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

create_subscription!(client, opts)

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

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

delete_subscription(client, subscription_id, opts \\ [])

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

Delete monitoring subscription

Options

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

delete_subscription!(client, subscription_id, opts)

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

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

get_alert(client, alert_id, opts \\ [])

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

Retrieve a monitoring alert

Options

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

get_alert!(client, alert_id, opts)

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

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

get_subscription(client, subscription_id, opts \\ [])

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

Retrieve monitoring subscription

Options

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

get_subscription!(client, subscription_id, opts)

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

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

list_alerts(client, opts \\ [])

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

List monitoring alerts

Options

Query options: :id, :person_id, :business_id, :limit, :page_token

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

list_alerts!(client, opts)

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

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

list_subscriptions(client, opts \\ [])

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

List monitoring subscriptions

Options

Query options: :id, :person_id, :business_id, :limit, :page_token

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

list_subscriptions!(client, opts)

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

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

update_alert(client, alert_id, opts \\ [])

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

Update a monitoring alert

Options

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

update_alert!(client, alert_id, opts)

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

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