Class: Stripe::V2::Core::EventDestinationCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Core::EventDestinationCreateParams
- Defined in:
- lib/stripe/params/v2/core/event_destination_create_params.rb
Defined Under Namespace
Classes: AmazonEventbridge, WebhookEndpoint
Instance Attribute Summary collapse
-
#amazon_eventbridge ⇒ Object
Amazon EventBridge configuration.
-
#description ⇒ Object
An optional description of what the event destination is used for.
-
#enabled_events ⇒ Object
The list of events to enable for this endpoint.
-
#event_payload ⇒ Object
Payload type of events being subscribed to.
-
#events_from ⇒ Object
Where events should be routed from.
-
#include ⇒ Object
Additional fields to include in the response.
-
#metadata ⇒ Object
Metadata.
-
#name ⇒ Object
Event destination name.
-
#snapshot_api_version ⇒ Object
If using the snapshot event payload, the API version events are rendered as.
-
#type ⇒ Object
Event destination type.
-
#webhook_endpoint ⇒ Object
Webhook endpoint configuration.
Instance Method Summary collapse
-
#initialize(description: nil, enabled_events: nil, event_payload: nil, events_from: nil, include: nil, metadata: nil, name: nil, snapshot_api_version: nil, type: nil, amazon_eventbridge: nil, webhook_endpoint: nil) ⇒ EventDestinationCreateParams
constructor
A new instance of EventDestinationCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(description: nil, enabled_events: nil, event_payload: nil, events_from: nil, include: nil, metadata: nil, name: nil, snapshot_api_version: nil, type: nil, amazon_eventbridge: nil, webhook_endpoint: nil) ⇒ EventDestinationCreateParams
Returns a new instance of EventDestinationCreateParams.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 51 def initialize( description: nil, enabled_events: nil, event_payload: nil, events_from: nil, include: nil, metadata: nil, name: nil, snapshot_api_version: nil, type: nil, amazon_eventbridge: nil, webhook_endpoint: nil ) @description = description @enabled_events = enabled_events @event_payload = event_payload @events_from = events_from @include = include @metadata = @name = name @snapshot_api_version = snapshot_api_version @type = type @amazon_eventbridge = amazon_eventbridge @webhook_endpoint = webhook_endpoint end |
Instance Attribute Details
#amazon_eventbridge ⇒ Object
Amazon EventBridge configuration.
47 48 49 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 47 def amazon_eventbridge @amazon_eventbridge end |
#description ⇒ Object
An optional description of what the event destination is used for.
29 30 31 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 29 def description @description end |
#enabled_events ⇒ Object
The list of events to enable for this endpoint.
31 32 33 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 31 def enabled_events @enabled_events end |
#event_payload ⇒ Object
Payload type of events being subscribed to.
33 34 35 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 33 def event_payload @event_payload end |
#events_from ⇒ Object
Where events should be routed from.
35 36 37 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 35 def events_from @events_from end |
#include ⇒ Object
Additional fields to include in the response.
37 38 39 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 37 def include @include end |
#metadata ⇒ Object
Metadata.
39 40 41 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 39 def @metadata end |
#name ⇒ Object
Event destination name.
41 42 43 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 41 def name @name end |
#snapshot_api_version ⇒ Object
If using the snapshot event payload, the API version events are rendered as.
43 44 45 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 43 def snapshot_api_version @snapshot_api_version end |
#type ⇒ Object
Event destination type.
45 46 47 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 45 def type @type end |
#webhook_endpoint ⇒ Object
Webhook endpoint configuration.
49 50 51 |
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 49 def webhook_endpoint @webhook_endpoint end |