Class: Courier::Models::Users::PreferenceBulkUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::Users::PreferenceBulkUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/courier/models/users/preference_bulk_update_params.rb,
sig/courier/models/users/preference_bulk_update_params.rbs
Overview
Defined Under Namespace
Classes: Topic
Instance Attribute Summary collapse
- #idempotency_key ⇒ String?
-
#tenant_id ⇒ String?
Update the preferences of a user for this specific tenant context.
-
#topics ⇒ Array<Courier::Models::Users::PreferenceBulkUpdateParams::Topic>
The topics to create or update.
- #user_id ⇒ String
- #x_idempotency_expiration ⇒ String?
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize ⇒ PreferenceBulkUpdateParams
constructor
A new instance of PreferenceBulkUpdateParams.
- #to_hash ⇒ { user_id: String, topics: ::Array[Courier::Users::PreferenceBulkUpdateParams::Topic], tenant_id: String?, 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 ⇒ PreferenceBulkUpdateParams
Returns a new instance of PreferenceBulkUpdateParams.
32 33 34 35 36 37 38 39 |
# File 'sig/courier/models/users/preference_bulk_update_params.rbs', line 32
def initialize: (
user_id: String,
topics: ::Array[Courier::Users::PreferenceBulkUpdateParams::Topic],
?tenant_id: String?,
?idempotency_key: String,
?x_idempotency_expiration: String,
?request_options: Courier::request_opts
) -> void
|
Instance Attribute Details
#idempotency_key ⇒ String?
33 |
# File 'lib/courier/models/users/preference_bulk_update_params.rb', line 33 optional :idempotency_key, String |
#tenant_id ⇒ String?
Update the preferences of a user for this specific tenant context.
28 |
# File 'lib/courier/models/users/preference_bulk_update_params.rb', line 28 optional :tenant_id, String, nil?: true |
#topics ⇒ Array<Courier::Models::Users::PreferenceBulkUpdateParams::Topic>
The topics to create or update. Between 1 and 50 topics may be provided in a single request.
21 22 |
# File 'lib/courier/models/users/preference_bulk_update_params.rb', line 21 required :topics, -> { Courier::Internal::Type::ArrayOf[Courier::Users::PreferenceBulkUpdateParams::Topic] } |
#user_id ⇒ String
14 |
# File 'lib/courier/models/users/preference_bulk_update_params.rb', line 14 required :user_id, String |
#x_idempotency_expiration ⇒ String?
38 |
# File 'lib/courier/models/users/preference_bulk_update_params.rb', line 38 optional :x_idempotency_expiration, String |
Instance Method Details
#to_hash ⇒ { user_id: String, topics: ::Array[Courier::Users::PreferenceBulkUpdateParams::Topic], tenant_id: String?, idempotency_key: String, x_idempotency_expiration: String, request_options: Courier::RequestOptions }
41 42 43 44 45 46 47 48 |
# File 'sig/courier/models/users/preference_bulk_update_params.rbs', line 41
def to_hash: -> {
user_id: String,
topics: ::Array[Courier::Users::PreferenceBulkUpdateParams::Topic],
tenant_id: String?,
idempotency_key: String,
x_idempotency_expiration: String,
request_options: Courier::RequestOptions
}
|