public class EventType extends PayPalResource
| Constructor and Description |
|---|
EventType()
Default Constructor
|
EventType(java.lang.String name)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static EventTypeList |
availableEventTypes(APIContext apiContext)
Retrieves the master list of available Webhooks events-types resources for any webhook to subscribe to.
|
static EventTypeList |
availableEventTypes(java.lang.String accessToken)
Deprecated.
Please use
availableEventTypes(APIContext) instead. |
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription()
Human readable description of the event-type
|
java.lang.String |
getName()
Unique event-type name.
|
int |
hashCode() |
EventType |
setDescription(java.lang.String description)
Human readable description of the event-type
|
EventType |
setName(java.lang.String name)
Unique event-type name.
|
static EventTypeList |
subscribedEventTypes(APIContext apiContext,
java.lang.String webhookId)
Retrieves the list of events-types subscribed by the given Webhook.
|
static EventTypeList |
subscribedEventTypes(java.lang.String accessToken,
java.lang.String webhookId)
Deprecated.
Please use
subscribedEventTypes(APIContext, String) instead. |
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic EventType()
public EventType(java.lang.String name)
public static EventTypeList subscribedEventTypes(java.lang.String accessToken, java.lang.String webhookId) throws PayPalRESTException
subscribedEventTypes(APIContext, String) instead.accessToken - Access Token used for the API call.webhookId - StringPayPalRESTExceptionpublic static EventTypeList subscribedEventTypes(APIContext apiContext, java.lang.String webhookId) throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - StringPayPalRESTExceptionpublic static EventTypeList availableEventTypes(java.lang.String accessToken) throws PayPalRESTException
availableEventTypes(APIContext) instead.accessToken - Access Token used for the API call.PayPalRESTExceptionpublic static EventTypeList availableEventTypes(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic java.lang.String getName()
public java.lang.String getDescription()
public EventType setName(java.lang.String name)
public EventType setDescription(java.lang.String description)
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