Class: Courier::Models::JourneySendNode::Message::To

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/journey_send_node.rb,
sig/courier/models/journey_send_node.rbs

Overview

See Also:

  • Courier::Models::JourneySendNode::Message#to

Constant Summary collapse

Courier =

Returns:

  • (:JourneySendNodeToMsTeams)

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

#initializeObject



159
# File 'sig/courier/models/journey_send_node.rbs', line 159

def initialize: (

Instance Attribute Details

#email_overrideString?

Parameters:

  • (String)

Returns:

  • (String, nil)


153
# File 'lib/courier/models/journey_send_node.rb', line 153

optional :email_override, String

#ms_teamsCourier::Models::JourneySendNodeToMsTeams?

Send to a Microsoft Teams address directly, bypassing the recipient's stored profile. Requires exactly one target: channel_id, channel_name (with team_id), user_id, or email. channel_name, user_id, and email also need at least one of service_url or tenant_id — if you provide both, they must agree. channel_id doesn't require tenant context to publish, but provide service_url or tenant_id anyway: sends without either have failed at delivery in testing. conversation_id and reply_to_activity_id, available on the send API's MsTeams profile, aren't supported here yet.



166
# File 'lib/courier/models/journey_send_node.rb', line 166

optional :ms_teams, -> { Courier::JourneySendNodeToMsTeams }

#phone_number_overrideString?

Parameters:

  • (String)

Returns:

  • (String, nil)


171
# File 'lib/courier/models/journey_send_node.rb', line 171

optional :phone_number_override, String

#slackCourier::Models::JourneySendNodeToSlackChannel, ...

Send to a Slack address directly, bypassing the recipient's stored profile. Requires exactly one of channel, user_id, or email.



178
# File 'lib/courier/models/journey_send_node.rb', line 178

optional :slack, union: -> { Courier::JourneySendNodeToSlack }

#user_id_overrideString?

Parameters:

  • (String)

Returns:

  • (String, nil)


183
# File 'lib/courier/models/journey_send_node.rb', line 183

optional :user_id_override, String

Instance Method Details

#to_hash{

Returns:

  • ({)


167
# File 'sig/courier/models/journey_send_node.rbs', line 167

def to_hash: -> {