Class: Courier::Models::SendMessageResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::SendMessageResponse
- Defined in:
- lib/courier/models/send_message_response.rb,
sig/courier/models/send_message_response.rbs
Overview
Instance Attribute Summary collapse
-
#request_id ⇒ String
A successful call to
POST /sendreturns a202status code along with arequestIdin the response body.
Instance Method Summary collapse
-
#initialize(request_id:) ⇒ SendMessageResponse
constructor
Some parameter documentations has been truncated, see SendMessageResponse for more details.
- #to_hash ⇒ { request_id: String }
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(request_id:) ⇒ SendMessageResponse
Some parameter documentations has been truncated, see Courier::Models::SendMessageResponse for more details.
|
|
# File 'lib/courier/models/send_message_response.rb', line 16
|
Instance Attribute Details
#request_id ⇒ String
A successful call to POST /send returns a 202 status code along with a
requestId in the response body. For single-recipient requests, the requestId
is the derived message_id. For multiple recipients, Courier assigns a unique
message_id to each derived message.
14 |
# File 'lib/courier/models/send_message_response.rb', line 14 required :request_id, String, api_name: :requestId |
Instance Method Details
#to_hash ⇒ { request_id: String }
10 |
# File 'sig/courier/models/send_message_response.rbs', line 10
def to_hash: -> { request_id: String }
|