Fix: Corriger le type PDO dans StripeService et retirer getConnection()
This commit is contained in:
128
api/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php
vendored
Normal file
128
api/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\FinancialConnections;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class AccountService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Financial Connections <code>Account</code> objects.
|
||||
*
|
||||
* @param null|array{account_holder?: array{account?: string, customer?: string}, ending_before?: string, expand?: string[], limit?: int, session?: string, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\FinancialConnections\Account>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/financial_connections/accounts', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all owners for a given <code>Account</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{ending_before?: string, expand?: string[], limit?: int, ownership: string, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\FinancialConnections\AccountOwner>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function allOwners($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', $this->buildPath('/v1/financial_connections/accounts/%s/owners', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables your access to a Financial Connections <code>Account</code>. You will
|
||||
* no longer be able to access data associated with the account (e.g. balances,
|
||||
* transactions).
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Account
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function disconnect($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/financial_connections/accounts/%s/disconnect', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Refreshes the data associated with a Financial Connections <code>Account</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], features: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Account
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function refresh($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/financial_connections/accounts/%s/refresh', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an Financial Connections <code>Account</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Account
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/financial_connections/accounts/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Subscribes to periodic refreshes of data associated with a Financial Connections
|
||||
* <code>Account</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], features: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Account
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function subscribe($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/financial_connections/accounts/%s/subscribe', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsubscribes from periodic refreshes of data associated with a Financial
|
||||
* Connections <code>Account</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], features: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Account
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function unsubscribe($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/financial_connections/accounts/%s/unsubscribe', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\FinancialConnections;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the FinancialConnections namespace.
|
||||
*
|
||||
* @property AccountService $accounts
|
||||
* @property SessionService $sessions
|
||||
* @property TransactionService $transactions
|
||||
*/
|
||||
class FinancialConnectionsServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'accounts' => AccountService::class,
|
||||
'sessions' => SessionService::class,
|
||||
'transactions' => TransactionService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
46
api/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php
vendored
Normal file
46
api/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\FinancialConnections;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class SessionService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* To launch the Financial Connections authorization flow, create a
|
||||
* <code>Session</code>. The session’s <code>client_secret</code> can be used to
|
||||
* launch the flow using Stripe.js.
|
||||
*
|
||||
* @param null|array{account_holder: array{account?: string, customer?: string, type: string}, expand?: string[], filters?: array{account_subcategories?: string[], countries?: string[]}, permissions: string[], prefetch?: string[], return_url?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Session
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/financial_connections/sessions', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of a Financial Connections <code>Session</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Session
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/financial_connections/sessions/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
44
api/vendor/stripe/stripe-php/lib/Service/FinancialConnections/TransactionService.php
vendored
Normal file
44
api/vendor/stripe/stripe-php/lib/Service/FinancialConnections/TransactionService.php
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\FinancialConnections;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class TransactionService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of Financial Connections <code>Transaction</code> objects.
|
||||
*
|
||||
* @param null|array{account: string, ending_before?: string, expand?: string[], limit?: int, starting_after?: string, transacted_at?: array|int, transaction_refresh?: array{after: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\FinancialConnections\Transaction>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/financial_connections/transactions', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of a Financial Connections <code>Transaction</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\FinancialConnections\Transaction
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/financial_connections/transactions/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user