Liking cljdoc? Tell your friends :D

stripe-clojure.v2.core.event-destinations

V2 Core Event Destinations API.

Event destinations define where Stripe sends events. You can configure webhook endpoints, Amazon EventBridge destinations, and more.

Stripe docs: https://docs.stripe.com/api/v2/core/event_destinations

V2 Core Event Destinations API.

Event destinations define where Stripe sends events. You can configure
webhook endpoints, Amazon EventBridge destinations, and more.

Stripe docs: https://docs.stripe.com/api/v2/core/event_destinations
raw docstring

create-event-destinationclj

(create-event-destination stripe-client params)
(create-event-destination stripe-client params opts)

Creates a new event destination.

Parameters:

  • stripe-client: The Stripe client instance
  • params: The event destination parameters
    • :type (required) - The type of destination (e.g., "webhook_endpoint", "amazon_eventbridge")
    • :name - A human-readable name for this destination
    • :enabled_events - The events to subscribe to (e.g., ["*"] for all events)
    • :webhook_endpoint - Webhook configuration (if type is webhook_endpoint)
      • :url (required) - The URL to send events to
    • :amazon_eventbridge - EventBridge configuration (if type is amazon_eventbridge)
      • :aws_account_id (required) - Your AWS account ID
      • :aws_region (required) - The AWS region
  • opts: Optional request options

Returns: The created event destination object.

Example: (create-event-destination client {:type "webhook_endpoint" :name "My Webhook" :enabled_events ["*"] :webhook_endpoint {:url "https://example.com/webhook"}})

Creates a new event destination.

Parameters:
- stripe-client: The Stripe client instance
- params: The event destination parameters
  - :type (required) - The type of destination (e.g., "webhook_endpoint", "amazon_eventbridge")
  - :name - A human-readable name for this destination
  - :enabled_events - The events to subscribe to (e.g., ["*"] for all events)
  - :webhook_endpoint - Webhook configuration (if type is webhook_endpoint)
    - :url (required) - The URL to send events to
  - :amazon_eventbridge - EventBridge configuration (if type is amazon_eventbridge)
    - :aws_account_id (required) - Your AWS account ID
    - :aws_region (required) - The AWS region
- opts: Optional request options

Returns:
The created event destination object.

Example:
(create-event-destination client
  {:type "webhook_endpoint"
   :name "My Webhook"
   :enabled_events ["*"]
   :webhook_endpoint {:url "https://example.com/webhook"}})
sourceraw docstring

delete-event-destinationclj

(delete-event-destination stripe-client destination-id)
(delete-event-destination stripe-client destination-id opts)

Deletes an event destination.

Parameters:

  • stripe-client: The Stripe client instance
  • destination-id: The ID of the event destination to delete
  • opts: Optional request options

Returns: A confirmation of deletion.

Example: (delete-event-destination client "ed_xxx")

Deletes an event destination.

Parameters:
- stripe-client: The Stripe client instance
- destination-id: The ID of the event destination to delete
- opts: Optional request options

Returns:
A confirmation of deletion.

Example:
(delete-event-destination client "ed_xxx")
sourceraw docstring

disable-event-destinationclj

(disable-event-destination stripe-client destination-id)
(disable-event-destination stripe-client destination-id opts)

Disables an event destination.

Parameters:

  • stripe-client: The Stripe client instance
  • destination-id: The ID of the event destination to disable
  • opts: Optional request options

Returns: The updated event destination object.

Example: (disable-event-destination client "ed_xxx")

Disables an event destination.

Parameters:
- stripe-client: The Stripe client instance
- destination-id: The ID of the event destination to disable
- opts: Optional request options

Returns:
The updated event destination object.

Example:
(disable-event-destination client "ed_xxx")
sourceraw docstring

enable-event-destinationclj

(enable-event-destination stripe-client destination-id)
(enable-event-destination stripe-client destination-id opts)

Enables a disabled event destination.

Parameters:

  • stripe-client: The Stripe client instance
  • destination-id: The ID of the event destination to enable
  • opts: Optional request options

Returns: The updated event destination object.

Example: (enable-event-destination client "ed_xxx")

Enables a disabled event destination.

Parameters:
- stripe-client: The Stripe client instance
- destination-id: The ID of the event destination to enable
- opts: Optional request options

Returns:
The updated event destination object.

Example:
(enable-event-destination client "ed_xxx")
sourceraw docstring

list-event-destinationsclj

(list-event-destinations stripe-client)
(list-event-destinations stripe-client params)
(list-event-destinations stripe-client params opts)

Lists all event destinations.

Parameters:

  • stripe-client: The Stripe client instance
  • params: Optional query parameters
  • opts: Optional request options
    • :include - Fields to include in the response

Returns: A list object containing event destinations.

Example: (list-event-destinations client)

Lists all event destinations.

Parameters:
- stripe-client: The Stripe client instance
- params: Optional query parameters
- opts: Optional request options
  - :include - Fields to include in the response

Returns:
A list object containing event destinations.

Example:
(list-event-destinations client)
sourceraw docstring

ping-event-destinationclj

(ping-event-destination stripe-client destination-id)
(ping-event-destination stripe-client destination-id opts)

Sends a test event to an event destination to verify connectivity.

Parameters:

  • stripe-client: The Stripe client instance
  • destination-id: The ID of the event destination to ping
  • opts: Optional request options

Returns: The ping result.

Example: (ping-event-destination client "ed_xxx")

Sends a test event to an event destination to verify connectivity.

Parameters:
- stripe-client: The Stripe client instance
- destination-id: The ID of the event destination to ping
- opts: Optional request options

Returns:
The ping result.

Example:
(ping-event-destination client "ed_xxx")
sourceraw docstring

retrieve-event-destinationclj

(retrieve-event-destination stripe-client destination-id)
(retrieve-event-destination stripe-client destination-id opts)

Retrieves an event destination by ID.

Parameters:

  • stripe-client: The Stripe client instance
  • destination-id: The ID of the event destination
  • opts: Optional request options

Returns: The event destination object.

Example: (retrieve-event-destination client "ed_xxx")

Retrieves an event destination by ID.

Parameters:
- stripe-client: The Stripe client instance
- destination-id: The ID of the event destination
- opts: Optional request options

Returns:
The event destination object.

Example:
(retrieve-event-destination client "ed_xxx")
sourceraw docstring

update-event-destinationclj

(update-event-destination stripe-client destination-id params)
(update-event-destination stripe-client destination-id params opts)

Updates an event destination.

Parameters:

  • stripe-client: The Stripe client instance
  • destination-id: The ID of the event destination to update
  • params: The parameters to update
    • :name - A human-readable name
    • :enabled_events - The events to subscribe to
    • :disabled - Whether the destination is disabled
  • opts: Optional request options

Returns: The updated event destination object.

Example: (update-event-destination client "ed_xxx" {:name "Updated Webhook Name" :enabled_events ["v2.billing.*"]})

Updates an event destination.

Parameters:
- stripe-client: The Stripe client instance
- destination-id: The ID of the event destination to update
- params: The parameters to update
  - :name - A human-readable name
  - :enabled_events - The events to subscribe to
  - :disabled - Whether the destination is disabled
- opts: Optional request options

Returns:
The updated event destination object.

Example:
(update-event-destination client "ed_xxx"
  {:name "Updated Webhook Name"
   :enabled_events ["v2.billing.*"]})
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close