Class: Courier::Models::SendMessageParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::SendMessageParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/courier/models/send_message_params.rb,
sig/courier/models/send_message_params.rbs
Overview
Defined Under Namespace
Classes: Message
Instance Attribute Summary collapse
- #idempotency_key ⇒ String?
-
#message ⇒ Courier::Models::SendMessageParams::Message
The message property has the following primary top-level properties.
- #x_idempotency_expiration ⇒ String?
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize ⇒ SendMessageParams
constructor
A new instance of SendMessageParams.
- #to_hash ⇒ { message: Courier::SendMessageParams::Message, idempotency_key: String, x_idempotency_expiration: String, request_options: Courier::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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 ⇒ SendMessageParams
Returns a new instance of SendMessageParams.
25 26 27 28 29 30 |
# File 'sig/courier/models/send_message_params.rbs', line 25
def initialize: (
message: Courier::SendMessageParams::Message,
?idempotency_key: String,
?x_idempotency_expiration: String,
?request_options: Courier::request_opts
) -> void
|
Instance Attribute Details
#idempotency_key ⇒ String?
20 |
# File 'lib/courier/models/send_message_params.rb', line 20 optional :idempotency_key, String |
#message ⇒ Courier::Models::SendMessageParams::Message
The message property has the following primary top-level properties. They define the destination and content of the message.
15 |
# File 'lib/courier/models/send_message_params.rb', line 15 required :message, -> { Courier::SendMessageParams::Message } |
#x_idempotency_expiration ⇒ String?
25 |
# File 'lib/courier/models/send_message_params.rb', line 25 optional :x_idempotency_expiration, String |
Instance Method Details
#to_hash ⇒ { message: Courier::SendMessageParams::Message, idempotency_key: String, x_idempotency_expiration: String, request_options: Courier::RequestOptions }
32 33 34 35 36 37 |
# File 'sig/courier/models/send_message_params.rbs', line 32
def to_hash: -> {
message: Courier::SendMessageParams::Message,
idempotency_key: String,
x_idempotency_expiration: String,
request_options: Courier::RequestOptions
}
|