-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1780 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
19 changed files
with
349 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1314 | ||
v1319 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Service\V2\Core; | ||
|
||
/** | ||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions | ||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions | ||
*/ | ||
class EventDestinationService extends \Stripe\Service\AbstractService | ||
{ | ||
/** | ||
* Lists all event destinations. | ||
* | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\Collection<\Stripe\V2\EventDestination> | ||
*/ | ||
public function all($params = null, $opts = null) | ||
{ | ||
return $this->requestCollection('get', '/v2/core/event_destinations', $params, $opts); | ||
} | ||
|
||
/** | ||
* Create a new event destination. | ||
* | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\EventDestination | ||
*/ | ||
public function create($params = null, $opts = null) | ||
{ | ||
return $this->request('post', '/v2/core/event_destinations', $params, $opts); | ||
} | ||
|
||
/** | ||
* Delete an event destination. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\EventDestination | ||
*/ | ||
public function delete($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('delete', $this->buildPath('/v2/core/event_destinations/%s', $id), $params, $opts); | ||
} | ||
|
||
/** | ||
* Disable an event destination. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\EventDestination | ||
*/ | ||
public function disable($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s/disable', $id), $params, $opts); | ||
} | ||
|
||
/** | ||
* Enable an event destination. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\EventDestination | ||
*/ | ||
public function enable($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s/enable', $id), $params, $opts); | ||
} | ||
|
||
/** | ||
* Send a `ping` event to an event destination. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\Event | ||
*/ | ||
public function ping($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s/ping', $id), $params, $opts); | ||
} | ||
|
||
/** | ||
* Retrieves the details of an event destination. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\EventDestination | ||
*/ | ||
public function retrieve($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('get', $this->buildPath('/v2/core/event_destinations/%s', $id), $params, $opts); | ||
} | ||
|
||
/** | ||
* Update the details of an event destination. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\V2\EventDestination | ||
*/ | ||
public function update($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s', $id), $params, $opts); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
|
||
class ApiVersion | ||
{ | ||
const CURRENT = '2024-09-30.acacia'; | ||
const CURRENT = '2024-10-28.acacia'; | ||
} |
Oops, something went wrong.