Class: Courier::Models::UserProfile
Defined Under Namespace
Classes: Address
Instance Attribute Summary collapse
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) ⇒ Object
constructor
Some parameter documentations has been truncated, see UserProfile for more details.
-
#to_hash ⇒ {
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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) ⇒ Object
|
# File 'lib/courier/models/user_profile.rb', line 169
|
Instance Attribute Details
9
|
# File 'lib/courier/models/user_profile.rb', line 9
optional :address, -> { Courier::UserProfile::Address }, nil?: true
|
14
|
# File 'lib/courier/models/user_profile.rb', line 14
optional :airship, -> { Courier::AirshipProfile }, nil?: true
|
#apn ⇒ String?
19
|
# File 'lib/courier/models/user_profile.rb', line 19
optional :apn, String, nil?: true
|
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.
27
|
# File 'lib/courier/models/user_profile.rb', line 27
optional :aws_sns, -> { Courier::AwsSns }, nil?: true
|
#birthdate ⇒ String?
32
|
# File 'lib/courier/models/user_profile.rb', line 32
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.
39
|
# File 'lib/courier/models/user_profile.rb', line 39
optional :custom, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true
|
44
|
# File 'lib/courier/models/user_profile.rb', line 44
optional :discord, union: -> { Courier::Discord }, nil?: true
|
#email ⇒ String?
49
|
# File 'lib/courier/models/user_profile.rb', line 49
optional :email, String, nil?: true
|
#email_verified ⇒ Boolean?
54
|
# File 'lib/courier/models/user_profile.rb', line 54
optional :email_verified, Courier::Internal::Type::Boolean, nil?: true
|
59
|
# File 'lib/courier/models/user_profile.rb', line 59
optional :expo, union: -> { Courier::Expo }, nil?: true
|
#facebook_psid ⇒ String?
64
|
# File 'lib/courier/models/user_profile.rb', line 64
optional :facebook_psid, String, api_name: :facebookPSID, nil?: true
|
#family_name ⇒ String?
69
|
# File 'lib/courier/models/user_profile.rb', line 69
optional :family_name, String, nil?: true
|
#firebase_token ⇒ String, ...
74
75
76
77
|
# File 'lib/courier/models/user_profile.rb', line 74
optional :firebase_token,
union: -> { Courier::UserProfileFirebaseToken },
api_name: :firebaseToken,
nil?: true
|
#gender ⇒ String?
82
|
# File 'lib/courier/models/user_profile.rb', line 82
optional :gender, String, nil?: true
|
#given_name ⇒ String?
87
|
# File 'lib/courier/models/user_profile.rb', line 87
optional :given_name, String, nil?: true
|
92
|
# File 'lib/courier/models/user_profile.rb', line 92
optional :intercom, -> { Courier::Intercom }, nil?: true
|
#locale ⇒ String?
97
|
# File 'lib/courier/models/user_profile.rb', line 97
optional :locale, String, nil?: true
|
#middle_name ⇒ String?
102
|
# File 'lib/courier/models/user_profile.rb', line 102
optional :middle_name, String, nil?: true
|
107
|
# File 'lib/courier/models/user_profile.rb', line 107
optional :ms_teams, union: -> { Courier::MsTeams }, nil?: true
|
#name ⇒ String?
112
|
# File 'lib/courier/models/user_profile.rb', line 112
optional :name, String, nil?: true
|
#nickname ⇒ String?
117
|
# File 'lib/courier/models/user_profile.rb', line 117
optional :nickname, String, nil?: true
|
#phone_number ⇒ String?
122
|
# File 'lib/courier/models/user_profile.rb', line 122
optional :phone_number, String, nil?: true
|
#phone_number_verified ⇒ Boolean?
127
|
# File 'lib/courier/models/user_profile.rb', line 127
optional :phone_number_verified, Courier::Internal::Type::Boolean, nil?: true
|
#picture ⇒ String?
132
|
# File 'lib/courier/models/user_profile.rb', line 132
optional :picture, String, nil?: true
|
#preferred_name ⇒ String?
137
|
# File 'lib/courier/models/user_profile.rb', line 137
optional :preferred_name, String, nil?: true
|
#profile ⇒ String?
142
|
# File 'lib/courier/models/user_profile.rb', line 142
optional :profile, String, nil?: true
|
147
|
# File 'lib/courier/models/user_profile.rb', line 147
optional :slack, union: -> { Courier::Slack }, nil?: true
|
#sub ⇒ String?
152
|
# File 'lib/courier/models/user_profile.rb', line 152
optional :sub, String, nil?: true
|
#updated_at ⇒ String?
157
|
# File 'lib/courier/models/user_profile.rb', line 157
optional :updated_at, String, nil?: true
|
#website ⇒ String?
162
|
# File 'lib/courier/models/user_profile.rb', line 162
optional :website, String, nil?: true
|
#zoneinfo ⇒ String?
167
|
# File 'lib/courier/models/user_profile.rb', line 167
optional :zoneinfo, String, nil?: true
|
Instance Method Details
#to_hash ⇒ {
135
|
# File 'sig/courier/models/user_profile.rbs', line 135
def to_hash: -> {
|