Class: Knockapi::Models::InlineIdentifyUserRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::InlineIdentifyUserRequest
- Defined in:
- lib/knockapi/models/inline_identify_user_request.rb
Instance Attribute Summary collapse
-
#avatar ⇒ String?
A URL for the avatar of the user.
-
#channel_data ⇒ Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}?
A request to set channel data for a type of channel inline.
-
#created_at ⇒ Time?
The creation date of the user from your system.
-
#email ⇒ String?
The primary email address for the user.
-
#id ⇒ String
The unique identifier of the user.
-
#locale ⇒ String?
The locale of the user.
-
#name ⇒ String?
Display name of the user.
-
#phone_number ⇒ String?
The (www.twilio.com/docs/glossary/what-e164) phone number of the user (required for SMS channels).
-
#preferences ⇒ Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}?
Inline set preferences for a recipient, where the key is the preference set id.
-
#timezone ⇒ String?
The timezone of the user.
Instance Method Summary collapse
-
#initialize(id:, avatar: nil, channel_data: nil, created_at: nil, email: nil, locale: nil, name: nil, phone_number: nil, preferences: nil, timezone: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see InlineIdentifyUserRequest for more details.
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(id:, avatar: nil, channel_data: nil, created_at: nil, email: nil, locale: nil, name: nil, phone_number: nil, preferences: nil, timezone: nil) ⇒ Object
Some parameter documentations has been truncated, see Knockapi::Models::InlineIdentifyUserRequest for more details.
A set of parameters to inline-identify a user with. Inline identifying the user will ensure that the user is available before the request is executed in Knock. It will perform an upsert for the user you’re supplying, replacing any properties specified.
|
|
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 78
|
Instance Attribute Details
#avatar ⇒ String?
A URL for the avatar of the user.
16 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 16 optional :avatar, String, nil?: true |
#channel_data ⇒ Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}?
A request to set channel data for a type of channel inline.
22 23 24 25 26 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 22 optional :channel_data, -> { Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::InlineChannelDataRequestItem] }, nil?: true |
#created_at ⇒ Time?
The creation date of the user from your system.
32 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 32 optional :created_at, Time, nil?: true |
#email ⇒ String?
The primary email address for the user.
38 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 38 optional :email, String, nil?: true |
#id ⇒ String
The unique identifier of the user.
10 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 10 required :id, String |
#locale ⇒ String?
The locale of the user. Used for [message localization](/concepts/translations).
44 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 44 optional :locale, String, nil?: true |
#name ⇒ String?
Display name of the user.
50 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 50 optional :name, String, nil?: true |
#phone_number ⇒ String?
The (www.twilio.com/docs/glossary/what-e164) phone number of the user (required for SMS channels).
57 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 57 optional :phone_number, String, nil?: true |
#preferences ⇒ Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}?
Inline set preferences for a recipient, where the key is the preference set id. Preferences that are set inline will be merged into any existing preferences rather than replacing them.
65 66 67 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 65 optional :preferences, -> { Knockapi::Internal::Type::HashOf[Knockapi::Recipients::PreferenceSetRequest] }, nil?: true |
#timezone ⇒ String?
The timezone of the user. Must be a valid [tz database time zone string](en.wikipedia.org/wiki/List_of_tz_database_time_zones). Used for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
76 |
# File 'lib/knockapi/models/inline_identify_user_request.rb', line 76 optional :timezone, String, nil?: true |