public class Event extends PayPalResource
| Constructor and Description |
|---|
Event()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
static Event |
get(APIContext apiContext,
java.lang.String eventId)
Retrieves the Webhooks event resource identified by event_id.
|
static Event |
get(java.lang.String accessToken,
java.lang.String eventId)
Deprecated.
Please use
get(APIContext, String) instead. |
java.lang.String |
getCreateTime()
Time the resource was created.
|
java.lang.String |
getEventType()
Name of the event type that occurred on resource, identified by data_resource element, to trigger the Webhooks event.
|
java.lang.String |
getId()
Identifier of the Webhooks event resource.
|
java.util.List<Links> |
getLinks()
Hateoas links.
|
java.lang.Object |
getResource()
This contains the resource that is identified by resource_type element.
|
java.lang.String |
getResourceType()
Name of the resource contained in resource element.
|
java.lang.String |
getSummary()
A summary description of the event.
|
int |
hashCode() |
static EventList |
list(APIContext apiContext,
java.lang.String queryParams)
Retrieves the list of Webhooks events resources for the application associated with token.
|
static EventList |
list(java.lang.String accessToken,
java.lang.String queryParams)
Deprecated.
Please use
list(APIContext, String) instead. |
Event |
resend(APIContext apiContext)
Resends the Webhooks event resource identified by event_id.
|
Event |
resend(java.lang.String accessToken)
Deprecated.
Please use
resend(APIContext) instead. |
Event |
setCreateTime(java.lang.String createTime)
Time the resource was created.
|
Event |
setEventType(java.lang.String eventType)
Name of the event type that occurred on resource, identified by data_resource element, to trigger the Webhooks event.
|
Event |
setId(java.lang.String id)
Identifier of the Webhooks event resource.
|
Event |
setLinks(java.util.List<Links> links)
Hateoas links.
|
Event |
setResource(java.lang.Object resource)
This contains the resource that is identified by resource_type element.
|
Event |
setResourceType(java.lang.String resourceType)
Name of the resource contained in resource element.
|
Event |
setSummary(java.lang.String summary)
A summary description of the event.
|
static boolean |
validateReceivedEvent(APIContext apiContext,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.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, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toString@Deprecated public static Event get(java.lang.String accessToken, java.lang.String eventId) throws PayPalRESTException
get(APIContext, String) instead.accessToken - Access Token used for the API call.eventId - StringPayPalRESTExceptionpublic static Event get(APIContext apiContext, java.lang.String eventId) throws PayPalRESTException
apiContext - APIContext used for the API call.eventId - StringPayPalRESTException@Deprecated public Event resend(java.lang.String accessToken) throws PayPalRESTException
resend(APIContext) instead.accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Event resend(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTException@Deprecated public static EventList list(java.lang.String accessToken, java.lang.String queryParams) throws PayPalRESTException
list(APIContext, String) instead.accessToken - Access Token used for the API call.PayPalRESTExceptionpublic static EventList list(APIContext apiContext, java.lang.String queryParams) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic static boolean validateReceivedEvent(APIContext apiContext, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String requestBody) throws PayPalRESTException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.SignatureException
apiContext - APIContext objectheaders - Map of Headers received in the event, from requestrequestBody - Request body received in the provided webhookPayPalRESTExceptionjava.security.InvalidKeyExceptionjava.security.NoSuchAlgorithmExceptionjava.security.SignatureExceptionpublic java.lang.String getId()
public java.lang.String getCreateTime()
public java.lang.String getResourceType()
public java.lang.String getEventType()
public java.lang.String getSummary()
public java.lang.Object getResource()
public java.util.List<Links> getLinks()
public Event setId(java.lang.String id)
public Event setCreateTime(java.lang.String createTime)
public Event setResourceType(java.lang.String resourceType)
public Event setEventType(java.lang.String eventType)
public Event setSummary(java.lang.String summary)
public Event setResource(java.lang.Object resource)
public boolean equals(java.lang.Object o)
equals in class PayPalModelprotected boolean canEqual(java.lang.Object other)
canEqual in class PayPalModelpublic int hashCode()
hashCode in class PayPalModel