Méthode |
Description |
|
addEventType ( WebhookEventType $webhookEventType ) |
Append EventTypes to the list. |
|
create ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Webhook |
Subscribes your webhook listener to events. A successful call returns a webhook object, which includes the webhook ID for later use. |
|
delete ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : boolean |
Deletes a webhook, by ID. |
|
get ( string $webhookId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Webhook |
Shows details for a webhook, by ID. |
|
getAll ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : WebhookList |
Retrieves all Webhooks for the application associated with access token. |
|
getAllWithParams ( array $params = [], ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : WebhookList |
Lists all webhooks for an app. |
|
getEventTypes ( ) : WebhookEventType[] |
A list of up to ten events to which to subscribe your webhook. To subscribe to all events including new events as they are added, specify the asterisk (*) wildcard. To replace the event_types array, specify the * wildcard. To see all supported events, list available events. |
|
getId ( ) : string |
The ID of the webhook. |
|
getUrl ( ) : string |
The URL that is configured to listen on localhost for incoming POST notification messages that contain event information. |
|
removeEventType ( WebhookEventType $webhookEventType ) |
Remove EventTypes from the list. |
|
setEventTypes ( WebhookEventType[] $event_types ) |
A list of up to ten events to which to subscribe your webhook. To subscribe to all events including new events as they are added, specify the asterisk (*) wildcard. To replace the event_types array, specify the * wildcard. To see all supported events, list available events. |
|
setId ( string $id ) |
The ID of the webhook. |
|
setUrl ( string $url ) |
The URL that is configured to listen on localhost for incoming POST notification messages that contain event information. |
|
update ( PatchRequest $patchRequest, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Webhook |
Replaces webhook fields with new values. Pass a json_patch object with replace operation and path, which is /url for a URL or /event_types for events. The value is either the URL or a list of events. |
|