From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- .../lib/Service/WebhookEndpointService.php | 194 ++++++++++----------- 1 file changed, 97 insertions(+), 97 deletions(-) (limited to 'vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php') diff --git a/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php b/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php index 01e6422..e3ad21d 100644 --- a/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php +++ b/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php @@ -1,97 +1,97 @@ -requestCollection('get', '/v1/webhook_endpoints', $params, $opts); - } - - /** - * A webhook endpoint must have a url and a list of - * enabled_events. You may optionally specify the Boolean - * connect parameter. If set to true, then a Connect webhook endpoint - * that notifies the specified url about events from all connected - * accounts is created; otherwise an account webhook endpoint that notifies the - * specified url only about events from your account is created. You - * can also create webhook endpoints in the webhooks settings - * section of the Dashboard. - * - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\WebhookEndpoint - */ - public function create($params = null, $opts = null) - { - return $this->request('post', '/v1/webhook_endpoints', $params, $opts); - } - - /** - * You can also delete webhook endpoints via the webhook endpoint - * management page of the Stripe dashboard. - * - * @param string $id - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\WebhookEndpoint - */ - public function delete($id, $params = null, $opts = null) - { - return $this->request('delete', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts); - } - - /** - * Retrieves the webhook endpoint with the given ID. - * - * @param string $id - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\WebhookEndpoint - */ - public function retrieve($id, $params = null, $opts = null) - { - return $this->request('get', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts); - } - - /** - * Updates the webhook endpoint. You may edit the url, the list of - * enabled_events, and the status of your endpoint. - * - * @param string $id - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\WebhookEndpoint - */ - public function update($id, $params = null, $opts = null) - { - return $this->request('post', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts); - } -} + + */ + public function all($params = null, $opts = null) + { + return $this->requestCollection('get', '/v1/webhook_endpoints', $params, $opts); + } + + /** + * A webhook endpoint must have a url and a list of + * enabled_events. You may optionally specify the Boolean + * connect parameter. If set to true, then a Connect webhook endpoint + * that notifies the specified url about events from all connected + * accounts is created; otherwise an account webhook endpoint that notifies the + * specified url only about events from your account is created. You + * can also create webhook endpoints in the webhooks settings + * section of the Dashboard. + * + * @param null|array $params + * @param null|array|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\WebhookEndpoint + */ + public function create($params = null, $opts = null) + { + return $this->request('post', '/v1/webhook_endpoints', $params, $opts); + } + + /** + * You can also delete webhook endpoints via the webhook endpoint + * management page of the Stripe dashboard. + * + * @param string $id + * @param null|array $params + * @param null|array|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\WebhookEndpoint + */ + public function delete($id, $params = null, $opts = null) + { + return $this->request('delete', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts); + } + + /** + * Retrieves the webhook endpoint with the given ID. + * + * @param string $id + * @param null|array $params + * @param null|array|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\WebhookEndpoint + */ + public function retrieve($id, $params = null, $opts = null) + { + return $this->request('get', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts); + } + + /** + * Updates the webhook endpoint. You may edit the url, the list of + * enabled_events, and the status of your endpoint. + * + * @param string $id + * @param null|array $params + * @param null|array|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\WebhookEndpoint + */ + public function update($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts); + } +} -- cgit v1.2.3