public class PayPalProfile extends OAuth20Profile
This class is the user profile for PayPal with appropriate getters.
It is returned by the PayPalClient
.
Method : | From the JSON profile response : |
---|---|
The attributes of the CommonProfile |
|
String getEmail() | the email attribute |
String getFirstName() | the given_name attribute |
String getFamilyName() | the family_name attribute |
String getDisplayName() | the name attribute |
String getUsername() | null |
Gender getGender() | Gender.UNSPECIFIED |
Locale getLocale() | the locale attribute |
String getPictureUrl() | null |
String getProfileUrl() | null |
String getLocation() | the zoneinfo attribute |
More specific attributes | |
Locale getLanguage() | the language attribute |
PayPalAddress getAddress() | the address attribute |
PayPalClient
,
Serialized FormUSERNAME
logger, SEPARATOR
Constructor and Description |
---|
PayPalProfile() |
Modifier and Type | Method and Description |
---|---|
PayPalAddress |
getAddress() |
protected AttributesDefinition |
getAttributesDefinition()
Return the attributes definition for this user profile.
|
String |
getDisplayName()
Return the displayed name of the user.
|
String |
getEmail()
Return the email of the user.
|
String |
getFamilyName()
Return the family name of the user.
|
String |
getFirstName()
Return the first name of the user.
|
Locale |
getLanguage() |
Locale |
getLocale()
Return the locale of the user.
|
String |
getLocation()
Return the location of the user.
|
clear, getAccessToken, setAccessToken
getGender, getPictureUrl, getProfileUrl, getUsername
addAttribute, addAttributes, addPermission, addPermissions, addRole, addRoles, build, getAttribute, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, setId, setRemembered, toString, writeExternal
protected AttributesDefinition getAttributesDefinition()
UserProfile
getAttributesDefinition
in class UserProfile
public String getEmail()
CommonProfile
getEmail
in class CommonProfile
public String getFirstName()
CommonProfile
getFirstName
in class CommonProfile
public String getFamilyName()
CommonProfile
getFamilyName
in class CommonProfile
public String getDisplayName()
CommonProfile
getDisplayName
in class CommonProfile
public Locale getLocale()
CommonProfile
getLocale
in class CommonProfile
public String getLocation()
CommonProfile
getLocation
in class CommonProfile
public Locale getLanguage()
public PayPalAddress getAddress()
Copyright © 2016. All rights reserved.