public
|
#
setId( string $id )
The ID of the webhook.
Parameters
Returns
$this
|
public
string
|
#
getId( )
The ID of the webhook.
Returns
string
|
public
|
#
setUrl( string $url )
The URL that is configured to listen on localhost for incoming POST notification messages that contain event information.
The URL that is configured to listen on localhost for incoming POST notification messages that contain event information.
Parameters
Returns
$this
Throws
InvalidArgumentException
|
public
string
|
#
getUrl( )
The URL that is configured to listen on localhost for incoming POST notification messages that contain event information.
The URL that is configured to listen on localhost for incoming POST notification messages that contain event information.
Returns
string
|
public
|
#
setEventTypes( PayPal\Api\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.
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.
Parameters
Returns
$this
|
public
PayPal\Api\WebhookEventType[]
|
#
getEventTypes( )
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.
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.
Returns
|
public
|
|
public
|
|
public
PayPal\Api\Webhook
|
#
create( PayPal\Rest\ApiContext $apiContext = null, PayPalRestCall $restCall = null )
Subscribes your webhook listener to events. A successful call returns a webhook object, which includes the webhook ID for later use.
Subscribes your webhook listener to events. A successful call returns a webhook object, which includes the webhook ID for later use.
Parameters
- $apiContext
- is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
- $restCall
- is the Rest Call Service that is used to make rest calls
Returns
|
public static
PayPal\Api\Webhook
|
#
get( string $webhookId, PayPal\Rest\ApiContext $apiContext = null, PayPalRestCall $restCall = null )
Shows details for a webhook, by ID.
Shows details for a webhook, by ID.
Parameters
- $webhookId
- $apiContext
- is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
- $restCall
- is the Rest Call Service that is used to make rest calls
Returns
|
public static
PayPal\Api\WebhookList
|
#
getAll( PayPal\Rest\ApiContext $apiContext = null, PayPalRestCall $restCall = null )
Retrieves all Webhooks for the application associated with access token.
Retrieves all Webhooks for the application associated with access token.
Deprecated
Please use Webhook#getAllWithParams instead.
Parameters
- $apiContext
- is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
- $restCall
- is the Rest Call Service that is used to make rest calls
Returns
|
public static
PayPal\Api\WebhookList
|
#
getAllWithParams( array $params = array(), PayPal\Rest\ApiContext $apiContext = null, PayPalRestCall $restCall = null )
Lists all webhooks for an app.
Lists all webhooks for an app.
Parameters
- $params
- $apiContext
- is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
- $restCall
- is the Rest Call Service that is used to make rest calls
Returns
|
public
PayPal\Api\Webhook
|
#
update( PayPal\Api\PatchRequest $patchRequest, PayPal\Rest\ApiContext $apiContext = null, PayPalRestCall $restCall = null )
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.
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.
Parameters
- $patchRequest
- $apiContext
- is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
- $restCall
- is the Rest Call Service that is used to make rest calls
Returns
|
public
boolean
|
#
delete( PayPal\Rest\ApiContext $apiContext = null, PayPalRestCall $restCall = null )
Deletes a webhook, by ID.
Deletes a webhook, by ID.
Parameters
- $apiContext
- is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
- $restCall
- is the Rest Call Service that is used to make rest calls
Returns
boolean
|