Class: Knockapi::Models::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/knockapi/models/recipients/preference_set_request.rb

Defined Under Namespace

Modules: Channel

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(channel_types: nil, channels: nil, conditions: nil) ⇒ Object

The settings object for a workflow or category, where you can specify channel types or conditions.



# File 'lib/knockapi/models/recipients/preference_set_request.rb', line 127


Instance Attribute Details

#channel_typesKnockapi::Models::Recipients::PreferenceSetChannelTypes?

Channel type preferences.



107
# File 'lib/knockapi/models/recipients/preference_set_request.rb', line 107

optional :channel_types, -> { Knockapi::Recipients::PreferenceSetChannelTypes }, nil?: true

#channelsHash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}?

Channel preferences.



113
114
115
116
117
118
119
# File 'lib/knockapi/models/recipients/preference_set_request.rb', line 113

optional :channels,
-> do
  Knockapi::Internal::Type::HashOf[
    union: Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel
  ]
end,
nil?: true

#conditionsArray<Knockapi::Models::Condition>?

A list of conditions to apply to a channel type.



125
# File 'lib/knockapi/models/recipients/preference_set_request.rb', line 125

optional :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }, nil?: true