All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pac4j.oauth.profile.paypal.PayPalProfile Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
package org.pac4j.oauth.profile.paypal;

import java.io.Serial;
import java.util.Locale;

import org.pac4j.oauth.profile.OAuth20Profile;

/**
 * 

This class is the user profile for PayPal with appropriate getters.

*

It is returned by the {@link org.pac4j.oauth.client.PayPalClient}.

* * @author Jerome Leleu * @since 1.4.2 */ public class PayPalProfile extends OAuth20Profile { @Serial private static final long serialVersionUID = -9019988559486637233L; /** {@inheritDoc} */ @Override public String getFirstName() { return (String) getAttribute(PayPalProfileDefinition.GIVEN_NAME); } /** {@inheritDoc} */ @Override public String getDisplayName() { return (String) getAttribute(PayPalProfileDefinition.NAME); } /** {@inheritDoc} */ @Override public String getLocation() { return (String) getAttribute(PayPalProfileDefinition.ZONEINFO); } /** *

getLanguage.

* * @return a {@link Locale} object */ public Locale getLanguage() { return (Locale) getAttribute(PayPalProfileDefinition.LANGUAGE); } /** *

getAddress.

* * @return a {@link PayPalAddress} object */ public PayPalAddress getAddress() { return (PayPalAddress) getAttribute(PayPalProfileDefinition.ADDRESS); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy