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/EphemeralKey.php | |
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 '')
-rw-r--r-- | vendor/stripe/stripe-php/lib/EphemeralKey.php | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/vendor/stripe/stripe-php/lib/EphemeralKey.php b/vendor/stripe/stripe-php/lib/EphemeralKey.php index 253256c..8822319 100644 --- a/vendor/stripe/stripe-php/lib/EphemeralKey.php +++ b/vendor/stripe/stripe-php/lib/EphemeralKey.php @@ -1,43 +1,43 @@ -<?php - -// File generated from our OpenAPI spec - -namespace Stripe; - -/** - * @property string $id Unique identifier for the object. - * @property string $object String representing the object's type. Objects of the same type share the same value. - * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. - * @property int $expires Time at which the key will expire. Measured in seconds since the Unix epoch. - * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. - * @property string $secret The key's secret. You can use this value to make authorized requests to the Stripe API. - * @property array $associated_objects - */ -class EphemeralKey extends ApiResource -{ - const OBJECT_NAME = 'ephemeral_key'; - - use ApiOperations\Create { - create as protected _create; - } - - use ApiOperations\Delete; - - /** - * @param null|array $params - * @param null|array|string $opts - * - * @throws \Stripe\Exception\InvalidArgumentException if stripe_version is missing - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\EphemeralKey the created key - */ - public static function create($params = null, $opts = null) - { - if (!$opts || !isset($opts['stripe_version'])) { - throw new Exception\InvalidArgumentException('stripe_version must be specified to create an ephemeral key'); - } - - return self::_create($params, $opts); - } -} +<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe;
+
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property int $expires Time at which the key will expire. Measured in seconds since the Unix epoch.
+ * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
+ * @property string $secret The key's secret. You can use this value to make authorized requests to the Stripe API.
+ * @property array $associated_objects
+ */
+class EphemeralKey extends ApiResource
+{
+ const OBJECT_NAME = 'ephemeral_key';
+
+ use ApiOperations\Create {
+ create as protected _create;
+ }
+
+ use ApiOperations\Delete;
+
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\InvalidArgumentException if stripe_version is missing
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\EphemeralKey the created key
+ */
+ public static function create($params = null, $opts = null)
+ {
+ if (!$opts || !isset($opts['stripe_version'])) {
+ throw new Exception\InvalidArgumentException('stripe_version must be specified to create an ephemeral key');
+ }
+
+ return self::_create($params, $opts);
+ }
+}
|