Class: Trycourier::Models::UserProfile

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/user_profile.rb

Defined Under Namespace

Classes: Address

Instance Attribute Summary collapse

Instance Method Summary collapse

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, 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, target_arn: nil, updated_at: nil, website: nil, zoneinfo: nil) ⇒ Object

Some parameter documentations has been truncated, see Trycourier::Models::UserProfile for more details.

Parameters:



# File 'lib/trycourier/models/user_profile.rb', line 166

Instance Attribute Details

#addressTrycourier::Models::UserProfile::Address?



9
# File 'lib/trycourier/models/user_profile.rb', line 9

optional :address, -> { Trycourier::UserProfile::Address }, nil?: true

#airshipTrycourier::Models::AirshipProfile?



14
# File 'lib/trycourier/models/user_profile.rb', line 14

optional :airship, -> { Trycourier::AirshipProfile }, nil?: true

#apnString?

Returns:

  • (String, nil)


19
# File 'lib/trycourier/models/user_profile.rb', line 19

optional :apn, String, nil?: true

#birthdateString?

Returns:

  • (String, nil)


24
# File 'lib/trycourier/models/user_profile.rb', line 24

optional :birthdate, String, nil?: true

#customHash{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.

Returns:

  • (Hash{Symbol=>Object}, nil)


31
# File 'lib/trycourier/models/user_profile.rb', line 31

optional :custom, Trycourier::Internal::Type::HashOf[Trycourier::Internal::Type::Unknown], nil?: true

#discordTrycourier::Models::SendToChannel, ...



36
# File 'lib/trycourier/models/user_profile.rb', line 36

optional :discord, union: -> { Trycourier::Discord }, nil?: true

#emailString?

Returns:

  • (String, nil)


41
# File 'lib/trycourier/models/user_profile.rb', line 41

optional :email, String, nil?: true

#email_verifiedBoolean?

Returns:

  • (Boolean, nil)


46
# File 'lib/trycourier/models/user_profile.rb', line 46

optional :email_verified, Trycourier::Internal::Type::Boolean, nil?: true

#expoTrycourier::Models::Token, ...



51
# File 'lib/trycourier/models/user_profile.rb', line 51

optional :expo, union: -> { Trycourier::Expo }, nil?: true

#facebook_psidString?

Returns:

  • (String, nil)


56
# File 'lib/trycourier/models/user_profile.rb', line 56

optional :facebook_psid, String, api_name: :facebookPSID, nil?: true

#family_nameString?

Returns:

  • (String, nil)


61
# File 'lib/trycourier/models/user_profile.rb', line 61

optional :family_name, String, nil?: true

#firebase_tokenString, ...

Returns:

  • (String, Array<String>, nil)


66
67
68
69
# File 'lib/trycourier/models/user_profile.rb', line 66

optional :firebase_token,
union: -> { Trycourier::UserProfileFirebaseToken },
api_name: :firebaseToken,
nil?: true

#genderString?

Returns:

  • (String, nil)


74
# File 'lib/trycourier/models/user_profile.rb', line 74

optional :gender, String, nil?: true

#given_nameString?

Returns:

  • (String, nil)


79
# File 'lib/trycourier/models/user_profile.rb', line 79

optional :given_name, String, nil?: true

#intercomTrycourier::Models::Intercom?



84
# File 'lib/trycourier/models/user_profile.rb', line 84

optional :intercom, -> { Trycourier::Intercom }, nil?: true

#localeString?

Returns:

  • (String, nil)


89
# File 'lib/trycourier/models/user_profile.rb', line 89

optional :locale, String, nil?: true

#middle_nameString?

Returns:

  • (String, nil)


94
# File 'lib/trycourier/models/user_profile.rb', line 94

optional :middle_name, String, nil?: true

#ms_teamsTrycourier::Models::SendToMsTeamsUserID, ...



99
# File 'lib/trycourier/models/user_profile.rb', line 99

optional :ms_teams, union: -> { Trycourier::MsTeams }, nil?: true

#nameString?

Returns:

  • (String, nil)


104
# File 'lib/trycourier/models/user_profile.rb', line 104

optional :name, String, nil?: true

#nicknameString?

Returns:

  • (String, nil)


109
# File 'lib/trycourier/models/user_profile.rb', line 109

optional :nickname, String, nil?: true

#phone_numberString?

Returns:

  • (String, nil)


114
# File 'lib/trycourier/models/user_profile.rb', line 114

optional :phone_number, String, nil?: true

#phone_number_verifiedBoolean?

Returns:

  • (Boolean, nil)


119
# File 'lib/trycourier/models/user_profile.rb', line 119

optional :phone_number_verified, Trycourier::Internal::Type::Boolean, nil?: true

#pictureString?

Returns:

  • (String, nil)


124
# File 'lib/trycourier/models/user_profile.rb', line 124

optional :picture, String, nil?: true

#preferred_nameString?

Returns:

  • (String, nil)


129
# File 'lib/trycourier/models/user_profile.rb', line 129

optional :preferred_name, String, nil?: true

#profileString?

Returns:

  • (String, nil)


134
# File 'lib/trycourier/models/user_profile.rb', line 134

optional :profile, String, nil?: true

#slackTrycourier::Models::SendToSlackChannel, ...



139
# File 'lib/trycourier/models/user_profile.rb', line 139

optional :slack, union: -> { Trycourier::Slack }, nil?: true

#subString?

Returns:

  • (String, nil)


144
# File 'lib/trycourier/models/user_profile.rb', line 144

optional :sub, String, nil?: true

#target_arnString?

Returns:

  • (String, nil)


149
# File 'lib/trycourier/models/user_profile.rb', line 149

optional :target_arn, String, nil?: true

#updated_atString?

Returns:

  • (String, nil)


154
# File 'lib/trycourier/models/user_profile.rb', line 154

optional :updated_at, String, nil?: true

#websiteString?

Returns:

  • (String, nil)


159
# File 'lib/trycourier/models/user_profile.rb', line 159

optional :website, String, nil?: true

#zoneinfoString?

Returns:

  • (String, nil)


164
# File 'lib/trycourier/models/user_profile.rb', line 164

optional :zoneinfo, String, nil?: true