Class: Knockapi::Models::Recipients::RecipientsChannelData

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

Defined Under Namespace

Modules: Data, Provider

Instance Attribute Summary collapse

Class Method 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(target_arn:, locale: nil, timezone: nil) ⇒ Object

Some parameter documentations has been truncated, see Knockapi::Models::Recipients::RecipientsChannelData::Data::AwssnsPushChannelDataFull::Device for more details.



# File 'lib/knockapi/models/recipients/channel_data.rb', line 31


Instance Attribute Details

#_typenameString

The typename of the schema.



11
# File 'lib/knockapi/models/recipients/channel_data.rb', line 11

required :_typename, String, api_name: :__typename

#channel_idString

The unique identifier for the channel.



17
# File 'lib/knockapi/models/recipients/channel_data.rb', line 17

required :channel_id, String

#dataKnockapi::Models::Recipients::RecipientsChannelData::Data::PushChannelDataFull, ...

Channel data for a given channel type.



23
# File 'lib/knockapi/models/recipients/channel_data.rb', line 23

required :data, union: -> { Knockapi::Recipients::RecipientsChannelData::Data }

#providerSymbol, ...

The type of provider.



29
# File 'lib/knockapi/models/recipients/channel_data.rb', line 29

optional :provider, enum: -> { Knockapi::Recipients::RecipientsChannelData::Provider }

Class Method Details

.variantsArray(Knockapi::Models::Recipients::RecipientsChannelData::Data::PushChannelDataFull, Knockapi::Models::Recipients::RecipientsChannelData::Data::AwssnsPushChannelDataFull, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData)



# File 'lib/knockapi/models/recipients/channel_data.rb', line 193