Class: PreludeSDK::Models::NotifyReplyResponse

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

Overview

See Also:

  • PreludeSDK::Resources::Notify#reply

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:, created_at:, reply_to:, text:, to:, callback_url: nil, correlation_id: nil) ⇒ Object

Parameters:

  • id (String) —

    The reply message identifier.

  • created_at (Time) —

    The reply creation date in RFC3339 format.

  • reply_to (String) —

    The inbound message ID this reply was sent in response to.

  • text (String) —

    The reply message body that was sent.

  • to (String) —

    The recipient's phone number in E.164 format.

  • callback_url (String) (defaults to: nil) —

    The callback URL where webhooks will be sent.

  • correlation_id (String) (defaults to: nil) —

    The user-defined correlation identifier echoed back from the request.



# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 49

Instance Attribute Details

#callback_url ⇒ String?

The callback URL where webhooks will be sent.

Parameters:

  • (String)

Returns:

  • (String, nil)


41
# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 41

optional :callback_url, String

#correlation_id ⇒ String?

The user-defined correlation identifier echoed back from the request.

Parameters:

  • (String)

Returns:

  • (String, nil)


47
# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 47

optional :correlation_id, String

#created_at ⇒ Time

The reply creation date in RFC3339 format.

Parameters:

  • value (Time)

Returns:

  • (Time)


17
# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 17

required :created_at, Time

#id ⇒ String

The reply message identifier.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 11

required :id, String

#reply_to ⇒ String

The inbound message ID this reply was sent in response to.

Parameters:

  • value (String)

Returns:

  • (String)


23
# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 23

required :reply_to, String

#text ⇒ String

The reply message body that was sent.

Parameters:

  • value (String)

Returns:

  • (String)


29
# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 29

required :text, String

#to ⇒ String

The recipient's phone number in E.164 format.

Parameters:

  • value (String)

Returns:

  • (String)


35
# File 'lib/prelude_sdk/models/notify_reply_response.rb', line 35

required :to, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


43
# File 'sig/prelude_sdk/models/notify_reply_response.rbs', line 43

def to_hash: -> {