CitraClient.Schemas.AlertSubscriptionUpdate (citra_client v0.3.0)

View Source

Schema for alert subscription update operations

Fields

  • :is_activeboolean() (API key: isActive) — Enable or disable the subscription
  • :maneuver_status_filterManeuverStatusFilter (see OpenAPI spec) (API key: maneuverStatusFilter) — Filter by maneuver status (unverified, verified, or all)
  • :satellite_event_type_filter — list of SatelliteEventType (see OpenAPI spec) (API key: satelliteEventTypeFilter) — Filter by satellite event types (for SATELLITE_EVENT alerts)
  • :user_group_ids — list of UUID String.t() (API key: userGroupIds) — Filter by provider user group IDs (for NEW_UCT alerts)

Summary

Functions

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.

Types

t()

@type t() :: %CitraClient.Schemas.AlertSubscriptionUpdate{
  is_active: boolean() | nil,
  maneuver_status_filter: map() | String.t() | nil,
  satellite_event_type_filter: [map() | String.t() | nil],
  user_group_ids: [String.t() | nil]
}

Functions

from_api(data)

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

to_api(struct)

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.