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
@@ -6,6 +6,7 @@ namespace Stripe\Service\TestHelpers\Treasury;
/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class InboundTransferService extends \Stripe\Service\AbstractService
@@ -16,12 +17,12 @@ class InboundTransferService extends \Stripe\Service\AbstractService
* state.
*
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[], failure_details?: array{code?: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\InboundTransfer
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fail($id, $params = null, $opts = null)
{
@@ -34,12 +35,12 @@ class InboundTransferService extends \Stripe\Service\AbstractService
* <code>succeeded</code> state.
*
* @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\Treasury\InboundTransfer
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function returnInboundTransfer($id, $params = null, $opts = null)
{
@@ -52,12 +53,12 @@ class InboundTransferService extends \Stripe\Service\AbstractService
* state.
*
* @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\Treasury\InboundTransfer
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function succeed($id, $params = null, $opts = null)
{
@@ -6,6 +6,7 @@ namespace Stripe\Service\TestHelpers\Treasury;
/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class OutboundPaymentService extends \Stripe\Service\AbstractService
@@ -16,12 +17,12 @@ class OutboundPaymentService extends \Stripe\Service\AbstractService
* state.
*
* @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\Treasury\OutboundPayment
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fail($id, $params = null, $opts = null)
{
@@ -34,12 +35,12 @@ class OutboundPaymentService extends \Stripe\Service\AbstractService
* state.
*
* @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\Treasury\OutboundPayment
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function post($id, $params = null, $opts = null)
{
@@ -52,12 +53,12 @@ class OutboundPaymentService extends \Stripe\Service\AbstractService
* state.
*
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[], returned_details?: array{code?: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\OutboundPayment
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function returnOutboundPayment($id, $params = null, $opts = null)
{
@@ -70,12 +71,12 @@ class OutboundPaymentService extends \Stripe\Service\AbstractService
* <code>canceled</code> or <code>failed</code> states.
*
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[], tracking_details: array{ach?: array{trace_id: string}, type: string, us_domestic_wire?: array{chips?: string, imad?: string, omad?: string}}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\OutboundPayment
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function update($id, $params = null, $opts = null)
{
@@ -6,6 +6,7 @@ namespace Stripe\Service\TestHelpers\Treasury;
/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class OutboundTransferService extends \Stripe\Service\AbstractService
@@ -16,12 +17,12 @@ class OutboundTransferService extends \Stripe\Service\AbstractService
* state.
*
* @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\Treasury\OutboundTransfer
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fail($id, $params = null, $opts = null)
{
@@ -34,12 +35,12 @@ class OutboundTransferService extends \Stripe\Service\AbstractService
* state.
*
* @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\Treasury\OutboundTransfer
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function post($id, $params = null, $opts = null)
{
@@ -52,12 +53,12 @@ class OutboundTransferService extends \Stripe\Service\AbstractService
* state.
*
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[], returned_details?: array{code?: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\OutboundTransfer
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function returnOutboundTransfer($id, $params = null, $opts = null)
{
@@ -70,12 +71,12 @@ class OutboundTransferService extends \Stripe\Service\AbstractService
* <code>canceled</code> or <code>failed</code> states.
*
* @param string $id
* @param null|array $params
* @param null|array{expand?: string[], tracking_details: array{ach?: array{trace_id: string}, type: string, us_domestic_wire?: array{chips?: string, imad?: string, omad?: string}}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\OutboundTransfer
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function update($id, $params = null, $opts = null)
{
@@ -6,6 +6,7 @@ namespace Stripe\Service\TestHelpers\Treasury;
/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ReceivedCreditService extends \Stripe\Service\AbstractService
@@ -15,12 +16,12 @@ class ReceivedCreditService extends \Stripe\Service\AbstractService
* party. In live mode, you cant directly create ReceivedCredits initiated by
* third parties.
*
* @param null|array $params
* @param null|array{amount: int, currency: string, description?: string, expand?: string[], financial_account: string, initiating_payment_method_details?: array{type: string, us_bank_account?: array{account_holder_name?: string, account_number?: string, routing_number?: string}}, network: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\ReceivedCredit
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function create($params = null, $opts = null)
{
@@ -6,6 +6,7 @@ namespace Stripe\Service\TestHelpers\Treasury;
/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ReceivedDebitService extends \Stripe\Service\AbstractService
@@ -15,12 +16,12 @@ class ReceivedDebitService extends \Stripe\Service\AbstractService
* party. In live mode, you cant directly create ReceivedDebits initiated by third
* parties.
*
* @param null|array $params
* @param null|array{amount: int, currency: string, description?: string, expand?: string[], financial_account: string, initiating_payment_method_details?: array{type: string, us_bank_account?: array{account_holder_name?: string, account_number?: string, routing_number?: string}}, network: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\ReceivedDebit
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function create($params = null, $opts = null)
{