Class: Stripe::WebhookEndpointUpdateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/webhook_endpoint_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(description: nil, disabled: nil, enabled_events: nil, expand: nil, metadata: nil, url: nil) ⇒ WebhookEndpointUpdateParams

Returns a new instance of WebhookEndpointUpdateParams.



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/stripe/params/webhook_endpoint_update_params.rb', line 19

def initialize(
  description: nil,
  disabled: nil,
  enabled_events: nil,
  expand: nil,
  metadata: nil,
  url: nil
)
  @description = description
  @disabled = disabled
  @enabled_events = enabled_events
  @expand = expand
  @metadata = 
  @url = url
end

Instance Attribute Details

#descriptionObject

An optional description of what the webhook is used for.



7
8
9
# File 'lib/stripe/params/webhook_endpoint_update_params.rb', line 7

def description
  @description
end

#disabledObject

Disable the webhook endpoint if set to true.



9
10
11
# File 'lib/stripe/params/webhook_endpoint_update_params.rb', line 9

def disabled
  @disabled
end

#enabled_eventsObject

The list of events to enable for this endpoint. You may specify ‘[’*‘]` to enable all events, except those that require explicit selection.



11
12
13
# File 'lib/stripe/params/webhook_endpoint_update_params.rb', line 11

def enabled_events
  @enabled_events
end

#expandObject

Specifies which fields in the response should be expanded.



13
14
15
# File 'lib/stripe/params/webhook_endpoint_update_params.rb', line 13

def expand
  @expand
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.



15
16
17
# File 'lib/stripe/params/webhook_endpoint_update_params.rb', line 15

def 
  @metadata
end

#urlObject

The URL of the webhook endpoint.



17
18
19
# File 'lib/stripe/params/webhook_endpoint_update_params.rb', line 17

def url
  @url
end