Synctera.Watchlist (Synctera v1.0.0)

Copy Markdown View Source

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

Like get_watchlist_alert/4 but returns the value directly and raises on error.

List watchlist monitoring alerts for a customer

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

List watchlist monitoring subscriptions for a customer

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

Like update_watchlist_alert/4 but returns the value directly and raises on error.

Subscribe a customer to watchlist monitoring

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

Functions

get_watchlist_alert(client, customer_id, alert_id, opts \\ [])

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

Retrieve watchlist monitoring alert

Options

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

get_watchlist_alert!(client, customer_id, alert_id, opts)

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

Like get_watchlist_alert/4 but returns the value directly and raises on error.

get_watchlist_subscription(client, customer_id, subscription_id, opts \\ [])

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

Retrieve watchlist monitoring subscription

Options

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

get_watchlist_subscription!(client, customer_id, subscription_id, opts)

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

Like get_watchlist_subscription/4 but returns the value directly and raises on error.

list_watchlist_alerts(client, customer_id, opts \\ [])

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

List watchlist monitoring alerts for a customer

Options

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

list_watchlist_alerts!(client, customer_id, opts)

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

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

list_watchlist_subscriptions(client, customer_id, opts \\ [])

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

List watchlist monitoring subscriptions for a customer

Options

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

list_watchlist_subscriptions!(client, customer_id, opts)

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

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

suppress_watchlist_entity_alert(client, customer_id, opts \\ [])

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

Suppress entity alert

Options

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

suppress_watchlist_entity_alert!(client, customer_id, opts)

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

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

update_watchlist_alert(client, customer_id, alert_id, opts \\ [])

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

Update watchlist alert

Options

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

update_watchlist_alert!(client, customer_id, alert_id, opts)

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

Like update_watchlist_alert/4 but returns the value directly and raises on error.

update_watchlist_subscription(client, customer_id, subscription_id, opts \\ [])

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

Update watchlist monitoring subscription

Options

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

update_watchlist_subscription!(client, customer_id, subscription_id, opts)

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

Like update_watchlist_subscription/4 but returns the value directly and raises on error.

watchlist_subscribe(client, customer_id, opts \\ [])

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

Subscribe a customer to watchlist monitoring

Options

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

watchlist_subscribe!(client, customer_id, opts)

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

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