|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.Webhook
public class Webhook
| Constructor Summary | |
|---|---|
Webhook()
Default Constructor |
|
Webhook(String url,
List<EventType> eventTypes)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
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 |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Webhook()
public Webhook(String url,
List<EventType> eventTypes)
| Method Detail |
|---|
public Webhook setId(String id)
public String getId()
public Webhook setUrl(String url)
public String getUrl()
public Webhook setEventTypes(List<EventType> eventTypes)
public List<EventType> getEventTypes()
public Webhook setLinks(List<Links> links)
public List<Links> getLinks()
public Webhook create(String accessToken,
Webhook webhook)
throws PayPalRESTException
accessToken - Access Token used for the API call.webhook - Webhook Request
PayPalRESTException
public Webhook create(APIContext apiContext,
Webhook webhook)
throws PayPalRESTException
apiContext - APIContext used for the API call.webhook - Webhook Request
PayPalRESTException
public Webhook get(String accessToken,
String webhookId)
throws PayPalRESTException
accessToken - Access Token used for the API call.webhookId - Identifier of the webhook
PayPalRESTException
public Webhook get(APIContext apiContext,
String webhookId)
throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - Identifier of the webhookpatchRequest - patchRequest
PayPalRESTException
public Webhook update(String accessToken,
String webhookId,
String patchRequest)
throws PayPalRESTException
accessToken - Access Token used for the API call.webhookId - Identifier of the webhookpatchRequest - patchRequest
PayPalRESTException
public Webhook update(APIContext apiContext,
String webhookId,
String patchRequest)
throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - Identifier of the webhook
PayPalRESTException
public void delete(String accessToken,
String webhookId)
throws PayPalRESTException
accessToken - Access Token used for the API call.webhookId - Identifier of the webhook
PayPalRESTException
public void delete(APIContext apiContext,
String webhookId)
throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - Identifier of the webhook
PayPalRESTExceptionpublic String toJSON()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||