Stripe.WebhookEndpoint (stripity_stripe v2.17.2) View Source

Work with Stripe webhook_endpoint objects. You can:

Link to this section Summary

Functions

Create a webhook endpoint. See the Stripe docs.

Delete a webhook endpoint. See the Stripe docs.

List all webhook endpoints. See the Stripe docs.

Retrieve a webhook endpoint. See the Stripe docs.

Update a webhook endpoint. See the Stripe docs.

Link to this section Types

Specs

t() :: %Stripe.WebhookEndpoint{
  application: String.t() | nil,
  created: Stripe.timestamp(),
  deleted: boolean(),
  description: String.t(),
  enabled_events: [String.t()],
  id: Stripe.id(),
  livemode: boolean(),
  metadata: map(),
  object: String.t(),
  secret: String.t() | nil,
  status: String.t(),
  url: String.t()
}

Link to this section Functions

Link to this function

create(params, opts \\ [])

View Source

Specs

create(params, Stripe.options()) :: {:ok, t()} | {:error, Stripe.Error.t()}
when params:
       %{
         optional(:api_version) => String.t(),
         optional(:connect) => boolean(),
         optional(:description) => String.t(),
         :enabled_events => [String.t()],
         optional(:metadata) => map(),
         url: String.t()
       }
       | %{}

Create a webhook endpoint. See the Stripe docs.

Specs

delete(Stripe.id() | t(), Stripe.options()) ::
  {:ok, t()} | {:error, Stripe.Error.t()}

Delete a webhook endpoint. See the Stripe docs.

Link to this function

list(params \\ %{}, opts \\ [])

View Source

Specs

list(params, Stripe.options()) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.Error.t()}
when params:
       %{
         optional(:ending_before) => t() | Stripe.id(),
         optional(:limit) => 1..100,
         optional(:starting_after) => t() | Stripe.id()
       }
       | %{}

List all webhook endpoints. See the Stripe docs.

Link to this function

retrieve(id, opts \\ [])

View Source

Specs

retrieve(Stripe.id() | t(), Stripe.options()) ::
  {:ok, t()} | {:error, Stripe.Error.t()}

Retrieve a webhook endpoint. See the Stripe docs.

Link to this function

update(id, params, opts \\ [])

View Source

Specs

update(Stripe.id() | t(), params, Stripe.options()) ::
  {:ok, t()} | {:error, Stripe.Error.t()}
when params:
       %{
         optional(:description) => String.t(),
         optional(:disabled) => boolean(),
         optional(:enabled_events) => [String.t()],
         optional(:metadata) => map(),
         optional(:url) => String.t()
       }
       | %{}

Update a webhook endpoint. See the Stripe docs.