Server IP : 85.214.239.14 / Your IP : 3.17.164.143 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/wordpress/wp-content/plugins/paid-member-subscriptions/assets/libs/stripe/lib/Service/FinancialConnections/ |
Upload File : |
<?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 $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection<\Stripe\FinancialConnections\Account> */ 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 $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection<\Stripe\FinancialConnections\AccountOwner> */ 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 $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\FinancialConnections\Account */ 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 $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\FinancialConnections\Account */ 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 $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\FinancialConnections\Account */ 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 $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\FinancialConnections\Account */ 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 $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\FinancialConnections\Account */ public function unsubscribe($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/financial_connections/accounts/%s/unsubscribe', $id), $params, $opts); } }