Bump stripe-php from 16.4.0 to 17.2.1

This commit is contained in:
johnnyq
2025-05-22 12:37:35 -04:00
parent 5361391b3b
commit 6a368840fa
332 changed files with 4978 additions and 4624 deletions

View File

@@ -6,20 +6,21 @@ namespace Stripe\Service;
/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ApplicationFeeService extends \Stripe\Service\AbstractService
class ApplicationFeeService extends AbstractService
{
/**
* Returns a list of application fees youve previously collected. The application
* fees are returned in sorted order, with the most recent fees appearing first.
*
* @param null|array $params
* @param null|array{charge?: string, created?: array|int, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection<\Stripe\ApplicationFee>
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function all($params = null, $opts = null)
{
@@ -34,12 +35,12 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
* page through additional refunds.
*
* @param string $parentId
* @param null|array $params
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection<\Stripe\ApplicationFeeRefund>
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function allRefunds($parentId, $params = null, $opts = null)
{
@@ -59,12 +60,12 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
* trying to refund more money than is left on an application fee.
*
* @param string $parentId
* @param null|array $params
* @param null|array{amount?: int, expand?: string[], metadata?: array<string, string>} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\ApplicationFeeRefund
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function createRefund($parentId, $params = null, $opts = null)
{
@@ -76,12 +77,12 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
* same information is returned when refunding the application fee.
*
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[]} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\ApplicationFee
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function retrieve($id, $params = null, $opts = null)
{
@@ -95,12 +96,12 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
*
* @param string $parentId
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[]} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\ApplicationFeeRefund
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function retrieveRefund($parentId, $id, $params = null, $opts = null)
{
@@ -115,12 +116,12 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
*
* @param string $parentId
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[], metadata?: null|array<string, string>} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\ApplicationFeeRefund
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function updateRefund($parentId, $id, $params = null, $opts = null)
{