Class: Courier::Models::WorkspacePreferenceTopicReplaceRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::WorkspacePreferenceTopicReplaceRequest
- Defined in:
- lib/courier/models/workspace_preference_topic_replace_request.rb,
sig/courier/models/workspace_preference_topic_replace_request.rbs
Direct Known Subclasses
Defined Under Namespace
Modules: AllowedPreference, DefaultStatus
Instance Attribute Summary collapse
-
#allowed_preferences ⇒ Array<Symbol, Courier::Models::WorkspacePreferenceTopicReplaceRequest::AllowedPreference>?
Preference controls a recipient may customize.
-
#default_status ⇒ Symbol, Courier::Models::WorkspacePreferenceTopicReplaceRequest::DefaultStatus
The default subscription status applied when a recipient has not set their own.
-
#description ⇒ String?
Optional description shown under the topic on the hosted preferences page.
-
#include_unsubscribe_header ⇒ Boolean?
Whether to include a list-unsubscribe header on emails for this topic.
-
#name ⇒ String
Human-readable name for the preference topic.
-
#routing_options ⇒ Array<Symbol, Courier::Models::ChannelClassification>?
Default channels delivered for this topic.
-
#topic_data ⇒ Hash{Symbol=>Object}?
Arbitrary metadata associated with the topic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_status:, name:, allowed_preferences: nil, description: nil, include_unsubscribe_header: nil, routing_options: nil, topic_data: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see WorkspacePreferenceTopicReplaceRequest for more details.
- #to_hash ⇒ {
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(default_status:, name:, allowed_preferences: nil, description: nil, include_unsubscribe_header: nil, routing_options: nil, topic_data: nil) ⇒ Object
Some parameter documentations has been truncated, see Courier::Models::WorkspacePreferenceTopicReplaceRequest for more details.
Request body for replacing a preference topic. Full document replacement; missing optional fields are cleared.
|
|
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 55
|
Instance Attribute Details
#allowed_preferences ⇒ Array<Symbol, Courier::Models::WorkspacePreferenceTopicReplaceRequest::AllowedPreference>?
Preference controls a recipient may customize. Omit to clear.
22 23 24 25 26 |
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 22 optional :allowed_preferences, -> { Courier::Internal::Type::ArrayOf[enum: Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference] }, nil?: true |
#default_status ⇒ Symbol, Courier::Models::WorkspacePreferenceTopicReplaceRequest::DefaultStatus
The default subscription status applied when a recipient has not set their own.
10 |
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 10 required :default_status, enum: -> { Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus } |
#description ⇒ String?
Optional description shown under the topic on the hosted preferences page. Omit to clear.
33 |
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 33 optional :description, String, nil?: true |
#include_unsubscribe_header ⇒ Boolean?
Whether to include a list-unsubscribe header on emails for this topic.
39 |
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 39 optional :include_unsubscribe_header, Courier::Internal::Type::Boolean, nil?: true |
#name ⇒ String
Human-readable name for the preference topic.
16 |
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 16 required :name, String |
#routing_options ⇒ Array<Symbol, Courier::Models::ChannelClassification>?
Default channels delivered for this topic. Omit to clear.
45 46 47 |
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 45 optional :routing_options, -> { Courier::Internal::Type::ArrayOf[enum: Courier::ChannelClassification] }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/courier/models/workspace_preference_topic_replace_request.rb', line 86
|
Instance Method Details
#to_hash ⇒ {
39 |
# File 'sig/courier/models/workspace_preference_topic_replace_request.rbs', line 39
def to_hash: -> {
|