Fix: Corriger le type PDO dans StripeService et retirer getConnection()
This commit is contained in:
67
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php
vendored
Normal file
67
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
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
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created InboundTransfer to the <code>failed</code>
|
||||
* status. The InboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], failure_details?: array{code?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks the test mode InboundTransfer object as returned and links the
|
||||
* InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the
|
||||
* <code>succeeded</code> state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function returnInboundTransfer($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/return', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created InboundTransfer to the <code>succeeded</code>
|
||||
* status. The InboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function succeed($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/succeed', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
vendored
Normal file
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
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
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>failed</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>posted</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function post($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/post', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>returned</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], returned_details?: array{code?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function returnOutboundPayment($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/return', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a test mode created OutboundPayment with tracking details. The
|
||||
* OutboundPayment must not be cancelable, and cannot be in the
|
||||
* <code>canceled</code> or <code>failed</code> states.
|
||||
*
|
||||
* @param string $id
|
||||
* @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
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
vendored
Normal file
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
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
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>failed</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>posted</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function post($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/post', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>returned</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], returned_details?: array{code?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function returnOutboundTransfer($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/return', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a test mode created OutboundTransfer with tracking details. The
|
||||
* OutboundTransfer must not be cancelable, and cannot be in the
|
||||
* <code>canceled</code> or <code>failed</code> states.
|
||||
*
|
||||
* @param string $id
|
||||
* @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
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
vendored
Normal file
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
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
|
||||
{
|
||||
/**
|
||||
* Use this endpoint to simulate a test mode ReceivedCredit initiated by a third
|
||||
* party. In live mode, you can’t directly create ReceivedCredits initiated by
|
||||
* third parties.
|
||||
*
|
||||
* @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
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedCredit
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/treasury/received_credits', $params, $opts);
|
||||
}
|
||||
}
|
||||
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
vendored
Normal file
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
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
|
||||
{
|
||||
/**
|
||||
* Use this endpoint to simulate a test mode ReceivedDebit initiated by a third
|
||||
* party. In live mode, you can’t directly create ReceivedDebits initiated by third
|
||||
* parties.
|
||||
*
|
||||
* @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
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedDebit
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/treasury/received_debits', $params, $opts);
|
||||
}
|
||||
}
|
||||
33
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php
vendored
Normal file
33
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Treasury namespace.
|
||||
*
|
||||
* @property InboundTransferService $inboundTransfers
|
||||
* @property OutboundPaymentService $outboundPayments
|
||||
* @property OutboundTransferService $outboundTransfers
|
||||
* @property ReceivedCreditService $receivedCredits
|
||||
* @property ReceivedDebitService $receivedDebits
|
||||
*/
|
||||
class TreasuryServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'inboundTransfers' => InboundTransferService::class,
|
||||
'outboundPayments' => OutboundPaymentService::class,
|
||||
'outboundTransfers' => OutboundTransferService::class,
|
||||
'receivedCredits' => ReceivedCreditService::class,
|
||||
'receivedDebits' => ReceivedDebitService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user