Class: Stripe::WebhookEndpointCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::WebhookEndpointCreateParams
- Defined in:
- lib/stripe/params/webhook_endpoint_create_params.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Events sent to this endpoint will be generated with this Stripe Version instead of your account’s default Stripe Version.
-
#connect ⇒ Object
Whether this endpoint should receive events from connected accounts (‘true`), or from your account (`false`).
-
#description ⇒ Object
An optional description of what the webhook is used for.
-
#enabled_events ⇒ Object
The list of events to enable for this endpoint.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#url ⇒ Object
The URL of the webhook endpoint.
Instance Method Summary collapse
-
#initialize(api_version: nil, connect: nil, description: nil, enabled_events: nil, expand: nil, metadata: nil, url: nil) ⇒ WebhookEndpointCreateParams
constructor
A new instance of WebhookEndpointCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(api_version: nil, connect: nil, description: nil, enabled_events: nil, expand: nil, metadata: nil, url: nil) ⇒ WebhookEndpointCreateParams
Returns a new instance of WebhookEndpointCreateParams.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 21 def initialize( api_version: nil, connect: nil, description: nil, enabled_events: nil, expand: nil, metadata: nil, url: nil ) @api_version = api_version @connect = connect @description = description @enabled_events = enabled_events @expand = @metadata = @url = url end |
Instance Attribute Details
#api_version ⇒ Object
Events sent to this endpoint will be generated with this Stripe Version instead of your account’s default Stripe Version.
7 8 9 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 7 def api_version @api_version end |
#connect ⇒ Object
Whether this endpoint should receive events from connected accounts (‘true`), or from your account (`false`). Defaults to `false`.
9 10 11 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 9 def connect @connect end |
#description ⇒ Object
An optional description of what the webhook is used for.
11 12 13 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 11 def description @description end |
#enabled_events ⇒ Object
The list of events to enable for this endpoint. You may specify ‘[’*‘]` to enable all events, except those that require explicit selection.
13 14 15 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 13 def enabled_events @enabled_events end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
15 16 17 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 15 def @expand end |
#metadata ⇒ Object
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`.
17 18 19 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 17 def @metadata end |
#url ⇒ Object
The URL of the webhook endpoint.
19 20 21 |
# File 'lib/stripe/params/webhook_endpoint_create_params.rb', line 19 def url @url end |