PATH:
home
/
lab2454c
/
keebchat.com
/
core
/
libs
/
paypal
/
vendor
/
paypal
/
rest-api-sdk-php
/
lib
/
PayPal
/
Api
<?php namespace PayPal\Api; use PayPal\Common\PayPalResourceModel; use PayPal\Rest\ApiContext; /** * Class OpenIdUserinfo * * OpenIdConnect UserInfo Resource * * @property string user_id * @property string sub * @property mixed name * @property string given_name * @property string family_name * @property string middle_name * @property string picture * @property string email * @property bool email_verified * @property string gender * @property string birthday * @property string zoneinfo * @property string locale * @property string language * @property bool verified * @property string phone_number * @property OpenIdAddress address * @property mixed verified_account * @property mixed account_type * @property string age_range * @property string payer_id */ class OpenIdUserinfo extends PayPalResourceModel { /** * Subject - Identifier for the End-User at the Issuer. * * @param string $user_id * @return self */ 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 * @return self */ 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 * @return self */ 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 * @return self */ 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 * @return self */ 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 * @return self */ 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 * @return self */ 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 * @return self */ 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 boolean $email_verified * @return self */ 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 boolean */ public function getEmailVerified() { return $this->email_verified; } /** * End-User's gender. * * @param string $gender * @return self */ 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 * @return self */ 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 * @return self */ 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 * @return self */ 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 * @return self */ 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 boolean $verified * @return self */ public function setVerified($verified) { $this->verified = $verified; return $this; } /** * End-User's verified status. * * @return boolean */ public function getVerified() { return $this->verified; } /** * End-User's preferred telephone number. * * @param string $phone_number * @return self */ 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 \PayPal\Api\OpenIdAddress $address * @return self */ public function setAddress($address) { $this->address = $address; return $this; } /** * End-User's preferred address. * * @return \PayPal\Api\OpenIdAddress */ public function getAddress() { return $this->address; } /** * Verified account status. * * @param boolean $verified_account * @return self */ public function setVerifiedAccount($verified_account) { $this->verified_account = $verified_account; return $this; } /** * Verified account status. * * @return boolean */ public function getVerifiedAccount() { return $this->verified_account; } /** * Account type. * * @param string $account_type * @return self */ 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 * @return self */ 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 * @return self */ 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 ApiContext $apiContext Optional API Context * @param PayPalRestCall $restCall * @return OpenIdUserinfo */ public static function getUserinfo($params, $apiContext = null, $restCall = null) { static $allowedParams = array('schema' => 1); $params = is_array($params) ? $params : array(); if (!array_key_exists('schema', $params)) { $params['schema'] = 'openid'; } $requestUrl = "/v1/identity/openidconnect/userinfo?" . http_build_query(array_intersect_key($params, $allowedParams)); $json = self::executeCall( $requestUrl, "GET", "", array( 'Authorization' => "Bearer " . $params['access_token'], 'Content-Type' => 'x-www-form-urlencoded' ), $apiContext, $restCall ); $ret = new OpenIdUserinfo(); $ret->fromJson($json); return $ret; } }
[-] PaymentTerm.php
[edit]
[-] Patch.php
[edit]
[-] AgreementTransaction.php
[edit]
[-] OverrideChargeModel.php
[edit]
[-] RefundDetail.php
[edit]
[-] PaymentExecution.php
[edit]
[-] CurrencyConversion.php
[edit]
[-] InvoiceItem.php
[edit]
[-] Terms.php
[edit]
[-] PaymentDetail.php
[edit]
[-] BillingInfo.php
[edit]
[-] CreditCardList.php
[edit]
[-] MerchantInfo.php
[edit]
[-] Links.php
[edit]
[-] Transactions.php
[edit]
[-] PaymentDefinition.php
[edit]
[+]
..
[-] PaymentSummary.php
[edit]
[-] OpenIdError.php
[edit]
[-] BillingAgreementToken.php
[edit]
[-] Sale.php
[edit]
[-] Item.php
[edit]
[-] Address.php
[edit]
[-] InvoiceNumber.php
[edit]
[-] Payee.php
[edit]
[-] TransactionBase.php
[edit]
[-] ExtendedBankAccount.php
[edit]
[-] AgreementStateDescriptor.php
[edit]
[-] RecipientBankingInstruction.php
[edit]
[-] WebProfile.php
[edit]
[-] Payout.php
[edit]
[-] FundingDetail.php
[edit]
[-] CreditFinancingOffered.php
[edit]
[-] PaymentCardToken.php
[edit]
[-] ProcessorResponse.php
[edit]
[-] OpenIdTokeninfo.php
[edit]
[-] PotentialPayerInfo.php
[edit]
[-] MerchantPreferences.php
[edit]
[-] InstallmentInfo.php
[edit]
[-] InvoiceSearchResponse.php
[edit]
[-] FmfDetails.php
[edit]
[-] Agreement.php
[edit]
[-] Incentive.php
[edit]
[-] OpenIdSession.php
[edit]
[-] Plan.php
[edit]
[-] Refund.php
[edit]
[-] BaseAddress.php
[edit]
[-] CreditCardToken.php
[edit]
[-] Amount.php
[edit]
[-] CreateProfileResponse.php
[edit]
[-] AgreementDetails.php
[edit]
[-] Order.php
[edit]
[-] CarrierAccount.php
[edit]
[-] FuturePayment.php
[edit]
[-] FileAttachment.php
[edit]
[-] Image.php
[edit]
[-] Details.php
[edit]
[-] RedirectUrls.php
[edit]
[-] RelatedResources.php
[edit]
[-] AlternatePayment.php
[edit]
[-] PrivateLabelCard.php
[edit]
[-] Tax.php
[edit]
[-] Phone.php
[edit]
[-] Measurement.php
[edit]
[-] RefundRequest.php
[edit]
[-] Payer.php
[edit]
[-] FundingSource.php
[edit]
[-] PayoutBatch.php
[edit]
[-] VerifyWebhookSignatureResponse.php
[edit]
[-] CarrierAccountToken.php
[edit]
[-] PayoutItem.php
[edit]
[-] Authorization.php
[edit]
[-] CreditCardHistory.php
[edit]
[-] WebhookEventTypeList.php
[edit]
[-] TemplateSettingsMetadata.php
[edit]
[-] Cost.php
[edit]
[-] PayoutItemDetails.php
[edit]
[-] NameValuePair.php
[edit]
[-] CancelNotification.php
[edit]
[-] WebhookEvent.php
[edit]
[-] ShippingInfo.php
[edit]
[-] FundingOption.php
[edit]
[-] ShippingAddress.php
[edit]
[-] HyperSchema.php
[edit]
[-] CartBase.php
[edit]
[-] PayerInfo.php
[edit]
[-] Notification.php
[edit]
[-] PaymentHistory.php
[edit]
[-] CustomAmount.php
[edit]
[-] WebhookList.php
[edit]
[-] Credit.php
[edit]
[-] PlanList.php
[edit]
[-] Metadata.php
[edit]
[-] ShippingCost.php
[edit]
[-] TemplateData.php
[edit]
[-] ChargeModel.php
[edit]
[-] Capture.php
[edit]
[-] Transaction.php
[edit]
[-] InputFields.php
[edit]
[-] OpenIdUserinfo.php
[edit]
[-] PatchRequest.php
[edit]
[-] DetailedRefund.php
[edit]
[-] PaymentCard.php
[edit]
[-] AgreementTransactions.php
[edit]
[-] Currency.php
[edit]
[-] Participant.php
[edit]
[-] PaymentOptions.php
[edit]
[-] VerifyWebhookSignature.php
[edit]
[-] BankAccountsList.php
[edit]
[-] Template.php
[edit]
[-] CountryCode.php
[edit]
[-] ErrorDetails.php
[edit]
[-] PaymentInstruction.php
[edit]
[-] TemplateSettings.php
[edit]
[-] Payment.php
[edit]
[-] Search.php
[edit]
[-] InstallmentOption.php
[edit]
[-] Invoice.php
[edit]
[-] BankAccount.php
[edit]
[-] FundingInstrument.php
[edit]
[-] FlowConfig.php
[edit]
[-] ItemList.php
[edit]
[-] Templates.php
[edit]
[-] BankToken.php
[edit]
[-] PayoutSenderBatchHeader.php
[edit]
[-] PayoutBatchHeader.php
[edit]
[-] Presentation.php
[edit]
[-] Billing.php
[edit]
[-] WebhookEventType.php
[edit]
[-] OpenIdAddress.php
[edit]
[-] InvoiceAddress.php
[edit]
[-] CreditCard.php
[edit]
[-] Webhook.php
[edit]
[-] ExternalFunding.php
[edit]
[-] WebhookEventList.php
[edit]
[-] Error.php
[edit]