PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
payments
/
paypal-sdk-core
/
lib
/
auth
/
openid
<?php /** * OpenIdConnect UserInfo Resource. */ class PPOpenIdUserinfo extends PPModel { /** * Subject - Identifier for the End-User at the Issuer. * * @param string $user_id */ public function setUserId($user_id) { $this->user_id = $user_id; return $this; } /** * Subject - Identifier for the End-User at the Issuer. * * @return string */ public function getUserId() { return $this->user_id; } /** * Subject - Identifier for the End-User at the Issuer. * * @param string $sub */ public function setSub($sub) { $this->sub = $sub; return $this; } /** * Subject - Identifier for the End-User at the Issuer. * * @return string */ public function getSub() { return $this->sub; } /** * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. * * @param string $name */ public function setName($name) { $this->name = $name; return $this; } /** * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. * * @return string */ public function getName() { return $this->name; } /** * Given name(s) or first name(s) of the End-User. * * @param string $given_name */ public function setGivenName($given_name) { $this->given_name = $given_name; return $this; } /** * Given name(s) or first name(s) of the End-User. * * @return string */ public function getGivenName() { return $this->given_name; } /** * Surname(s) or last name(s) of the End-User. * * @param string $family_name */ public function setFamilyName($family_name) { $this->family_name = $family_name; return $this; } /** * Surname(s) or last name(s) of the End-User. * * @return string */ public function getFamilyName() { return $this->family_name; } /** * Middle name(s) of the End-User. * * @param string $middle_name */ public function setMiddleName($middle_name) { $this->middle_name = $middle_name; return $this; } /** * Middle name(s) of the End-User. * * @return string */ public function getMiddleName() { return $this->middle_name; } /** * URL of the End-User's profile picture. * * @param string $picture */ public function setPicture($picture) { $this->picture = $picture; return $this; } /** * URL of the End-User's profile picture. * * @return string */ public function getPicture() { return $this->picture; } /** * End-User's preferred e-mail address. * * @param string $email */ public function setEmail($email) { $this->email = $email; return $this; } /** * End-User's preferred e-mail address. * * @return string */ public function getEmail() { return $this->email; } /** * True if the End-User's e-mail address has been verified; otherwise false. * * @param bool $email_verified */ public function setEmailVerified($email_verified) { $this->email_verified = $email_verified; return $this; } /** * True if the End-User's e-mail address has been verified; otherwise false. * * @return bool */ public function getEmailVerified() { return $this->email_verified; } /** * End-User's gender. * * @param string $gender */ public function setGender($gender) { $this->gender = $gender; return $this; } /** * End-User's gender. * * @return string */ public function getGender() { return $this->gender; } /** * End-User's birthday, represented as an YYYY-MM-DD format. They year MAY be 0000, indicating it is omited. To represent only the year, YYYY format would be used. * * @param string $birthday */ public function setBirthday($birthday) { $this->birthday = $birthday; return $this; } /** * End-User's birthday, represented as an YYYY-MM-DD format. They year MAY be 0000, indicating it is omited. To represent only the year, YYYY format would be used. * * @return string */ public function getBirthday() { return $this->birthday; } /** * Time zone database representing the End-User's time zone. * * @param string $zoneinfo */ public function setZoneinfo($zoneinfo) { $this->zoneinfo = $zoneinfo; return $this; } /** * Time zone database representing the End-User's time zone. * * @return string */ public function getZoneinfo() { return $this->zoneinfo; } /** * End-User's locale. * * @param string $locale */ public function setLocale($locale) { $this->locale = $locale; return $this; } /** * End-User's locale. * * @return string */ public function getLocale() { return $this->locale; } /** * End-User's language. * * @param string $language */ public function setLanguage($language) { $this->language = $language; return $this; } /** * End-User's language. * * @return string */ public function getLanguage() { return $this->language; } /** * End-User's verified status. * * @param bool $verified */ public function setVerified($verified) { $this->verified = $verified; return $this; } /** * End-User's verified status. * * @return bool */ public function getVerified() { return $this->verified; } /** * End-User's preferred telephone number. * * @param string $phone_number */ public function setPhoneNumber($phone_number) { $this->phone_number = $phone_number; return $this; } /** * End-User's preferred telephone number. * * @return string */ public function getPhoneNumber() { return $this->phone_number; } /** * End-User's preferred address. * * @param PPOpenIdAddress $address */ public function setAddress($address) { $this->address = $address; return $this; } /** * End-User's preferred address. * * @return PPOpenIdAddress */ public function getAddress() { return $this->address; } /** * Verified account status. * * @param bool $verified_account */ public function setVerifiedAccount($verified_account) { $this->verified_account = $verified_account; return $this; } /** * Verified account status. * * @return bool */ public function getVerifiedAccount() { return $this->verified_account; } /** * Account type. * * @param string $account_type */ public function setAccountType($account_type) { $this->account_type = $account_type; return $this; } /** * Account type. * * @return string */ public function getAccountType() { return $this->account_type; } /** * Account holder age range. * * @param string $age_range */ public function setAgeRange($age_range) { $this->age_range = $age_range; return $this; } /** * Account holder age range. * * @return string */ public function getAgeRange() { return $this->age_range; } /** * Account payer identifier. * * @param string $payer_id */ public function setPayerId($payer_id) { $this->payer_id = $payer_id; return $this; } /** * Account payer identifier. * * @return string */ public function getPayerId() { return $this->payer_id; } /** * returns user details. * * @path /v1/identity/openidconnect/userinfo * * @method GET * * @param array $params (allowed values are access_token) * access_token - access token from the createFromAuthorizationCode / createFromRefreshToken calls * @param PPApiContext $apiContext Optional API Context * * @return PPOpenIdUserinfo */ public static function getUserinfo($params, $apiContext = null) { static $allowedParams = array('schema' => 1); if (is_null($apiContext)) { $apiContext = new PPApiContext(); } if (!array_key_exists('schema', $params)) { $params['schema'] = 'openid'; } $requestUrl = '/v1/identity/openidconnect/userinfo?' .http_build_query(array_intersect_key($params, $allowedParams)); $call = new PPRestCall($apiContext); $ret = new self(); $ret->fromJson( $call->execute(array(new PPOpenIdHandler($apiContext)), $requestUrl, 'GET', '', array( 'Authorization' => 'Bearer '.$params['access_token'], 'Content-Type' => 'x-www-form-urlencoded', ) ) ); return $ret; } }
[+]
..
[-] PPOpenIdTokeninfo.php
[edit]
[-] PPOpenIdAddress.php
[edit]
[-] PPOpenIdError.php
[edit]
[-] PPOpenIdSession.php
[edit]
[-] PPOpenIdUserinfo.php
[edit]