diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
commit | 75160b12821f7f4299cce7f0b69c83c1502ae071 (patch) | |
tree | 27e25e4ccaef45f0c58b22831164050d1af1d4db /vendor/stripe/stripe-php/lib/Service/BillingPortal | |
parent | prvi-commit (diff) | |
download | 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip |
Diffstat (limited to 'vendor/stripe/stripe-php/lib/Service/BillingPortal')
3 files changed, 123 insertions, 123 deletions
diff --git a/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php index 23a4d30..9d1df0f 100644 --- a/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php +++ b/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php @@ -1,27 +1,27 @@ -<?php - -// File generated from our OpenAPI spec - -namespace Stripe\Service\BillingPortal; - -/** - * Service factory class for API resources in the BillingPortal namespace. - * - * @property ConfigurationService $configurations - * @property SessionService $sessions - */ -class BillingPortalServiceFactory extends \Stripe\Service\AbstractServiceFactory -{ - /** - * @var array<string, string> - */ - private static $classMap = [ - 'configurations' => ConfigurationService::class, - 'sessions' => SessionService::class, - ]; - - protected function getServiceClass($name) - { - return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; - } -} +<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\BillingPortal;
+
+/**
+ * Service factory class for API resources in the BillingPortal namespace.
+ *
+ * @property ConfigurationService $configurations
+ * @property SessionService $sessions
+ */
+class BillingPortalServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'configurations' => ConfigurationService::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/BillingPortal/ConfigurationService.php b/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php index 5a0d70d..8357eed 100644 --- a/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php +++ b/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php @@ -1,73 +1,73 @@ -<?php - -// File generated from our OpenAPI spec - -namespace Stripe\Service\BillingPortal; - -class ConfigurationService extends \Stripe\Service\AbstractService -{ - /** - * Returns a list of configurations that describe the functionality of the customer - * portal. - * - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\Collection - */ - public function all($params = null, $opts = null) - { - return $this->requestCollection('get', '/v1/billing_portal/configurations', $params, $opts); - } - - /** - * Creates a configuration that describes the functionality and behavior of a - * PortalSession. - * - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\BillingPortal\Configuration - */ - public function create($params = null, $opts = null) - { - return $this->request('post', '/v1/billing_portal/configurations', $params, $opts); - } - - /** - * Retrieves a configuration that describes the functionality of the customer - * portal. - * - * @param string $id - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\BillingPortal\Configuration - */ - public function retrieve($id, $params = null, $opts = null) - { - return $this->request('get', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts); - } - - /** - * Updates a configuration that describes the functionality of the customer portal. - * - * @param string $id - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\BillingPortal\Configuration - */ - public function update($id, $params = null, $opts = null) - { - return $this->request('post', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts); - } -} +<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\BillingPortal;
+
+class ConfigurationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of configurations that describe the functionality of the customer
+ * portal.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BillingPortal\Configuration>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/billing_portal/configurations', $params, $opts);
+ }
+
+ /**
+ * Creates a configuration that describes the functionality and behavior of a
+ * PortalSession.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/billing_portal/configurations', $params, $opts);
+ }
+
+ /**
+ * Retrieves a configuration that describes the functionality of the customer
+ * portal.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a configuration that describes the functionality of the customer portal.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php b/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php index 6b3e602..e508c2a 100644 --- a/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php +++ b/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php @@ -1,23 +1,23 @@ -<?php - -// File generated from our OpenAPI spec - -namespace Stripe\Service\BillingPortal; - -class SessionService extends \Stripe\Service\AbstractService -{ - /** - * Creates a session of the customer portal. - * - * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\BillingPortal\Session - */ - public function create($params = null, $opts = null) - { - return $this->request('post', '/v1/billing_portal/sessions', $params, $opts); - } -} +<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\BillingPortal;
+
+class SessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Creates a session of the customer portal.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Session
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/billing_portal/sessions', $params, $opts);
+ }
+}
|