Class: Courier::Models::NotificationListResponse::Result

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/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:



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/courier/models/notification_list_response.rb', line 22

class Result < Courier::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, Courier::Internal::Type::ArrayOf[String]

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

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

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

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

  # @!attribute tags
  #
  #   @return [Courier::Models::NotificationListResponse::Result::Tags, nil]
  optional :tags, -> { Courier::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 [Courier::Models::MessageRouting]
  #
  #   @param topic_id [String]
  #
  #   @param updated_at [Integer]
  #
  #   @param tags [Courier::Models::NotificationListResponse::Result::Tags, nil]
  #
  #   @param title [String, nil]

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

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

    class Data < Courier::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:

  • (Integer)


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

required :created_at, Integer

#event_idsArray<String>

Array of event IDs associated with this notification

Returns:

  • (Array<String>)


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

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

#idString

Returns:

  • (String)


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

required :id, String

#noteString

Returns:

  • (String)


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

required :note, String

#routingCourier::Models::MessageRouting



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

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

#tagsCourier::Models::NotificationListResponse::Result::Tags?



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

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

#titleString?

Returns:

  • (String, nil)


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

optional :title, String, nil?: true

#topic_idString

Returns:

  • (String)


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

required :topic_id, String

#updated_atInteger

Returns:

  • (Integer)


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

required :updated_at, Integer