Class: Courier::Models::UserProfile
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::UserProfile
- Defined in:
- lib/courier/models/user_profile.rb,
sig/courier/models/user_profile.rbs
Defined Under Namespace
Classes: Address
Instance Attribute Summary collapse
- #address ⇒ Courier::Models::UserProfile::Address?
- #airship ⇒ Courier::Models::AirshipProfile?
-
#apn ⇒ Courier::Models::Token, ...
Apple Push Notification device tokens.
-
#aws_sns ⇒ Courier::Models::AwsSns?
Routes a push notification through the AWS SNS provider.
- #birthdate ⇒ String?
-
#custom ⇒ Hash{Symbol=>Object}?
A free form object.
- #discord ⇒ Courier::Models::SendToChannel, ...
- #email ⇒ String?
- #email_verified ⇒ Boolean?
-
#expo ⇒ Courier::Models::Token, ...
Expo push tokens.
- #facebook_psid ⇒ String?
- #family_name ⇒ String?
- #firebase_token ⇒ String, ...
- #gender ⇒ String?
- #given_name ⇒ String?
- #intercom ⇒ Courier::Models::Intercom?
- #locale ⇒ String?
- #middle_name ⇒ String?
-
#ms_teams ⇒ Courier::Models::SendToMsTeamsUserID, ...
Provide at least one of
tenant_idorservice_url. - #name ⇒ String?
- #nickname ⇒ String?
- #phone_number ⇒ String?
- #phone_number_verified ⇒ Boolean?
- #picture ⇒ String?
- #preferred_name ⇒ String?
- #profile ⇒ String?
- #slack ⇒ Courier::Models::SendToSlackChannel, ...
- #sub ⇒ String?
- #updated_at ⇒ String?
- #website ⇒ String?
- #zoneinfo ⇒ String?
Instance Method Summary collapse
-
#initialize(address: nil, airship: nil, apn: nil, aws_sns: nil, birthdate: nil, custom: nil, discord: nil, email: nil, email_verified: nil, expo: nil, facebook_psid: nil, family_name: nil, firebase_token: nil, gender: nil, given_name: nil, intercom: nil, locale: nil, middle_name: nil, ms_teams: nil, name: nil, nickname: nil, phone_number: nil, phone_number_verified: nil, picture: nil, preferred_name: nil, profile: nil, slack: nil, sub: nil, updated_at: nil, website: nil, zoneinfo: nil) ⇒ UserProfile
constructor
Some parameter documentations has been truncated, see UserProfile for more details.
- #to_hash ⇒ { address: Courier::UserProfile::Address?, airship: Courier::AirshipProfile?, apn: Courier::Models::apn?, aws_sns: Courier::AwsSns?, birthdate: String?, custom: ::Hash[Symbol, top]?, discord: Courier::Models::discord?, email: String?, email_verified: bool?, expo: Courier::Models::expo?, facebook_psid: String?, family_name: String?, firebase_token: Courier::Models::user_profile_firebase_token?, gender: String?, given_name: String?, intercom: Courier::Intercom?, locale: String?, middle_name: String?, ms_teams: Courier::Models::ms_teams?, name: String?, nickname: String?, phone_number: String?, phone_number_verified: bool?, picture: String?, preferred_name: String?, profile: String?, slack: Courier::Models::slack?, sub: String?, updated_at: String?, website: String?, zoneinfo: 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(address: nil, airship: nil, apn: nil, aws_sns: nil, birthdate: nil, custom: nil, discord: nil, email: nil, email_verified: nil, expo: nil, facebook_psid: nil, family_name: nil, firebase_token: nil, gender: nil, given_name: nil, intercom: nil, locale: nil, middle_name: nil, ms_teams: nil, name: nil, nickname: nil, phone_number: nil, phone_number_verified: nil, picture: nil, preferred_name: nil, profile: nil, slack: nil, sub: nil, updated_at: nil, website: nil, zoneinfo: nil) ⇒ UserProfile
Some parameter documentations has been truncated, see Courier::Models::UserProfile for more details.
|
|
# File 'lib/courier/models/user_profile.rb', line 175
|
Instance Attribute Details
#address ⇒ Courier::Models::UserProfile::Address?
9 |
# File 'lib/courier/models/user_profile.rb', line 9 optional :address, -> { Courier::UserProfile::Address }, nil?: true |
#airship ⇒ Courier::Models::AirshipProfile?
14 |
# File 'lib/courier/models/user_profile.rb', line 14 optional :airship, -> { Courier::AirshipProfile }, nil?: true |
#apn ⇒ Courier::Models::Token, ...
Apple Push Notification device tokens. Supply either a single token or a
tokens value. A bare string is rejected by the provider — the token must be
wrapped in this object.
22 |
# File 'lib/courier/models/user_profile.rb', line 22 optional :apn, union: -> { Courier::Apn }, nil?: true |
#aws_sns ⇒ Courier::Models::AwsSns?
Routes a push notification through the AWS SNS provider. The target ARN must be
nested under aws_sns — a top-level target_arn on the profile is ignored by
the provider.
30 |
# File 'lib/courier/models/user_profile.rb', line 30 optional :aws_sns, -> { Courier::AwsSns }, nil?: true |
#birthdate ⇒ String?
35 |
# File 'lib/courier/models/user_profile.rb', line 35 optional :birthdate, String, nil?: true |
#custom ⇒ Hash{Symbol=>Object}?
A free form object. Due to a limitation of the API Explorer, you can only enter string key/values below, but this API accepts more complex object structures.
42 |
# File 'lib/courier/models/user_profile.rb', line 42 optional :custom, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true |
#discord ⇒ Courier::Models::SendToChannel, ...
47 |
# File 'lib/courier/models/user_profile.rb', line 47 optional :discord, union: -> { Courier::Discord }, nil?: true |
#email ⇒ String?
52 |
# File 'lib/courier/models/user_profile.rb', line 52 optional :email, String, nil?: true |
#email_verified ⇒ Boolean?
57 |
# File 'lib/courier/models/user_profile.rb', line 57 optional :email_verified, Courier::Internal::Type::Boolean, nil?: true |
#expo ⇒ Courier::Models::Token, ...
Expo push tokens. Supply either a single token or a tokens value.
63 |
# File 'lib/courier/models/user_profile.rb', line 63 optional :expo, union: -> { Courier::Expo }, nil?: true |
#facebook_psid ⇒ String?
68 |
# File 'lib/courier/models/user_profile.rb', line 68 optional :facebook_psid, String, api_name: :facebookPSID, nil?: true |
#family_name ⇒ String?
73 |
# File 'lib/courier/models/user_profile.rb', line 73 optional :family_name, String, nil?: true |
#firebase_token ⇒ String, ...
78 79 80 81 |
# File 'lib/courier/models/user_profile.rb', line 78 optional :firebase_token, union: -> { Courier::UserProfileFirebaseToken }, api_name: :firebaseToken, nil?: true |
#gender ⇒ String?
86 |
# File 'lib/courier/models/user_profile.rb', line 86 optional :gender, String, nil?: true |
#given_name ⇒ String?
91 |
# File 'lib/courier/models/user_profile.rb', line 91 optional :given_name, String, nil?: true |
#intercom ⇒ Courier::Models::Intercom?
96 |
# File 'lib/courier/models/user_profile.rb', line 96 optional :intercom, -> { Courier::Intercom }, nil?: true |
#locale ⇒ String?
101 |
# File 'lib/courier/models/user_profile.rb', line 101 optional :locale, String, nil?: true |
#middle_name ⇒ String?
106 |
# File 'lib/courier/models/user_profile.rb', line 106 optional :middle_name, String, nil?: true |
#ms_teams ⇒ Courier::Models::SendToMsTeamsUserID, ...
Provide at least one of tenant_id or service_url. If you provide both, they
must agree.
113 |
# File 'lib/courier/models/user_profile.rb', line 113 optional :ms_teams, union: -> { Courier::MsTeams }, nil?: true |
#name ⇒ String?
118 |
# File 'lib/courier/models/user_profile.rb', line 118 optional :name, String, nil?: true |
#nickname ⇒ String?
123 |
# File 'lib/courier/models/user_profile.rb', line 123 optional :nickname, String, nil?: true |
#phone_number ⇒ String?
128 |
# File 'lib/courier/models/user_profile.rb', line 128 optional :phone_number, String, nil?: true |
#phone_number_verified ⇒ Boolean?
133 |
# File 'lib/courier/models/user_profile.rb', line 133 optional :phone_number_verified, Courier::Internal::Type::Boolean, nil?: true |
#picture ⇒ String?
138 |
# File 'lib/courier/models/user_profile.rb', line 138 optional :picture, String, nil?: true |
#preferred_name ⇒ String?
143 |
# File 'lib/courier/models/user_profile.rb', line 143 optional :preferred_name, String, nil?: true |
#profile ⇒ String?
148 |
# File 'lib/courier/models/user_profile.rb', line 148 optional :profile, String, nil?: true |
#slack ⇒ Courier::Models::SendToSlackChannel, ...
153 |
# File 'lib/courier/models/user_profile.rb', line 153 optional :slack, union: -> { Courier::Slack }, nil?: true |
#sub ⇒ String?
158 |
# File 'lib/courier/models/user_profile.rb', line 158 optional :sub, String, nil?: true |
#updated_at ⇒ String?
163 |
# File 'lib/courier/models/user_profile.rb', line 163 optional :updated_at, String, nil?: true |
#website ⇒ String?
168 |
# File 'lib/courier/models/user_profile.rb', line 168 optional :website, String, nil?: true |
#zoneinfo ⇒ String?
173 |
# File 'lib/courier/models/user_profile.rb', line 173 optional :zoneinfo, String, nil?: true |
Instance Method Details
#to_hash ⇒ { address: Courier::UserProfile::Address?, airship: Courier::AirshipProfile?, apn: Courier::Models::apn?, aws_sns: Courier::AwsSns?, birthdate: String?, custom: ::Hash[Symbol, top]?, discord: Courier::Models::discord?, email: String?, email_verified: bool?, expo: Courier::Models::expo?, facebook_psid: String?, family_name: String?, firebase_token: Courier::Models::user_profile_firebase_token?, gender: String?, given_name: String?, intercom: Courier::Intercom?, locale: String?, middle_name: String?, ms_teams: Courier::Models::ms_teams?, name: String?, nickname: String?, phone_number: String?, phone_number_verified: bool?, picture: String?, preferred_name: String?, profile: String?, slack: Courier::Models::slack?, sub: String?, updated_at: String?, website: String?, zoneinfo: String? }
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'sig/courier/models/user_profile.rbs', line 135
def to_hash: -> {
address: Courier::UserProfile::Address?,
airship: Courier::AirshipProfile?,
apn: Courier::Models::apn?,
aws_sns: Courier::AwsSns?,
birthdate: String?,
custom: ::Hash[Symbol, top]?,
discord: Courier::Models::discord?,
email: String?,
email_verified: bool?,
expo: Courier::Models::expo?,
facebook_psid: String?,
family_name: String?,
firebase_token: Courier::Models::user_profile_firebase_token?,
gender: String?,
given_name: String?,
intercom: Courier::Intercom?,
locale: String?,
middle_name: String?,
ms_teams: Courier::Models::ms_teams?,
name: String?,
nickname: String?,
phone_number: String?,
phone_number_verified: bool?,
picture: String?,
preferred_name: String?,
profile: String?,
slack: Courier::Models::slack?,
sub: String?,
updated_at: String?,
website: String?,
zoneinfo: String?
}
|