Class: Stripe::V2::Core::EventDestinationService::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/core/event_destination_service.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) ⇒ CreateParams

Returns a new instance of CreateParams.



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 52

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.



48
49
50
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 48

def amazon_eventbridge
  @amazon_eventbridge
end

#descriptionObject

An optional description of what the event destination is used for.



30
31
32
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 30

def description
  @description
end

#enabled_eventsObject

The list of events to enable for this endpoint.



32
33
34
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 32

def enabled_events
  @enabled_events
end

#event_payloadObject

Payload type of events being subscribed to.



34
35
36
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 34

def event_payload
  @event_payload
end

#events_fromObject

Where events should be routed from.



36
37
38
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 36

def events_from
  @events_from
end

#includeObject

Additional fields to include in the response.



38
39
40
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 38

def include
  @include
end

#metadataObject

Metadata.



40
41
42
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 40

def 
  @metadata
end

#nameObject

Event destination name.



42
43
44
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 42

def name
  @name
end

#snapshot_api_versionObject

If using the snapshot event payload, the API version events are rendered as.



44
45
46
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 44

def snapshot_api_version
  @snapshot_api_version
end

#typeObject

Event destination type.



46
47
48
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 46

def type
  @type
end

#webhook_endpointObject

Webhook endpoint configuration.



50
51
52
# File 'lib/stripe/services/v2/core/event_destination_service.rb', line 50

def webhook_endpoint
  @webhook_endpoint
end