2
0
forked from Wavyzz/dolibarr

update stripe-php 7.67.0

This commit is contained in:
ptibogxiv
2021-01-03 23:37:44 +01:00
parent b0738643fb
commit 984c355f39
226 changed files with 14453 additions and 4860 deletions

View File

@@ -1,40 +1,43 @@
<?php
// File generated from our OpenAPI spec
namespace Stripe;
/**
* Class EphemeralKey
*
* @property string $id
* @property string $object
* @property int $created
* @property int $expires
* @property bool $livemode
* @property string $secret
* @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
*
* @package Stripe
*/
class EphemeralKey extends ApiResource
{
const OBJECT_NAME = "ephemeral_key";
const OBJECT_NAME = 'ephemeral_key';
use ApiOperations\Create {
create as protected _create;
}
use ApiOperations\Delete;
/**
* @param array|null $params
* @param array|string|null $opts
* @param null|array $params
* @param null|array|string $opts
*
* @return EphemeralKey The created key.
* @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['stripe_version']) {
throw new \InvalidArgumentException('stripe_version must be specified to create an ephemeral key');
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);
}
}