Class: Telnyx::Models::Attempt

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

Defined Under Namespace

Modules: Status

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(errors: nil, finished_at: nil, http: nil, started_at: nil, status: nil) ⇒ Object

Webhook delivery attempt details.

Parameters:

  • errors (Array<Integer>) (defaults to: nil)

    Webhook delivery error codes.

  • finished_at (Time) (defaults to: nil)

    ISO 8601 timestamp indicating when the attempt has finished.

  • http (Telnyx::Models::HTTP) (defaults to: nil)

    HTTP request and response information.

  • started_at (Time) (defaults to: nil)

    ISO 8601 timestamp indicating when the attempt was initiated.

  • status (Symbol, Telnyx::Models::Attempt::Status) (defaults to: nil)


# File 'lib/telnyx/models/attempt.rb', line 35

Instance Attribute Details

#errorsArray<Integer>?

Webhook delivery error codes.

Returns:

  • (Array<Integer>, nil)


10
# File 'lib/telnyx/models/attempt.rb', line 10

optional :errors, Telnyx::Internal::Type::ArrayOf[Integer]

#finished_atTime?

ISO 8601 timestamp indicating when the attempt has finished.

Returns:

  • (Time, nil)


16
# File 'lib/telnyx/models/attempt.rb', line 16

optional :finished_at, Time

#httpTelnyx::Models::HTTP?

HTTP request and response information.

Returns:



22
# File 'lib/telnyx/models/attempt.rb', line 22

optional :http, -> { Telnyx::HTTP }

#started_atTime?

ISO 8601 timestamp indicating when the attempt was initiated.

Returns:

  • (Time, nil)


28
# File 'lib/telnyx/models/attempt.rb', line 28

optional :started_at, Time

#statusSymbol, ...

Returns:



33
# File 'lib/telnyx/models/attempt.rb', line 33

optional :status, enum: -> { Telnyx::Attempt::Status }