Class: Courier::Models::JourneySendNode::Message::To
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::JourneySendNode::Message::To
- Defined in:
- lib/courier/models/journey_send_node.rb,
sig/courier/models/journey_send_node.rbs
Overview
Instance Attribute Summary collapse
- #email_override ⇒ String?
-
#ms_teams ⇒ Courier::Models::JourneySendNodeToMsTeams?
Send to a Microsoft Teams address directly, bypassing the recipient's stored profile.
- #phone_number_override ⇒ String?
-
#slack ⇒ Courier::Models::JourneySendNodeToSlackChannel, ...
Send to a Slack address directly, bypassing the recipient's stored profile.
- #user_id_override ⇒ String?
Instance Method Summary collapse
-
#initialize ⇒ To
constructor
A new instance of To.
- #to_hash ⇒ { email_override: String, ms_teams: Courier::JourneySendNodeToMsTeams, phone_number_override: String, slack: Courier::Models::journey_send_node_to_slack, user_id_override: 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 ⇒ To
Returns a new instance of To.
168 169 170 171 172 173 174 |
# File 'sig/courier/models/journey_send_node.rbs', line 168
def initialize: (
?email_override: String,
?ms_teams: Courier::JourneySendNodeToMsTeams,
?phone_number_override: String,
?slack: Courier::Models::journey_send_node_to_slack,
?user_id_override: String
) -> void
|
Instance Attribute Details
#email_override ⇒ String?
164 |
# File 'lib/courier/models/journey_send_node.rb', line 164 optional :email_override, String |
#ms_teams ⇒ Courier::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.
177 |
# File 'lib/courier/models/journey_send_node.rb', line 177 optional :ms_teams, -> { Courier::JourneySendNodeToMsTeams } |
#phone_number_override ⇒ String?
182 |
# File 'lib/courier/models/journey_send_node.rb', line 182 optional :phone_number_override, String |
#slack ⇒ Courier::Models::JourneySendNodeToSlackChannel, ...
Send to a Slack address directly, bypassing the recipient's stored profile.
Requires exactly one of channel, user_id, or email.
189 |
# File 'lib/courier/models/journey_send_node.rb', line 189 optional :slack, union: -> { Courier::JourneySendNodeToSlack } |
#user_id_override ⇒ String?
194 |
# File 'lib/courier/models/journey_send_node.rb', line 194 optional :user_id_override, String |
Instance Method Details
#to_hash ⇒ { email_override: String, ms_teams: Courier::JourneySendNodeToMsTeams, phone_number_override: String, slack: Courier::Models::journey_send_node_to_slack, user_id_override: String }
176 177 178 179 180 181 182 |
# File 'sig/courier/models/journey_send_node.rbs', line 176
def to_hash: -> {
email_override: String,
ms_teams: Courier::JourneySendNodeToMsTeams,
phone_number_override: String,
slack: Courier::Models::journey_send_node_to_slack,
user_id_override: String
}
|