Class: Onlyfans::Models::WebhookUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Onlyfans::Models::WebhookUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/onlyfans/models/webhook_update_params.rb
Overview
Instance Attribute Summary collapse
-
#account_ids ⇒ Array<String>?
An array of account IDs to apply the scope to.
-
#account_scope ⇒ String
The account scope for the webhook.
-
#enabled ⇒ Boolean?
Optionally, enabled/disable the webhook.
-
#endpoint_url ⇒ String
The URL of your webhook endpoint.
-
#events ⇒ Array<String>
An array of webhook events to subscribe to.
- #webhook_id ⇒ String
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(webhook_id:, account_scope:, endpoint_url:, events:, account_ids: nil, enabled: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see WebhookUpdateParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(webhook_id:, account_scope:, endpoint_url:, events:, account_ids: nil, enabled: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Onlyfans::Models::WebhookUpdateParams for more details.
**List
|
|
# File 'lib/onlyfans/models/webhook_update_params.rb', line 49
|
Instance Attribute Details
#account_ids ⇒ Array<String>?
An array of account IDs to apply the scope to. Required unless account_scope is “global”.
40 |
# File 'lib/onlyfans/models/webhook_update_params.rb', line 40 optional :account_ids, Onlyfans::Internal::Type::ArrayOf[String] |
#account_scope ⇒ String
The account scope for the webhook. Use “global” for all accounts, “inclusive” for only selected accounts, or “exclusive” for all except selected accounts.
20 |
# File 'lib/onlyfans/models/webhook_update_params.rb', line 20 required :account_scope, String |
#enabled ⇒ Boolean?
Optionally, enabled/disable the webhook. This will stop/resume the sending of events, without having to delete the webhook.
47 |
# File 'lib/onlyfans/models/webhook_update_params.rb', line 47 optional :enabled, Onlyfans::Internal::Type::Boolean, nil?: true |
#endpoint_url ⇒ String
The URL of your webhook endpoint.
26 |
# File 'lib/onlyfans/models/webhook_update_params.rb', line 26 required :endpoint_url, String |
#events ⇒ Array<String>
An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint.
33 |
# File 'lib/onlyfans/models/webhook_update_params.rb', line 33 required :events, Onlyfans::Internal::Type::ArrayOf[String] |
#webhook_id ⇒ String
13 |
# File 'lib/onlyfans/models/webhook_update_params.rb', line 13 required :webhook_id, String |