Class: Telnyx::Models::WebhookDeliveryRetrieveResponse::Data::Webhook

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/webhook_delivery_retrieve_response.rb

Overview

See Also:

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.

Parameters:

  • id (String) (defaults to: nil)

    Identifies the type of resource.

  • event_type (String) (defaults to: nil)

    The type of event being delivered.

  • occurred_at (Time) (defaults to: nil)

    ISO 8601 datetime of when the event occurred.

  • payload (Hash{Symbol=>Object}) (defaults to: nil)
  • record_type (Symbol, Telnyx::Models::WebhookDeliveryRetrieveResponse::Data::Webhook::RecordType) (defaults to: nil)

    Identifies the type of the resource.



# File 'lib/telnyx/models/webhook_delivery_retrieve_response.rb', line 135

Instance Attribute Details

#event_typeString?

The type of event being delivered.

Returns:

  • (String, nil)


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

optional :event_type, String

#idString?

Identifies the type of resource.

Returns:

  • (String, nil)


109
# File 'lib/telnyx/models/webhook_delivery_retrieve_response.rb', line 109

optional :id, String

#occurred_atTime?

ISO 8601 datetime of when the event occurred.

Returns:

  • (Time, nil)


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

optional :occurred_at, Time

#payloadHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


126
# File 'lib/telnyx/models/webhook_delivery_retrieve_response.rb', line 126

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

#record_typeSymbol, ...

Identifies the type of the resource.



132
133
# File 'lib/telnyx/models/webhook_delivery_retrieve_response.rb', line 132

optional :record_type,
enum: -> { Telnyx::Models::WebhookDeliveryRetrieveResponse::Data::Webhook::RecordType }