summaryrefslogtreecommitdiffstats
path: root/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
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/SetupIntentService.php
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/SetupIntentService.php')
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SetupIntentService.php270
1 files changed, 143 insertions, 127 deletions
diff --git a/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php b/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
index 3cbec50..9127c02 100644
--- a/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
@@ -1,127 +1,143 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SetupIntentService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of SetupIntents.
- *
- * @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/setup_intents', $params, $opts);
- }
-
- /**
- * A SetupIntent object can be canceled when it is in one of these statuses:
- * <code>requires_payment_method</code>, <code>requires_confirmation</code>, or
- * <code>requires_action</code>.
- *
- * Once canceled, setup is abandoned and any operations on the SetupIntent will
- * fail with an error.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/setup_intents/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * Confirm that your customer intends to set up the current or provided payment
- * method. For example, you would confirm a SetupIntent when a customer hits the
- * “Save” button on a payment method management page on your website.
- *
- * If the selected payment method does not require any additional steps from the
- * customer, the SetupIntent will transition to the <code>succeeded</code> status.
- *
- * Otherwise, it will transition to the <code>requires_action</code> status and
- * suggest additional actions via <code>next_action</code>. If setup fails, the
- * SetupIntent will transition to the <code>requires_payment_method</code> status.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function confirm($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/setup_intents/%s/confirm', $id), $params, $opts);
- }
-
- /**
- * Creates a SetupIntent object.
- *
- * After the SetupIntent is created, attach a payment method and <a
- * href="/docs/api/setup_intents/confirm">confirm</a> to collect any required
- * permissions to charge the payment method later.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/setup_intents', $params, $opts);
- }
-
- /**
- * Retrieves the details of a SetupIntent that has previously been created.
- *
- * Client-side retrieval using a publishable key is allowed when the
- * <code>client_secret</code> is provided in the query string.
- *
- * When retrieved with a publishable key, only a subset of properties will be
- * returned. Please refer to the <a href="#setup_intent_object">SetupIntent</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\SetupIntent
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a SetupIntent 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\SetupIntent
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SetupIntentService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of SetupIntents.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SetupIntent>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/setup_intents', $params, $opts);
+ }
+
+ /**
+ * A SetupIntent object can be canceled when it is in one of these statuses:
+ * <code>requires_payment_method</code>, <code>requires_confirmation</code>, or
+ * <code>requires_action</code>.
+ *
+ * Once canceled, setup is abandoned and any operations on the SetupIntent will
+ * fail with an error.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * Confirm that your customer intends to set up the current or provided payment
+ * method. For example, you would confirm a SetupIntent when a customer hits the
+ * “Save” button on a payment method management page on your website.
+ *
+ * If the selected payment method does not require any additional steps from the
+ * customer, the SetupIntent will transition to the <code>succeeded</code> status.
+ *
+ * Otherwise, it will transition to the <code>requires_action</code> status and
+ * suggest additional actions via <code>next_action</code>. If setup fails, the
+ * SetupIntent will transition to the <code>requires_payment_method</code> status.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function confirm($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s/confirm', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a SetupIntent object.
+ *
+ * After the SetupIntent is created, attach a payment method and <a
+ * href="/docs/api/setup_intents/confirm">confirm</a> to collect any required
+ * permissions to charge the payment method later.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/setup_intents', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a SetupIntent that has previously been created.
+ *
+ * Client-side retrieval using a publishable key is allowed when the
+ * <code>client_secret</code> is provided in the query string.
+ *
+ * When retrieved with a publishable key, only a subset of properties will be
+ * returned. Please refer to the <a href="#setup_intent_object">SetupIntent</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\SetupIntent
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a SetupIntent 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\SetupIntent
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Verifies microdeposits on a SetupIntent 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\SetupIntent
+ */
+ public function verifyMicrodeposits($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s/verify_microdeposits', $id), $params, $opts);
+ }
+}