summaryrefslogtreecommitdiffstats
path: root/vendor/stripe/stripe-php/lib/Service/Radar
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /vendor/stripe/stripe-php/lib/Service/Radar
parentprvi-commit (diff)
download1ka-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/Radar')
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php86
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php58
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php148
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php186
4 files changed, 239 insertions, 239 deletions
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php b/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
index 7b09734..1d358f5 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
@@ -1,43 +1,43 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-class EarlyFraudWarningService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of early fraud warnings.
- *
- * @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/radar/early_fraud_warnings', $params, $opts);
- }
-
- /**
- * Retrieves the details of an early fraud warning that has previously been
- * created.
- *
- * Please refer to the <a href="#early_fraud_warning_object">early fraud
- * warning</a> object reference for more details.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\EarlyFraudWarning
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/radar/early_fraud_warnings/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Radar;
+
+class EarlyFraudWarningService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of early fraud warnings.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\EarlyFraudWarning>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/radar/early_fraud_warnings', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an early fraud warning that has previously been
+ * created.
+ *
+ * Please refer to the <a href="#early_fraud_warning_object">early fraud
+ * warning</a> object reference for more details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\EarlyFraudWarning
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/radar/early_fraud_warnings/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php
index b093c67..157a767 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php
@@ -1,29 +1,29 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-/**
- * Service factory class for API resources in the Radar namespace.
- *
- * @property EarlyFraudWarningService $earlyFraudWarnings
- * @property ValueListItemService $valueListItems
- * @property ValueListService $valueLists
- */
-class RadarServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'earlyFraudWarnings' => EarlyFraudWarningService::class,
- 'valueListItems' => ValueListItemService::class,
- 'valueLists' => ValueListService::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\Radar;
+
+/**
+ * Service factory class for API resources in the Radar namespace.
+ *
+ * @property EarlyFraudWarningService $earlyFraudWarnings
+ * @property ValueListItemService $valueListItems
+ * @property ValueListService $valueLists
+ */
+class RadarServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'earlyFraudWarnings' => EarlyFraudWarningService::class,
+ 'valueListItems' => ValueListItemService::class,
+ 'valueLists' => ValueListService::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/Radar/ValueListItemService.php b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
index 89eba2a..7177e28 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
@@ -1,74 +1,74 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-class ValueListItemService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of <code>ValueListItem</code> objects. The objects are sorted in
- * descending order by creation date, with the most recently created object
- * appearing first.
- *
- * @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/radar/value_list_items', $params, $opts);
- }
-
- /**
- * Creates a new <code>ValueListItem</code> object, which is added to the specified
- * parent value list.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueListItem
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/radar/value_list_items', $params, $opts);
- }
-
- /**
- * Deletes a <code>ValueListItem</code> object, removing it from its parent value
- * list.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueListItem
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves a <code>ValueListItem</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueListItem
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Radar;
+
+class ValueListItemService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>ValueListItem</code> objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\ValueListItem>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/radar/value_list_items', $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>ValueListItem</code> object, which is added to the specified
+ * parent value list.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/radar/value_list_items', $params, $opts);
+ }
+
+ /**
+ * Deletes a <code>ValueListItem</code> object, removing it from its parent value
+ * list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>ValueListItem</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
index 64ac2ee..a6f0e12 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
@@ -1,93 +1,93 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-class ValueListService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of <code>ValueList</code> objects. The objects are sorted in
- * descending order by creation date, with the most recently created object
- * appearing first.
- *
- * @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/radar/value_lists', $params, $opts);
- }
-
- /**
- * Creates a new <code>ValueList</code> object, which can then be referenced in
- * rules.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/radar/value_lists', $params, $opts);
- }
-
- /**
- * Deletes a <code>ValueList</code> object, also deleting any items contained
- * within the value list. To be deleted, a value list must not be referenced in any
- * rules.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves a <code>ValueList</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a <code>ValueList</code> object by setting the values of the parameters
- * passed. Any parameters not provided will be left unchanged. Note that
- * <code>item_type</code> is immutable.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Radar;
+
+class ValueListService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>ValueList</code> objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\ValueList>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/radar/value_lists', $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>ValueList</code> object, which can then be referenced in
+ * rules.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/radar/value_lists', $params, $opts);
+ }
+
+ /**
+ * Deletes a <code>ValueList</code> object, also deleting any items contained
+ * within the value list. To be deleted, a value list must not be referenced in any
+ * rules.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>ValueList</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a <code>ValueList</code> object by setting the values of the parameters
+ * passed. Any parameters not provided will be left unchanged. Note that
+ * <code>item_type</code> is immutable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
+ }
+}