com.paypal.svcs.services
Class PermissionsService
java.lang.Object
com.paypal.core.BaseService
com.paypal.svcs.services.PermissionsService
public class PermissionsService
- extends com.paypal.core.BaseService
| Fields inherited from class com.paypal.core.BaseService |
configurationMap |
|
Method Summary |
CancelPermissionsResponse |
cancelPermissions(CancelPermissionsRequest cancelPermissionsRequest)
|
CancelPermissionsResponse |
cancelPermissions(CancelPermissionsRequest cancelPermissionsRequest,
com.paypal.core.credential.ICredential credential)
|
CancelPermissionsResponse |
cancelPermissions(CancelPermissionsRequest cancelPermissionsRequest,
String apiUsername)
|
GetAccessTokenResponse |
getAccessToken(GetAccessTokenRequest getAccessTokenRequest)
|
GetAccessTokenResponse |
getAccessToken(GetAccessTokenRequest getAccessTokenRequest,
com.paypal.core.credential.ICredential credential)
|
GetAccessTokenResponse |
getAccessToken(GetAccessTokenRequest getAccessTokenRequest,
String apiUsername)
|
GetAdvancedPersonalDataResponse |
getAdvancedPersonalData(GetAdvancedPersonalDataRequest getAdvancedPersonalDataRequest)
|
GetAdvancedPersonalDataResponse |
getAdvancedPersonalData(GetAdvancedPersonalDataRequest getAdvancedPersonalDataRequest,
com.paypal.core.credential.ICredential credential)
|
GetAdvancedPersonalDataResponse |
getAdvancedPersonalData(GetAdvancedPersonalDataRequest getAdvancedPersonalDataRequest,
String apiUsername)
|
GetBasicPersonalDataResponse |
getBasicPersonalData(GetBasicPersonalDataRequest getBasicPersonalDataRequest)
|
GetBasicPersonalDataResponse |
getBasicPersonalData(GetBasicPersonalDataRequest getBasicPersonalDataRequest,
com.paypal.core.credential.ICredential credential)
|
GetBasicPersonalDataResponse |
getBasicPersonalData(GetBasicPersonalDataRequest getBasicPersonalDataRequest,
String apiUsername)
|
GetPermissionsResponse |
getPermissions(GetPermissionsRequest getPermissionsRequest)
|
GetPermissionsResponse |
getPermissions(GetPermissionsRequest getPermissionsRequest,
com.paypal.core.credential.ICredential credential)
|
GetPermissionsResponse |
getPermissions(GetPermissionsRequest getPermissionsRequest,
String apiUsername)
|
RequestPermissionsResponse |
requestPermissions(RequestPermissionsRequest requestPermissionsRequest)
|
RequestPermissionsResponse |
requestPermissions(RequestPermissionsRequest requestPermissionsRequest,
com.paypal.core.credential.ICredential credential)
|
RequestPermissionsResponse |
requestPermissions(RequestPermissionsRequest requestPermissionsRequest,
String apiUsername)
|
| Methods inherited from class com.paypal.core.BaseService |
call, getAccessToken, getLastRequest, getLastResponse, getTokenSecret, initConfig, initConfig, initConfig, initConfig, setAccessToken, setLastRequest, setLastResponse, setTokenSecret |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_VERSION
public static final String SERVICE_VERSION
- See Also:
- Constant Field Values
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
PermissionsService
public PermissionsService()
- Default
PermissionsService Constructor.
Initializes the SDK system with the default configuration file named
'sdk_config.properties' found in the class-path
PermissionsService
public PermissionsService(String configFilePath)
throws IOException
PermissionsService that uses the supplied path
to initialize the SDK system. The initialization context is maintained
only for this instance of the class. To initialize the SDK system
globally use the default constructor.
- Parameters:
configFilePath - Absolute path to a Properties file
- Throws:
IOException- See Also:
PayPalAPIInterfaceServiceService
PermissionsService
public PermissionsService(File configFile)
throws IOException
PermissionsService that uses the supplied
File object to initialize the SDK system. The initialization
context is maintained only for this instance of the class. To initialize
the SDK system globally use the default constructor
- Parameters:
configFile - Configuration file in Properties format
- Throws:
IOException- See Also:
PayPalAPIInterfaceServiceService
PermissionsService
public PermissionsService(InputStream inputStream)
throws IOException
PermissionsService that uses the supplied
InputStream object to initialize the SDK system. The
initialization context is maintained only for this instance of the class.
To initialize the SDK system globally use the default constructor.
- Parameters:
inputStream - InputStream of a Properties file
- Throws:
IOException- See Also:
PayPalAPIInterfaceServiceService
PermissionsService
public PermissionsService(Properties properties)
PermissionsService that uses the supplied
Properties to initialize the SDK system. For values that the
properties should hold consult the sample 'sdk_config.properties' file
bundled with the SDK. The initialization context is maintained only for
this instance of the class. To initialize the SDK system globally use the
default constructor.
- Parameters:
properties - Properties object- See Also:
PayPalAPIInterfaceServiceService
PermissionsService
public PermissionsService(Map<String,String> configurationMap)
PayPalAPIInterfaceServiceService that uses the supplied
Map to initialize the SDK system. For values that the map should
hold consult the sample 'sdk_config.properties' file bundled with the
SDK. The initialization context is maintained only for this instance of
the class. To initialize the SDK system globally use the default
constructor.
- Parameters:
configurationMap - Map object- See Also:
PayPalAPIInterfaceServiceService
requestPermissions
public RequestPermissionsResponse requestPermissions(RequestPermissionsRequest requestPermissionsRequest)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
requestPermissions
public RequestPermissionsResponse requestPermissions(RequestPermissionsRequest requestPermissionsRequest,
com.paypal.core.credential.ICredential credential)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
requestPermissions
public RequestPermissionsResponse requestPermissions(RequestPermissionsRequest requestPermissionsRequest,
String apiUsername)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getAccessToken
public GetAccessTokenResponse getAccessToken(GetAccessTokenRequest getAccessTokenRequest)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getAccessToken
public GetAccessTokenResponse getAccessToken(GetAccessTokenRequest getAccessTokenRequest,
com.paypal.core.credential.ICredential credential)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getAccessToken
public GetAccessTokenResponse getAccessToken(GetAccessTokenRequest getAccessTokenRequest,
String apiUsername)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getPermissions
public GetPermissionsResponse getPermissions(GetPermissionsRequest getPermissionsRequest)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getPermissions
public GetPermissionsResponse getPermissions(GetPermissionsRequest getPermissionsRequest,
com.paypal.core.credential.ICredential credential)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getPermissions
public GetPermissionsResponse getPermissions(GetPermissionsRequest getPermissionsRequest,
String apiUsername)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
cancelPermissions
public CancelPermissionsResponse cancelPermissions(CancelPermissionsRequest cancelPermissionsRequest)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
cancelPermissions
public CancelPermissionsResponse cancelPermissions(CancelPermissionsRequest cancelPermissionsRequest,
com.paypal.core.credential.ICredential credential)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
cancelPermissions
public CancelPermissionsResponse cancelPermissions(CancelPermissionsRequest cancelPermissionsRequest,
String apiUsername)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getBasicPersonalData
public GetBasicPersonalDataResponse getBasicPersonalData(GetBasicPersonalDataRequest getBasicPersonalDataRequest)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getBasicPersonalData
public GetBasicPersonalDataResponse getBasicPersonalData(GetBasicPersonalDataRequest getBasicPersonalDataRequest,
com.paypal.core.credential.ICredential credential)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getBasicPersonalData
public GetBasicPersonalDataResponse getBasicPersonalData(GetBasicPersonalDataRequest getBasicPersonalDataRequest,
String apiUsername)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getAdvancedPersonalData
public GetAdvancedPersonalDataResponse getAdvancedPersonalData(GetAdvancedPersonalDataRequest getAdvancedPersonalDataRequest)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getAdvancedPersonalData
public GetAdvancedPersonalDataResponse getAdvancedPersonalData(GetAdvancedPersonalDataRequest getAdvancedPersonalDataRequest,
com.paypal.core.credential.ICredential credential)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
getAdvancedPersonalData
public GetAdvancedPersonalDataResponse getAdvancedPersonalData(GetAdvancedPersonalDataRequest getAdvancedPersonalDataRequest,
String apiUsername)
throws com.paypal.exception.SSLConfigurationException,
com.paypal.exception.InvalidCredentialException,
UnsupportedEncodingException,
IOException,
com.paypal.exception.HttpErrorException,
com.paypal.exception.InvalidResponseDataException,
com.paypal.exception.ClientActionRequiredException,
com.paypal.exception.MissingCredentialException,
InterruptedException,
com.paypal.sdk.exceptions.OAuthException
- Throws:
com.paypal.exception.SSLConfigurationException
com.paypal.exception.InvalidCredentialException
UnsupportedEncodingException
IOException
com.paypal.exception.HttpErrorException
com.paypal.exception.InvalidResponseDataException
com.paypal.exception.ClientActionRequiredException
com.paypal.exception.MissingCredentialException
InterruptedException
com.paypal.sdk.exceptions.OAuthException
Copyright © 2013. All Rights Reserved.