class PayPal::SDK::Core::OpenIDConnect::DataTypes::Userinfo

Constants

PATH

Public Class Methods

get(options = {}, http_header = {})
Alias for: get_userinfo
get_userinfo(options = {}, http_header = {}) click to toggle source
# File lib/paypal-sdk/core/openid_connect.rb, line 108
def get_userinfo(options = {}, http_header = {})
  options = { :access_token => options } if options.is_a? String
  options = options.merge( :schema => "openid" ) unless options[:schema] or options["schema"]
  Userinfo.new(api.post(PATH, options, http_header))
end
Also aliased as: get
load_members() click to toggle source
# File lib/paypal-sdk/core/openid_connect/data_types.rb, line 20
def self.load_members
  object_of :user_id, String
  object_of :sub, String
  object_of :name, String
  object_of :given_name, String
  object_of :family_name, String
  object_of :middle_name, String
  object_of :picture, String
  object_of :email, String
  object_of :email_verified, Boolean
  object_of :gender, String
  object_of :birthday, String
  object_of :zoneinfo, String
  object_of :locale, String
  object_of :language, String
  object_of :verified, Boolean
  object_of :phone_number, String
  object_of :address, Address
  object_of :verified_account, Boolean
  object_of :account_type, String
  object_of :account_creation_date, String
  object_of :age_range, String
  object_of :payer_id, String
end