Class: Trycourier::Models::NotificationListResponse::Result

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/notification_list_response.rb

Defined Under Namespace

Classes: Tags

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:, event_ids:, note:, routing:, topic_id:, updated_at:, tags: nil, title: nil) ⇒ Object

Parameters:

  • Array of event IDs associated with this notification

  • (defaults to: nil)
  • (defaults to: nil)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/trycourier/models/notification_list_response.rb', line 22

class Result < Trycourier::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [String]
  required :id, String

  # @!attribute created_at
  #
  #   @return [Integer]
  required :created_at, Integer

  # @!attribute event_ids
  #   Array of event IDs associated with this notification
  #
  #   @return [Array<String>]
  required :event_ids, Trycourier::Internal::Type::ArrayOf[String]

  # @!attribute note
  #
  #   @return [String]
  required :note, String

  # @!attribute routing
  #
  #   @return [Trycourier::Models::MessageRouting]
  required :routing, -> { Trycourier::MessageRouting }

  # @!attribute topic_id
  #
  #   @return [String]
  required :topic_id, String

  # @!attribute updated_at
  #
  #   @return [Integer]
  required :updated_at, Integer

  # @!attribute tags
  #
  #   @return [Trycourier::Models::NotificationListResponse::Result::Tags, nil]
  optional :tags, -> { Trycourier::Models::NotificationListResponse::Result::Tags }, nil?: true

  # @!attribute title
  #
  #   @return [String, nil]
  optional :title, String, nil?: true

  # @!method initialize(id:, created_at:, event_ids:, note:, routing:, topic_id:, updated_at:, tags: nil, title: nil)
  #   @param id [String]
  #
  #   @param created_at [Integer]
  #
  #   @param event_ids [Array<String>] Array of event IDs associated with this notification
  #
  #   @param note [String]
  #
  #   @param routing [Trycourier::Models::MessageRouting]
  #
  #   @param topic_id [String]
  #
  #   @param updated_at [Integer]
  #
  #   @param tags [Trycourier::Models::NotificationListResponse::Result::Tags, nil]
  #
  #   @param title [String, nil]

  # @see Trycourier::Models::NotificationListResponse::Result#tags
  class Tags < Trycourier::Internal::Type::BaseModel
    # @!attribute data
    #
    #   @return [Array<Trycourier::Models::NotificationListResponse::Result::Tags::Data>]
    required :data,
             -> { Trycourier::Internal::Type::ArrayOf[Trycourier::Models::NotificationListResponse::Result::Tags::Data] }

    # @!method initialize(data:)
    #   @param data [Array<Trycourier::Models::NotificationListResponse::Result::Tags::Data>]

    class Data < Trycourier::Internal::Type::BaseModel
      # @!attribute id
      #
      #   @return [String]
      required :id, String

      # @!attribute name
      #
      #   @return [String]
      required :name, String

      # @!method initialize(id:, name:)
      #   @param id [String]
      #   @param name [String]
    end
  end
end

Instance Attribute Details

#created_atInteger

Returns:



31
# File 'lib/trycourier/models/notification_list_response.rb', line 31

required :created_at, Integer

#event_idsArray<String>

Array of event IDs associated with this notification

Returns:



37
# File 'lib/trycourier/models/notification_list_response.rb', line 37

required :event_ids, Trycourier::Internal::Type::ArrayOf[String]

#idString

Returns:



26
# File 'lib/trycourier/models/notification_list_response.rb', line 26

required :id, String

#noteString

Returns:



42
# File 'lib/trycourier/models/notification_list_response.rb', line 42

required :note, String

#routingTrycourier::Models::MessageRouting

Returns:



47
# File 'lib/trycourier/models/notification_list_response.rb', line 47

required :routing, -> { Trycourier::MessageRouting }

#tagsTrycourier::Models::NotificationListResponse::Result::Tags?

Returns:



62
# File 'lib/trycourier/models/notification_list_response.rb', line 62

optional :tags, -> { Trycourier::Models::NotificationListResponse::Result::Tags }, nil?: true

#titleString?

Returns:



67
# File 'lib/trycourier/models/notification_list_response.rb', line 67

optional :title, String, nil?: true

#topic_idString

Returns:



52
# File 'lib/trycourier/models/notification_list_response.rb', line 52

required :topic_id, String

#updated_atInteger

Returns:



57
# File 'lib/trycourier/models/notification_list_response.rb', line 57

required :updated_at, Integer