mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -14,9 +14,9 @@ namespace Stripe;
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property bool $expired Returns if the link is already expired.
|
||||
* @property null|int $expires_at Time that the link expires.
|
||||
* @property string|\Stripe\File $file The file object this link points to.
|
||||
* @property File|string $file The file object this link points to.
|
||||
* @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 \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
* @property StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
* @property null|string $url The publicly accessible URL to download the file.
|
||||
*/
|
||||
class FileLink extends ApiResource
|
||||
@@ -28,12 +28,12 @@ class FileLink extends ApiResource
|
||||
/**
|
||||
* Creates a new file link object.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{expand?: string[], expires_at?: int, file: string, metadata?: null|array<string, string>} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FileLink the created resource
|
||||
*
|
||||
* @return \Stripe\FileLink the created resource
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function create($params = null, $options = null)
|
||||
{
|
||||
@@ -41,7 +41,7 @@ class FileLink extends ApiResource
|
||||
$url = static::classUrl();
|
||||
|
||||
list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
|
||||
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj = Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj->setLastResponse($response);
|
||||
|
||||
return $obj;
|
||||
@@ -50,18 +50,18 @@ class FileLink extends ApiResource
|
||||
/**
|
||||
* Returns a list of file links.
|
||||
*
|
||||
* @param null|array $params
|
||||
* @param null|array{created?: array|int, ending_before?: string, expand?: string[], expired?: bool, file?: string, limit?: int, starting_after?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Collection<FileLink> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\FileLink> of ApiResources
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function all($params = null, $opts = null)
|
||||
{
|
||||
$url = static::classUrl();
|
||||
|
||||
return static::_requestPage($url, \Stripe\Collection::class, $params, $opts);
|
||||
return static::_requestPage($url, Collection::class, $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,13 +70,13 @@ class FileLink extends ApiResource
|
||||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FileLink
|
||||
*
|
||||
* @return \Stripe\FileLink
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function retrieve($id, $opts = null)
|
||||
{
|
||||
$opts = \Stripe\Util\RequestOptions::parse($opts);
|
||||
$opts = Util\RequestOptions::parse($opts);
|
||||
$instance = new static($id, $opts);
|
||||
$instance->refresh();
|
||||
|
||||
@@ -87,12 +87,12 @@ class FileLink extends ApiResource
|
||||
* Updates an existing file link object. Expired links can no longer be updated.
|
||||
*
|
||||
* @param string $id the ID of the resource to update
|
||||
* @param null|array $params
|
||||
* @param null|array{expand?: string[], expires_at?: null|array|int|string, metadata?: null|array<string, string>} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return FileLink the updated resource
|
||||
*
|
||||
* @return \Stripe\FileLink the updated resource
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public static function update($id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ class FileLink extends ApiResource
|
||||
$url = static::resourceUrl($id);
|
||||
|
||||
list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
|
||||
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj = Util\Util::convertToStripeObject($response->json, $opts);
|
||||
$obj->setLastResponse($response);
|
||||
|
||||
return $obj;
|
||||
|
||||
Reference in New Issue
Block a user