mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -13,23 +13,24 @@ 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 null|string $billing_zip The ZIP or postal code of the card used, if applicable.
|
||||
* @property null|string|\Stripe\Charge $charge The charge associated with this review.
|
||||
* @property null|string $closed_reason The reason the review was closed, or null if it has not yet been closed. One of <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, or <code>redacted</code>.
|
||||
* @property null|Charge|string $charge The charge associated with this review.
|
||||
* @property null|string $closed_reason The reason the review was closed, or null if it has not yet been closed. One of <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, <code>redacted</code>, or <code>canceled</code>.
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property null|string $ip_address The IP address where the payment originated.
|
||||
* @property null|\Stripe\StripeObject $ip_address_location Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
|
||||
* @property null|(object{city: null|string, country: null|string, latitude: null|float, longitude: null|float, region: null|string}&StripeObject) $ip_address_location Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
|
||||
* @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 bool $open If <code>true</code>, the review needs action.
|
||||
* @property string $opened_reason The reason the review was opened. One of <code>rule</code> or <code>manual</code>.
|
||||
* @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent ID associated with this review, if one exists.
|
||||
* @property string $reason The reason the review is currently open or closed. One of <code>rule</code>, <code>manual</code>, <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, or <code>redacted</code>.
|
||||
* @property null|\Stripe\StripeObject $session Information related to the browsing session of the user who initiated the payment.
|
||||
* @property null|PaymentIntent|string $payment_intent The PaymentIntent ID associated with this review, if one exists.
|
||||
* @property string $reason The reason the review is currently open or closed. One of <code>rule</code>, <code>manual</code>, <code>approved</code>, <code>refunded</code>, <code>refunded_as_fraud</code>, <code>disputed</code>, <code>redacted</code>, or <code>canceled</code>.
|
||||
* @property null|(object{browser: null|string, device: null|string, platform: null|string, version: null|string}&StripeObject) $session Information related to the browsing session of the user who initiated the payment.
|
||||
*/
|
||||
class Review extends ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'review';
|
||||
|
||||
const CLOSED_REASON_APPROVED = 'approved';
|
||||
const CLOSED_REASON_CANCELED = 'canceled';
|
||||
const CLOSED_REASON_DISPUTED = 'disputed';
|
||||
const CLOSED_REASON_REDACTED = 'redacted';
|
||||
const CLOSED_REASON_REFUNDED = 'refunded';
|
||||
@@ -43,18 +44,18 @@ class Review extends ApiResource
|
||||
* <code>true</code>. 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{created?: array|int, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Collection<Review> of ApiResources
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Review> 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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,13 +64,13 @@ class Review 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 Review
|
||||
*
|
||||
* @return \Stripe\Review
|
||||
* @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();
|
||||
|
||||
@@ -94,9 +95,9 @@ class Review extends ApiResource
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @return Review the approved review
|
||||
*
|
||||
* @return \Stripe\Review the approved review
|
||||
* @throws Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function approve($params = null, $opts = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user