Module: Believe::Models::WebhookCreateParams::EventType

Extended by:
Internal::Type::Enum
Defined in:
lib/believe/models/webhook_create_params.rb

Constant Summary collapse

MATCH_COMPLETED =
:"match.completed"
TEAM_MEMBER_TRANSFERRED =
:"team_member.transferred"

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/believe/models/webhook_create_params.rb', line 45

Instance Method Details

#initialize(url:, description: nil, event_types: nil, request_options: {}) ⇒ Object

Parameters:

  • url (String)

    The URL to send webhook events to

  • description (String, nil) (defaults to: nil)

    Optional description for this webhook

  • event_types (Array<Symbol, ::Believe::Models::WebhookCreateParams::EventType>, nil) (defaults to: nil)

    List of event types to subscribe to. If not provided, subscribes to all events.

  • request_options (::Believe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


39
40
41
42
43
44
45
46
47
# File 'lib/believe/models/webhook_create_params.rb', line 39

module EventType
  extend ::Believe::Internal::Type::Enum

  MATCH_COMPLETED = :"match.completed"
  TEAM_MEMBER_TRANSFERRED = :"team_member.transferred"

  # @!method self.values
  #   @return [Array<Symbol>]
end