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
Constant Summary collapse
- Courier =
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 ⇒ Object constructor
- #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 ⇒ Object
159 |
# File 'sig/courier/models/journey_send_node.rbs', line 159
def initialize: (
|
Instance Attribute Details
#email_override ⇒ String?
153 |
# File 'lib/courier/models/journey_send_node.rb', line 153 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.
166 |
# File 'lib/courier/models/journey_send_node.rb', line 166 optional :ms_teams, -> { Courier::JourneySendNodeToMsTeams } |
#phone_number_override ⇒ String?
171 |
# File 'lib/courier/models/journey_send_node.rb', line 171 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.
178 |
# File 'lib/courier/models/journey_send_node.rb', line 178 optional :slack, union: -> { Courier::JourneySendNodeToSlack } |
#user_id_override ⇒ String?
183 |
# File 'lib/courier/models/journey_send_node.rb', line 183 optional :user_id_override, String |
Instance Method Details
#to_hash ⇒ {
167 |
# File 'sig/courier/models/journey_send_node.rbs', line 167
def to_hash: -> {
|