summaryrefslogtreecommitdiffstats
path: root/vendor/stripe/stripe-php/lib/Service/FinancialConnections
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php58
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php27
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php41
3 files changed, 126 insertions, 0 deletions
diff --git a/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php
new file mode 100644
index 0000000..d50429c
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php
@@ -0,0 +1,58 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\FinancialConnections;
+
+class AccountService extends \Stripe\Service\AbstractService
+{
+ /**
+ * 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|array|\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|array|\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|array|\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);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php
new file mode 100644
index 0000000..c923c02
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php
@@ -0,0 +1,27 @@
+<?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
+ */
+class FinancialConnectionsServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'accounts' => AccountService::class,
+ 'sessions' => SessionService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php
new file mode 100644
index 0000000..fd109f6
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php
@@ -0,0 +1,41 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\FinancialConnections;
+
+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 $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Session
+ */
+ 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 $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Session
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/financial_connections/sessions/%s', $id), $params, $opts);
+ }
+}