public class Event extends PayPalResource
| Constructor and Description |
|---|
Event()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Event |
get(APIContext apiContext,
String eventId)
Retrieves the Webhooks event resource identified by event_id.
|
static Event |
get(String accessToken,
String eventId)
Retrieves the Webhooks event resource identified by event_id.
|
String |
getCreateTime()
Getter for createTime
|
String |
getEventType()
Getter for eventType
|
String |
getId()
Getter for id
|
List<Links> |
getLinks()
Getter for links
|
Object |
getResource()
Getter for resource
|
String |
getResourceType()
Getter for resourceType
|
String |
getSummary()
Getter for summary
|
static EventList |
list(APIContext apiContext,
String queryParams)
Retrieves the list of Webhooks events resources for the application associated with token.
|
static EventList |
list(String accessToken,
String queryParams)
Retrieves the list of Webhooks events resources for the application associated with token.
|
Event |
resend(APIContext apiContext)
Resends the Webhooks event resource identified by event_id.
|
Event |
resend(String accessToken)
Resends the Webhooks event resource identified by event_id.
|
Event |
setCreateTime(String createTime)
Setter for createTime
|
Event |
setEventType(String eventType)
Setter for eventType
|
Event |
setId(String id)
Setter for id
|
Event |
setLinks(List<Links> links)
Setter for links
|
Event |
setResource(Object resource)
Setter for resource
|
Event |
setResourceType(String resourceType)
Setter for resourceType
|
Event |
setSummary(String summary)
Setter for summary
|
static boolean |
validateReceivedEvent(APIContext apiContext,
Map<String,String> headers,
String requestBody)
Validates received event received from PayPal to webhook endpoint set for particular webhook Id with PayPal trust source, to verify Data and Certificate integrity.
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic String getId()
public String getCreateTime()
public String getResourceType()
public String getEventType()
public String getSummary()
public Object getResource()
public static Event get(String accessToken, String eventId) throws PayPalRESTException
accessToken - Access Token used for the API call.eventId - StringPayPalRESTExceptionpublic static Event get(APIContext apiContext, String eventId) throws PayPalRESTException
apiContext - APIContext used for the API call.eventId - StringPayPalRESTExceptionpublic Event resend(String accessToken) throws PayPalRESTException
accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Event resend(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic static EventList list(String accessToken, String queryParams) throws PayPalRESTException
accessToken - Access Token used for the API call.PayPalRESTExceptionpublic static EventList list(APIContext apiContext, String queryParams) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic static boolean validateReceivedEvent(APIContext apiContext, Map<String,String> headers, String requestBody) throws PayPalRESTException, InvalidKeyException, NoSuchAlgorithmException, SignatureException
apiContext - APIContext objectheaders - Map of Headers received in the event, from requestrequestBody - Request body received in the provided webhookPayPalRESTExceptionInvalidKeyExceptionNoSuchAlgorithmExceptionSignatureExceptionCopyright © 2015. All Rights Reserved.