Class: Courier::Models::TenantTemplateInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/tenant_template_input.rb

Defined Under Namespace

Classes: Channel, Provider

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

#initialize(channel: nil, provider: nil) ⇒ Object

Parameters:

  • channel (Integer, nil) (defaults to: nil)
  • provider (Integer, nil) (defaults to: nil)


# File 'lib/courier/models/tenant_template_input.rb', line 141


Instance Attribute Details

#channelsHash{Symbol=>Courier::Models::TenantTemplateInput::Channel}?

Channel-specific delivery configuration (email, SMS, push, etc.)

Returns:



16
# File 'lib/courier/models/tenant_template_input.rb', line 16

optional :channels, -> { Courier::Internal::Type::HashOf[Courier::TenantTemplateInput::Channel] }

#contentCourier::Models::ElementalContent

Template content configuration including blocks, elements, and message structure



10
# File 'lib/courier/models/tenant_template_input.rb', line 10

required :content, -> { Courier::ElementalContent }

#providersHash{Symbol=>Courier::Models::TenantTemplateInput::Provider}?

Provider-specific delivery configuration for routing to specific email/SMS providers

Returns:



23
# File 'lib/courier/models/tenant_template_input.rb', line 23

optional :providers, -> { Courier::Internal::Type::HashOf[Courier::TenantTemplateInput::Provider] }

#routingCourier::Models::MessageRouting?

Message routing configuration for multi-channel delivery strategies



29
# File 'lib/courier/models/tenant_template_input.rb', line 29

optional :routing, -> { Courier::MessageRouting }