Class: Trycourier::Models::InboundBulkMessageUser
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Trycourier::Models::InboundBulkMessageUser
- Defined in:
- lib/trycourier/models/inbound_bulk_message_user.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object?
User-specific data that will be merged with message.data.
- #preferences ⇒ Trycourier::Models::RecipientPreferences?
-
#profile ⇒ Hash{Symbol=>Object}?
User profile information.
-
#recipient ⇒ String?
User ID (legacy field, use profile or to.user_id instead).
-
#to ⇒ Trycourier::Models::UserRecipient?
Optional recipient information.
Instance Method Summary collapse
-
#initialize(data: nil, preferences: nil, profile: nil, recipient: nil, to: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see InboundBulkMessageUser for more details.
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(data: nil, preferences: nil, profile: nil, recipient: nil, to: nil) ⇒ Object
Some parameter documentations has been truncated, see Trycourier::Models::InboundBulkMessageUser for more details.
|
|
# File 'lib/trycourier/models/inbound_bulk_message_user.rb', line 39
|
Instance Attribute Details
#data ⇒ Object?
User-specific data that will be merged with message.data
10 |
# File 'lib/trycourier/models/inbound_bulk_message_user.rb', line 10 optional :data, Trycourier::Internal::Type::Unknown |
#preferences ⇒ Trycourier::Models::RecipientPreferences?
15 |
# File 'lib/trycourier/models/inbound_bulk_message_user.rb', line 15 optional :preferences, -> { Trycourier::RecipientPreferences }, nil?: true |
#profile ⇒ Hash{Symbol=>Object}?
User profile information. For email-based bulk jobs, profile.email is required for provider routing to determine if the message can be delivered. The email address should be provided here rather than in to.email.
23 |
# File 'lib/trycourier/models/inbound_bulk_message_user.rb', line 23 optional :profile, Trycourier::Internal::Type::HashOf[Trycourier::Internal::Type::Unknown], nil?: true |
#recipient ⇒ String?
User ID (legacy field, use profile or to.user_id instead)
29 |
# File 'lib/trycourier/models/inbound_bulk_message_user.rb', line 29 optional :recipient, String, nil?: true |
#to ⇒ Trycourier::Models::UserRecipient?
Optional recipient information. Note: For email provider routing, use profile.email instead of to.email. The to field is primarily used for recipient identification and data merging.
37 |
# File 'lib/trycourier/models/inbound_bulk_message_user.rb', line 37 optional :to, -> { Trycourier::UserRecipient }, nil?: true |