Class: Courier::Models::NotificationTemplateGetResponse

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

Overview

Defined Under Namespace

Modules: State Classes: Notification

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(id:) ⇒ Object

Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope.

Parameters:

  • id (String)

    The template ID.



# File 'lib/courier/models/notification_template_get_response.rb', line 44

Instance Attribute Details

#createdInteger

Epoch milliseconds when the template was created.

Returns:

  • (Integer)


11
# File 'lib/courier/models/notification_template_get_response.rb', line 11

required :created, Integer

#creatorString

User ID of the creator.

Returns:

  • (String)


17
# File 'lib/courier/models/notification_template_get_response.rb', line 17

required :creator, String

#notificationCourier::Models::NotificationTemplateGetResponse::Notification

Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope.



24
# File 'lib/courier/models/notification_template_get_response.rb', line 24

required :notification, -> { Courier::NotificationTemplateGetResponse::Notification }

#stateSymbol, Courier::Models::NotificationTemplateGetResponse::State

The template state. Always uppercase.



30
# File 'lib/courier/models/notification_template_get_response.rb', line 30

required :state, enum: -> { Courier::NotificationTemplateGetResponse::State }

#updatedInteger?

Epoch milliseconds of last update.

Returns:

  • (Integer, nil)


36
# File 'lib/courier/models/notification_template_get_response.rb', line 36

optional :updated, Integer

#updaterString?

User ID of the last updater.

Returns:

  • (String, nil)


42
# File 'lib/courier/models/notification_template_get_response.rb', line 42

optional :updater, String