Class: Zavudev::Models::MessageSendParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::MessageSendParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/zavudev/models/message_send_params.rb,
sig/zavudev/models/message_send_params.rbs
Overview
Defined Under Namespace
Classes: Attachment
Instance Attribute Summary collapse
-
#attachments ⇒ Array<Zavudev::Models::MessageSendParams::Attachment>?
Email attachments.
-
#channel ⇒ Symbol, ...
Delivery channel.
-
#content ⇒ Zavudev::Models::MessageContent?
Additional content for non-text message types.
-
#fallback_enabled ⇒ Boolean?
Whether to enable automatic fallback to SMS if WhatsApp fails.
-
#html_body ⇒ String?
HTML body for email messages.
-
#idempotency_key ⇒ String?
Optional idempotency key to avoid duplicate sends.
-
#message_type ⇒ Symbol, ...
Type of message.
-
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary metadata to associate with the message.
-
#reply_to ⇒ String?
Reply-To email address for email messages.
-
#subject ⇒ String?
Email subject line.
-
#text ⇒ String?
Text body for text messages or caption for media messages.
-
#to ⇒ String
Recipient phone number in E.164 format, email address, WhatsApp business-scoped user ID (BSUID, e.g.
US.13491208655302741918), or numeric chat ID (for Telegram/Instagram/Messenger). -
#voice_language ⇒ String?
Language code for voice text-to-speech (e.g., 'en-US', 'es-ES', 'pt-BR').
- #zavu_sender ⇒ String?
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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
84 |
# File 'sig/zavudev/models/message_send_params.rbs', line 84
def initialize: (
|
Instance Attribute Details
#attachments ⇒ Array<Zavudev::Models::MessageSendParams::Attachment>?
Email attachments. Only supported when channel is 'email'. Maximum 40MB total size.
25 |
# File 'lib/zavudev/models/message_send_params.rb', line 25 optional :attachments, -> { Zavudev::Internal::Type::ArrayOf[Zavudev::MessageSendParams::Attachment] } |
#channel ⇒ Symbol, ...
Delivery channel. Use 'auto' for intelligent routing. If omitted, channel is auto-selected based on sender capabilities and recipient type. For email recipients, defaults to 'email'.
33 |
# File 'lib/zavudev/models/message_send_params.rb', line 33 optional :channel, enum: -> { Zavudev::Channel } |
#content ⇒ Zavudev::Models::MessageContent?
Additional content for non-text message types.
39 |
# File 'lib/zavudev/models/message_send_params.rb', line 39 optional :content, -> { Zavudev::MessageContent } |
#fallback_enabled ⇒ Boolean?
Whether to enable automatic fallback to SMS if WhatsApp fails. Defaults to true.
45 |
# File 'lib/zavudev/models/message_send_params.rb', line 45 optional :fallback_enabled, Zavudev::Internal::Type::Boolean, api_name: :fallbackEnabled |
#html_body ⇒ String?
HTML body for email messages. If provided, email will be sent as multipart with both text and HTML.
52 |
# File 'lib/zavudev/models/message_send_params.rb', line 52 optional :html_body, String, api_name: :htmlBody |
#idempotency_key ⇒ String?
Optional idempotency key to avoid duplicate sends.
58 |
# File 'lib/zavudev/models/message_send_params.rb', line 58 optional :idempotency_key, String, api_name: :idempotencyKey |
#message_type ⇒ Symbol, ...
Type of message. Defaults to 'text'.
64 |
# File 'lib/zavudev/models/message_send_params.rb', line 64 optional :message_type, enum: -> { Zavudev::MessageType }, api_name: :messageType |
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary metadata to associate with the message.
70 |
# File 'lib/zavudev/models/message_send_params.rb', line 70 optional :metadata, Zavudev::Internal::Type::HashOf[String] |
#reply_to ⇒ String?
Reply-To email address for email messages.
76 |
# File 'lib/zavudev/models/message_send_params.rb', line 76 optional :reply_to, String, api_name: :replyTo |
#subject ⇒ String?
Email subject line. Required when channel is 'email' or recipient is an email address.
83 |
# File 'lib/zavudev/models/message_send_params.rb', line 83 optional :subject, String |
#text ⇒ String?
Text body for text messages or caption for media messages.
89 |
# File 'lib/zavudev/models/message_send_params.rb', line 89 optional :text, String |
#to ⇒ String
Recipient phone number in E.164 format, email address, WhatsApp business-scoped
user ID (BSUID, e.g. US.13491208655302741918), or numeric chat ID (for
Telegram/Instagram/Messenger). A BSUID is routed to WhatsApp and sent via the
recipient field; use it to message a contact who adopted a username and whose
phone number is hidden.
18 |
# File 'lib/zavudev/models/message_send_params.rb', line 18 required :to, String |
#voice_language ⇒ String?
Language code for voice text-to-speech (e.g., 'en-US', 'es-ES', 'pt-BR'). If omitted, language is auto-detected from recipient's country code.
96 |
# File 'lib/zavudev/models/message_send_params.rb', line 96 optional :voice_language, String, api_name: :voiceLanguage |
#zavu_sender ⇒ String?
101 |
# File 'lib/zavudev/models/message_send_params.rb', line 101 optional :zavu_sender, String |
Instance Method Details
#to_hash ⇒ {
102 |
# File 'sig/zavudev/models/message_send_params.rbs', line 102
def to_hash: -> {
|