Class: Courier::Models::NotificationTemplatePayload
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::NotificationTemplatePayload
- Defined in:
- lib/courier/models/notification_template_payload.rb
Direct Known Subclasses
Courier::Models::NotificationTemplateGetResponse::Notification
Defined Under Namespace
Classes: Brand, Routing, Subscription
Instance Attribute Summary collapse
-
#brand ⇒ Courier::Models::NotificationTemplatePayload::Brand?
Brand reference, or null for no brand.
-
#content ⇒ Courier::Models::ElementalContent
Elemental content definition.
-
#name ⇒ String
Display name for the template.
-
#routing ⇒ Courier::Models::NotificationTemplatePayload::Routing?
Routing strategy reference, or null for none.
-
#subscription ⇒ Courier::Models::NotificationTemplatePayload::Subscription?
Subscription topic reference, or null for none.
-
#tags ⇒ Array<String>
Tags for categorization.
Instance Method Summary collapse
-
#initialize(strategy_id:) ⇒ Object
constructor
Routing strategy reference, or null for none.
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(strategy_id:) ⇒ Object
Routing strategy reference, or null for none.
|
|
# File 'lib/courier/models/notification_template_payload.rb', line 42
|
Instance Attribute Details
#brand ⇒ Courier::Models::NotificationTemplatePayload::Brand?
Brand reference, or null for no brand.
10 |
# File 'lib/courier/models/notification_template_payload.rb', line 10 required :brand, -> { Courier::NotificationTemplatePayload::Brand }, nil?: true |
#content ⇒ Courier::Models::ElementalContent
Elemental content definition.
16 |
# File 'lib/courier/models/notification_template_payload.rb', line 16 required :content, -> { Courier::ElementalContent } |
#name ⇒ String
Display name for the template.
22 |
# File 'lib/courier/models/notification_template_payload.rb', line 22 required :name, String |
#routing ⇒ Courier::Models::NotificationTemplatePayload::Routing?
Routing strategy reference, or null for none.
28 |
# File 'lib/courier/models/notification_template_payload.rb', line 28 required :routing, -> { Courier::NotificationTemplatePayload::Routing }, nil?: true |
#subscription ⇒ Courier::Models::NotificationTemplatePayload::Subscription?
Subscription topic reference, or null for none.
34 |
# File 'lib/courier/models/notification_template_payload.rb', line 34 required :subscription, -> { Courier::NotificationTemplatePayload::Subscription }, nil?: true |