Packages

🚂 Complete Polar SDK for Elixir with 1:1 feature parity to the official JavaScript SDK. Full API coverage. Fully typed per-event modules. Modern stack: Finch HTTP/2, RustyJSON, connection pooling, automatic retries, OAuth, webhooks, telemetry, explicit client options, streaming pagination.

Current section

Files

Jump to
polar_express lib polar_express resources webhooks.ex
Raw

lib/polar_express/resources/webhooks.ex

# File generated from our OpenAPI spec
defmodule PolarExpress.Resources.Webhooks do
@moduledoc """
Webhooks
Webhooks API operations.
"""
@typedoc """
* `created_at` - Creation timestamp of the object. Format: date-time.
* `enabled` - Whether the webhook endpoint is enabled and will receive events.
* `events` - The events that will trigger the webhook.
* `format` - The format of the webhook payload.
* `id` - The ID of the object. Format: uuid4.
* `modified_at` - Last modification timestamp of the object.
* `organization_id` - The organization ID associated with the webhook endpoint. Format: uuid4.
* `secret` - The secret used to sign the webhook events.
* `url` - The URL where the webhook events will be sent. Format: uri. Max length: 2083.
"""
@type t :: %__MODULE__{
created_at: String.t() | nil,
enabled: boolean() | nil,
events: [map()] | nil,
format: map() | nil,
id: String.t() | nil,
modified_at: term() | nil,
organization_id: String.t() | nil,
secret: String.t() | nil,
url: String.t() | nil
}
defstruct [
:created_at,
:enabled,
:events,
:format,
:id,
:modified_at,
:organization_id,
:secret,
:url
]
@object_name "webhooks"
def object_name, do: @object_name
end