Class: OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data::SipHeader

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(call_id:, sip_headers:) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data for more details.

Event data payload.

Parameters:



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb', line 79

class SipHeader < OpenAI::Internal::Type::BaseModel
  # @!attribute name
  #   Name of the SIP Header.
  #
  #   @return [String]
  required :name, String

  # @!attribute value
  #   Value of the SIP Header.
  #
  #   @return [String]
  required :value, String

  # @!method initialize(name:, value:)
  #   Some parameter documentations has been truncated, see
  #   {OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data::SipHeader}
  #   for more details.
  #
  #   A header from the SIP Invite.
  #
  #   @param name [String] Name of the SIP Header.
  #
  #   @param value [String] Value of the SIP Header.
end

Instance Attribute Details

#nameString

Name of the SIP Header.

Returns:

  • (String)


84
# File 'lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb', line 84

required :name, String

#valueString

Value of the SIP Header.

Returns:

  • (String)


90
# File 'lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb', line 90

required :value, String