public class Webhook extends PayPalResource
| Constructor and Description |
|---|
Webhook()
Default Constructor
|
Webhook(String url,
List<EventType> eventTypes)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Webhook |
create(APIContext apiContext,
Webhook webhook)
Creates the Webhook for the application associated with the access token.
|
Webhook |
create(String accessToken,
Webhook webhook)
Creates the Webhook for the application associated with the access token.
|
void |
delete(APIContext apiContext,
String webhookId)
Deletes the Webhook identified by webhook_id for the application associated with access token.
|
void |
delete(String accessToken,
String webhookId)
Deletes the Webhook identified by webhook_id for the application associated with access token.
|
Webhook |
get(APIContext apiContext,
String webhookId)
Retrieves the Webhook identified by webhook_id for the application associated with access token.
|
Webhook |
get(String accessToken,
String webhookId)
Retrieves the Webhook identified by webhook_id for the application associated with access token.
|
List<EventType> |
getEventTypes()
Getter for eventTypes
|
String |
getId()
Getter for id
|
List<Links> |
getLinks()
Getter for links
|
String |
getUrl()
Getter for url
|
Webhook |
setEventTypes(List<EventType> eventTypes)
Setter for eventTypes
|
Webhook |
setId(String id)
Setter for id
|
Webhook |
setLinks(List<Links> links)
Setter for links
|
Webhook |
setUrl(String url)
Setter for url
|
Webhook |
update(APIContext apiContext,
String webhookId,
String patchRequest)
Updates the Webhook identified by webhook_id for the application associated with access token.
|
Webhook |
update(String accessToken,
String webhookId,
String patchRequest)
Updates the Webhook identified by webhook_id for the application associated with access token.
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic String getId()
public String getUrl()
public Webhook create(String accessToken, Webhook webhook) throws PayPalRESTException
accessToken - Access Token used for the API call.webhook - Webhook RequestPayPalRESTExceptionpublic Webhook create(APIContext apiContext, Webhook webhook) throws PayPalRESTException
apiContext - APIContext used for the API call.webhook - Webhook RequestPayPalRESTExceptionpublic Webhook get(String accessToken, String webhookId) throws PayPalRESTException
accessToken - Access Token used for the API call.webhookId - Identifier of the webhookPayPalRESTExceptionpublic Webhook get(APIContext apiContext, String webhookId) throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - Identifier of the webhookpatchRequest - patchRequestPayPalRESTExceptionpublic Webhook update(String accessToken, String webhookId, String patchRequest) throws PayPalRESTException
accessToken - Access Token used for the API call.webhookId - Identifier of the webhookpatchRequest - patchRequestPayPalRESTExceptionpublic Webhook update(APIContext apiContext, String webhookId, String patchRequest) throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - Identifier of the webhookPayPalRESTExceptionpublic void delete(String accessToken, String webhookId) throws PayPalRESTException
accessToken - Access Token used for the API call.webhookId - Identifier of the webhookPayPalRESTExceptionpublic void delete(APIContext apiContext, String webhookId) throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - Identifier of the webhookPayPalRESTExceptionCopyright © 2015. All Rights Reserved.