Class: Courier::Models::TopicDigestReleaseRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::TopicDigestReleaseRequest
- Defined in:
- lib/courier/models/topic_digest_release_request.rb,
sig/courier/models/topic_digest_release_request.rbs
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tenant_id ⇒ String?
The recipient's tenant, when they were sent to as part of one -- the same value returned as
tenant_idon a digest instance and sent asmessage.context.tenant_id. -
#user_id ⇒ String
The recipient whose digest to release.
Instance Method Summary collapse
-
#initialize(user_id:, tenant_id: nil) ⇒ TopicDigestReleaseRequest
constructor
Some parameter documentations has been truncated, see TopicDigestReleaseRequest for more details.
- #to_hash ⇒ { user_id: String, tenant_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(user_id:, tenant_id: nil) ⇒ TopicDigestReleaseRequest
Some parameter documentations has been truncated, see Courier::Models::TopicDigestReleaseRequest for more details.
Which recipient's held digest to release.
|
|
# File 'lib/courier/models/topic_digest_release_request.rb', line 24
|
Instance Attribute Details
#tenant_id ⇒ String?
The recipient's tenant, when they were sent to as part of one -- the same value
returned as tenant_id on a digest instance and sent as
message.context.tenant_id. It is part of the held digest's key, so a tenanted
recipient cannot be found without it. Omit for an ordinary recipient.
22 |
# File 'lib/courier/models/topic_digest_release_request.rb', line 22 optional :tenant_id, String |
#user_id ⇒ String
The recipient whose digest to release. Required: there is no "release everyone on this topic" form, because a whole-schedule flush already has its own endpoint and a body-shaped difference between one recipient and all of them is too easy to get wrong.
13 |
# File 'lib/courier/models/topic_digest_release_request.rb', line 13 required :user_id, String |
Instance Method Details
#to_hash ⇒ { user_id: String, tenant_id: String }
14 |
# File 'sig/courier/models/topic_digest_release_request.rbs', line 14
def to_hash: -> { user_id: String, tenant_id: String }
|