Class: Courier::Models::SendMessageParams

Inherits:
Internal::Type::BaseModel show all
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

See Also:

  • Courier::Resources::Send#message

Defined Under Namespace

Classes: Message

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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.

Parameters:

  • message: (Courier::SendMessageParams::Message)
  • idempotency_key: (String)
  • x_idempotency_expiration: (String)
  • request_options: (Courier::request_opts)


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?

Parameters:

  • (String)

Returns:

  • (String, nil)


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.

Parameters:

  • value (Courier::SendMessageParams::Message)

Returns:



15
# File 'lib/courier/models/send_message_params.rb', line 15

required :message, -> { Courier::SendMessageParams::Message }

#x_idempotency_expiration ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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 }

Returns:

  • ({ 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
}