Class: Telnyx::Models::WebhookDelivery::Webhook

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/webhook_delivery.rb,
sig/telnyx/models/webhook_delivery.rbs

Overview

See Also:

  • Telnyx::Models::WebhookDelivery#webhook

Defined Under Namespace

Modules: RecordType

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(id: nil, event_type: nil, occurred_at: nil, payload: nil, record_type: nil) ⇒ Object

Original webhook JSON data. Payload fields vary according to event type.



# File 'lib/telnyx/models/webhook_delivery.rb', line 123


Instance Attribute Details

#event_typeString?

The type of event being delivered.



104
# File 'lib/telnyx/models/webhook_delivery.rb', line 104

optional :event_type, String

#idString?

Identifies the type of resource.



98
# File 'lib/telnyx/models/webhook_delivery.rb', line 98

optional :id, String

#occurred_atTime?

ISO 8601 datetime of when the event occurred.



110
# File 'lib/telnyx/models/webhook_delivery.rb', line 110

optional :occurred_at, Time

#payloadHash{Symbol=>Object}?



115
# File 'lib/telnyx/models/webhook_delivery.rb', line 115

optional :payload, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#record_typeSymbol, ...

Identifies the type of the resource.



121
# File 'lib/telnyx/models/webhook_delivery.rb', line 121

optional :record_type, enum: -> { Telnyx::WebhookDelivery::Webhook::RecordType }

Instance Method Details

#to_hash{



125
# File 'sig/telnyx/models/webhook_delivery.rbs', line 125

def to_hash: -> {