Class: Lithic::Models::MessageAttempt

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/message_attempt.rb

Overview

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(token:, created:, event_subscription_token:, event_token:, response:, response_status_code:, status:, url:) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::MessageAttempt for more details.

A subscription to specific event types.

Parameters:

  • token (String)

    Globally unique identifier.

  • created (Time)

    An RFC 3339 timestamp for when the event was created. UTC time zone.

  • event_subscription_token (String)

    Globally unique identifier.

  • event_token (String)

    Globally unique identifier.

  • response (String)

    The response body from the event subscription’s URL.

  • response_status_code (Integer)

    The response status code from the event subscription’s URL.

  • status (Symbol, Lithic::Models::MessageAttempt::Status)

    The status of the event attempt.

  • url (String)


# File 'lib/lithic/models/message_attempt.rb', line 56


Instance Attribute Details

#createdTime

An RFC 3339 timestamp for when the event was created. UTC time zone.

If no timezone is specified, UTC will be used.

Returns:

  • (Time)


19
# File 'lib/lithic/models/message_attempt.rb', line 19

required :created, Time

#event_subscription_tokenString

Globally unique identifier.

Returns:

  • (String)


25
# File 'lib/lithic/models/message_attempt.rb', line 25

required :event_subscription_token, String

#event_tokenString

Globally unique identifier.

Returns:

  • (String)


31
# File 'lib/lithic/models/message_attempt.rb', line 31

required :event_token, String

#responseString

The response body from the event subscription’s URL.

Returns:

  • (String)


37
# File 'lib/lithic/models/message_attempt.rb', line 37

required :response, String

#response_status_codeInteger

The response status code from the event subscription’s URL.

Returns:

  • (Integer)


43
# File 'lib/lithic/models/message_attempt.rb', line 43

required :response_status_code, Integer

#statusSymbol, Lithic::Models::MessageAttempt::Status

The status of the event attempt.



49
# File 'lib/lithic/models/message_attempt.rb', line 49

required :status, enum: -> { Lithic::MessageAttempt::Status }

#tokenString

Globally unique identifier.

Returns:

  • (String)


11
# File 'lib/lithic/models/message_attempt.rb', line 11

required :token, String

#urlString

Returns:

  • (String)


54
# File 'lib/lithic/models/message_attempt.rb', line 54

required :url, String