Class: Telnyx::Models::EmailInboxes::MessageListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/telnyx/models/email_inboxes/message_list_params.rb,
sig/telnyx/models/email_inboxes/message_list_params.rbs

Overview

See Also:

  • Telnyx::Resources::EmailInboxes::Messages#list

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(inbox_id:, filter_from: nil, filter_label: nil, filter_read: nil, filter_received_after: nil, filter_received_before: nil, filter_search: nil, filter_subject: nil, filter_unread: nil, page_after: nil, page_size: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::EmailInboxes::MessageListParams for more details.

Parameters:

  • inbox_id (String)
  • filter_from (String) (defaults to: nil)

    Case-insensitive literal substring of the sender address.

  • filter_label (String) (defaults to: nil)

    Returns only messages carrying this label. Matching is exact and case-sensitive.

  • filter_read (Boolean) (defaults to: nil)

    Whether the message has a read timestamp.

  • filter_received_after (Time) (defaults to: nil)

    Inclusive ISO 8601 lower bound for the received timestamp.

  • filter_received_before (Time) (defaults to: nil)

    Inclusive ISO 8601 upper bound for the received timestamp.

  • filter_search (String) (defaults to: nil)

    Full-text query over subject and body, up to 500 characters.

  • filter_subject (String) (defaults to: nil)

    Case-insensitive literal substring of the subject.

  • filter_unread (Boolean) (defaults to: nil)

    Whether the message has no read timestamp. Set to true to return only unread m

  • page_after (String) (defaults to: nil)

    Opaque cursor returned by the previous page.

  • page_size (Integer) (defaults to: nil)

    Number of results to return. Defaults to 25; maximum is 100.

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 79

Instance Attribute Details

#filter_fromString?

Case-insensitive literal substring of the sender address.

Parameters:

  • (String)

Returns:

  • (String, nil)


20
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 20

optional :filter_from, String

#filter_labelString?

Returns only messages carrying this label. Matching is exact and case-sensitive. Reserved telnyx: labels can be filtered on even though they cannot be written by customers.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :filter_label, String

#filter_readBoolean?

Whether the message has a read timestamp.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


34
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 34

optional :filter_read, Telnyx::Internal::Type::Boolean

#filter_received_afterTime?

Inclusive ISO 8601 lower bound for the received timestamp.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


40
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 40

optional :filter_received_after, Time

#filter_received_beforeTime?

Inclusive ISO 8601 upper bound for the received timestamp.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


46
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 46

optional :filter_received_before, Time

#filter_searchString?

Full-text query over subject and body, up to 500 characters.

Parameters:

  • (String)

Returns:

  • (String, nil)


52
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 52

optional :filter_search, String

#filter_subjectString?

Case-insensitive literal substring of the subject.

Parameters:

  • (String)

Returns:

  • (String, nil)


58
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 58

optional :filter_subject, String

#filter_unreadBoolean?

Whether the message has no read timestamp. Set to true to return only unread messages.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


65
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 65

optional :filter_unread, Telnyx::Internal::Type::Boolean

#inbox_idString

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 14

required :inbox_id, String

#page_afterString?

Opaque cursor returned by the previous page.

Parameters:

  • (String)

Returns:

  • (String, nil)


71
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 71

optional :page_after, String

#page_sizeInteger?

Number of results to return. Defaults to 25; maximum is 100.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


77
# File 'lib/telnyx/models/email_inboxes/message_list_params.rb', line 77

optional :page_size, Integer

Instance Method Details

#to_hash{

Returns:

  • ({)


81
# File 'sig/telnyx/models/email_inboxes/message_list_params.rbs', line 81

def to_hash: -> {