Class: Stripe::V2::Core::EventDestinationCreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/core/event_destination_create_params.rb

Defined Under Namespace

Classes: AmazonEventbridge, WebhookEndpoint

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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_eventbridgeObject

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

#descriptionObject

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_eventsObject

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_payloadObject

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_fromObject

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

#includeObject

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

#metadataObject

Metadata.



39
40
41
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 39

def 
  @metadata
end

#nameObject

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_versionObject

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

#typeObject

Event destination type.



45
46
47
# File 'lib/stripe/params/v2/core/event_destination_create_params.rb', line 45

def type
  @type
end

#webhook_endpointObject

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