Class: Courier::Models::PreferenceChangeLogEntry
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::PreferenceChangeLogEntry
- Defined in:
- lib/courier/models/preference_change_log_entry.rb,
sig/courier/models/preference_change_log_entry.rbs
Instance Attribute Summary collapse
-
#custom_routing ⇒ Array<Symbol, Courier::Models::ChannelClassification>
The channels chosen for this topic, present only when has_custom_routing is true.
-
#has_custom_routing ⇒ Boolean
Whether specific delivery channels were chosen for this topic rather than the topic's default routing.
-
#id ⇒ String
Unique identifier for this change.
-
#previous ⇒ Courier::Models::PreferenceChangeLogValue?
The value before this change, where it was recorded.
-
#status ⇒ Symbol, Courier::Models::PreferenceStatus
The subscription status the change set.
-
#tenant_id ⇒ String?
The tenant context the change was made in.
-
#timestamp ⇒ String
When the change was made, as an ISO-8601 date-time in UTC.
-
#topic_id ⇒ String
The subscription topic the change applies to.
-
#topic_name ⇒ String
The display name of that topic when the change was made.
-
#user_id ⇒ String
The user whose preference changed.
Instance Method Summary collapse
-
#initialize(id:, custom_routing:, has_custom_routing:, status:, timestamp:, topic_id:, topic_name:, user_id:, previous: nil, tenant_id: nil) ⇒ PreferenceChangeLogEntry
constructor
Some parameter documentations has been truncated, see PreferenceChangeLogEntry for more details.
- #to_hash ⇒ { id: String, custom_routing: ::Array[Courier::Models::channel_classification], has_custom_routing: bool, status: Courier::Models::preference_status, timestamp: String, topic_id: String, topic_name: String, user_id: String, previous: Courier::PreferenceChangeLogValue, tenant_id: String }
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:, custom_routing:, has_custom_routing:, status:, timestamp:, topic_id:, topic_name:, user_id:, previous: nil, tenant_id: nil) ⇒ PreferenceChangeLogEntry
Some parameter documentations has been truncated, see Courier::Models::PreferenceChangeLogEntry for more details.
|
|
# File 'lib/courier/models/preference_change_log_entry.rb', line 69
|
Instance Attribute Details
#custom_routing ⇒ Array<Symbol, Courier::Models::ChannelClassification>
The channels chosen for this topic, present only when has_custom_routing is true. Empty otherwise.
17 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 17 required :custom_routing, -> { Courier::Internal::Type::ArrayOf[enum: Courier::ChannelClassification] } |
#has_custom_routing ⇒ Boolean
Whether specific delivery channels were chosen for this topic rather than the topic's default routing.
24 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 24 required :has_custom_routing, Courier::Internal::Type::Boolean |
#id ⇒ String
Unique identifier for this change.
10 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 10 required :id, String |
#previous ⇒ Courier::Models::PreferenceChangeLogValue?
The value before this change, where it was recorded.
60 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 60 optional :previous, -> { Courier::PreferenceChangeLogValue } |
#status ⇒ Symbol, Courier::Models::PreferenceStatus
The subscription status the change set.
30 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 30 required :status, enum: -> { Courier::PreferenceStatus } |
#tenant_id ⇒ String?
The tenant context the change was made in. Absent when the user set the preference outside any tenant.
67 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 67 optional :tenant_id, String |
#timestamp ⇒ String
When the change was made, as an ISO-8601 date-time in UTC.
36 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 36 required :timestamp, String |
#topic_id ⇒ String
The subscription topic the change applies to.
42 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 42 required :topic_id, String |
#topic_name ⇒ String
The display name of that topic when the change was made.
48 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 48 required :topic_name, String |
#user_id ⇒ String
The user whose preference changed.
54 |
# File 'lib/courier/models/preference_change_log_entry.rb', line 54 required :user_id, String |
Instance Method Details
#to_hash ⇒ { id: String, custom_routing: ::Array[Courier::Models::channel_classification], has_custom_routing: bool, status: Courier::Models::preference_status, timestamp: String, topic_id: String, topic_name: String, user_id: String, previous: Courier::PreferenceChangeLogValue, tenant_id: String }
57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'sig/courier/models/preference_change_log_entry.rbs', line 57
def to_hash: -> {
id: String,
custom_routing: ::Array[Courier::Models::channel_classification],
has_custom_routing: bool,
status: Courier::Models::preference_status,
timestamp: String,
topic_id: String,
topic_name: String,
user_id: String,
previous: Courier::PreferenceChangeLogValue,
tenant_id: String
}
|