Class: Sentdm::Models::TemplateEventPayload
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Sentdm::Models::TemplateEventPayload
- Defined in:
- lib/sentdm/models/template_event_payload.rb,
sig/sentdm/models/template_event_payload.rbs
Instance Attribute Summary collapse
-
#account_id ⇒ String?
The account the template belongs to.
-
#category ⇒ String?
The template's category, for example UTILITY, MARKETING, or AUTHENTICATION.
-
#channel ⇒ String?
The channel the template applies to.
-
#language ⇒ String?
The template's language code, for example en_US.
-
#reason ⇒ String?
Why the template reached Status, when a reason was given.
-
#status ⇒ String?
The review status the template just reached, for example APPROVED or REJECTED.
-
#template_id ⇒ String?
The template in Sent.
-
#template_name ⇒ String?
The template's display name.
-
#whatsapp_template_id ⇒ String?
The template's identifier with Meta, assigned when the template is submitted for review.
Instance Method Summary collapse
-
#initialize(account_id: nil, category: nil, channel: nil, language: nil, reason: nil, status: nil, template_id: nil, template_name: nil, whatsapp_template_id: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TemplateEventPayload for more details.
- #to_hash ⇒ {
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(account_id: nil, category: nil, channel: nil, language: nil, reason: nil, status: nil, template_id: nil, template_name: nil, whatsapp_template_id: nil) ⇒ Object
Some parameter documentations has been truncated, see Sentdm::Models::TemplateEventPayload for more details.
Body of a template status event. Delivered when a template's review outcome changes, so you can react without polling.
|
|
# File 'lib/sentdm/models/template_event_payload.rb', line 62
|
Instance Attribute Details
#account_id ⇒ String?
The account the template belongs to.
10 |
# File 'lib/sentdm/models/template_event_payload.rb', line 10 optional :account_id, String |
#category ⇒ String?
The template's category, for example UTILITY, MARKETING, or AUTHENTICATION.
16 |
# File 'lib/sentdm/models/template_event_payload.rb', line 16 optional :category, String |
#channel ⇒ String?
The channel the template applies to.
22 |
# File 'lib/sentdm/models/template_event_payload.rb', line 22 optional :channel, String |
#language ⇒ String?
The template's language code, for example en_US.
28 |
# File 'lib/sentdm/models/template_event_payload.rb', line 28 optional :language, String |
#reason ⇒ String?
Why the template reached Status, when a reason was given. Populated on a rejection.
35 |
# File 'lib/sentdm/models/template_event_payload.rb', line 35 optional :reason, String, nil?: true |
#status ⇒ String?
The review status the template just reached, for example APPROVED or REJECTED.
41 |
# File 'lib/sentdm/models/template_event_payload.rb', line 41 optional :status, String |
#template_id ⇒ String?
The template in Sent.
47 |
# File 'lib/sentdm/models/template_event_payload.rb', line 47 optional :template_id, String |
#template_name ⇒ String?
The template's display name.
53 |
# File 'lib/sentdm/models/template_event_payload.rb', line 53 optional :template_name, String |
#whatsapp_template_id ⇒ String?
The template's identifier with Meta, assigned when the template is submitted for review.
60 |
# File 'lib/sentdm/models/template_event_payload.rb', line 60 optional :whatsapp_template_id, String |
Instance Method Details
#to_hash ⇒ {
63 |
# File 'sig/sentdm/models/template_event_payload.rbs', line 63
def to_hash: -> {
|