Class: Courier::Models::NotificationElementPutRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::NotificationElementPutRequest
- Defined in:
- lib/courier/models/notification_element_put_request.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #channels ⇒ Array<String>?
- #data ⇒ Hash{Symbol=>Object}?
- #if_ ⇒ String?
- #loop_ ⇒ String?
- #ref ⇒ String?
-
#state ⇒ Symbol, ...
Template state.
-
#type ⇒ String
Element type (text, meta, action, image, etc.).
Instance Method Summary collapse
-
#initialize(type:, channels: nil, data: nil, if_: nil, loop_: nil, ref: nil, state: nil) ⇒ Object
constructor
Request body for updating a single element.
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(type:, channels: nil, data: nil, if_: nil, loop_: nil, ref: nil, state: nil) ⇒ Object
Request body for updating a single element. Additional type-specific fields are allowed.
|
|
# File 'lib/courier/models/notification_element_put_request.rb', line 43
|
Instance Attribute Details
#channels ⇒ Array<String>?
15 |
# File 'lib/courier/models/notification_element_put_request.rb', line 15 optional :channels, Courier::Internal::Type::ArrayOf[String] |
#data ⇒ Hash{Symbol=>Object}?
20 |
# File 'lib/courier/models/notification_element_put_request.rb', line 20 optional :data, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown] |
#if_ ⇒ String?
25 |
# File 'lib/courier/models/notification_element_put_request.rb', line 25 optional :if_, String, api_name: :if |
#loop_ ⇒ String?
30 |
# File 'lib/courier/models/notification_element_put_request.rb', line 30 optional :loop_, String, api_name: :loop |
#ref ⇒ String?
35 |
# File 'lib/courier/models/notification_element_put_request.rb', line 35 optional :ref, String |
#state ⇒ Symbol, ...
Template state. Defaults to DRAFT.
41 |
# File 'lib/courier/models/notification_element_put_request.rb', line 41 optional :state, enum: -> { Courier::NotificationTemplateState } |
#type ⇒ String
Element type (text, meta, action, image, etc.).
10 |
# File 'lib/courier/models/notification_element_put_request.rb', line 10 required :type, String |